function resetCilindrata(){
	try {
	var selObj  = document.getElementById('cil_id');
	selObj.selectedIndex=0;
	var sel = document.getElementsByName("cil")[0];
	var str = sel.options[sel.selectedIndex].value; ù
	}catch(err){}
	resetModello();
}

function resetModello(){
	try {
	var selObj1  = document.getElementById('mod_id');
	selObj1.selectedIndex=0;
	var sel1 = document.getElementsByName("mod")[0];
	var str1 = sel1.options[sel1.selectedIndex].value; 
	}catch(err){}
	document.modellimoto.submit();
}


//ANNI MODELLI MOTO (Serve nella form compra veloce se occorre settare la moto / anno ) utilizzato da products_listing e products_associati e product_info
var a_modellimoto_anni = new Array(); 
var a_modellimoto_id = new Array();
function carica_anni_moto_prodotto(mod_moto_id ,products_id){
    if (mod_moto_id > 0){
		if (a_modellimoto_anni[products_id][mod_moto_id].length > 0){
			riempiCombo( document.getElementById('id_'+products_id +'[0]'), a_modellimoto_anni[products_id][mod_moto_id], a_modellimoto_id[products_id][mod_moto_id] , 'Seleziona anno'  , false);
		}else{
			riempiCombo( document.getElementById('id_'+ products_id +'[0]'), new Array() , new Array() ,'Seleziona anno'  , false);
		}
	}else{
			riempiCombo( document.getElementById('id_'+ products_id + '[0]'), new Array() , new Array() , 'Seleziona anno'  , false);
	}
}

//utilizzata da products_info
function carica_anni(mod_moto_id){
    if (mod_moto_id > 0){
		if (a_modellimoto_anni[mod_moto_id].length > 0){
			riempiCombo( document.getElementById('id[0]'), a_modellimoto_anni[mod_moto_id], a_modellimoto_id[mod_moto_id] , 'Seleziona anno'  , false);
		}else{
			riempiCombo( document.getElementById('id[0]'), new Array() , new Array() , 'Seleziona anno'  , false);
		}
	}else{
			riempiCombo( document.getElementById('id[0]'), new Array() , new Array() , 'Seleziona anno'  , false);
	}
}
