

function annulla_colore() {
	
	var nomeform = "";
	var nomeform1 = "";
		
	if(document.forms.length < 1)
	{		
		return;
	}	
	for (indx = 0; indx < document.forms.length; indx++ )
		{				
		if(typeof(document.forms[indx].sottocategoria_camerette) == "object") {
						
			nomeform = document.forms[indx].sottocategoria_camerette.name;			
			nomeform1 = nomeform.substring(0, nomeform.indexOf('-'));
			if(nomeform1 = "formcamerette")   // se il campo sottocategoria_camerette e' un campo select : 
				{				
				document.forms[indx].Invia.value='Clicca e vedi tutti i prodotti della cameretta';
				document.forms[indx].Invia.style.color='#6B8EBD';
				}
		}   // fine object			
	}  // fine for
		
}

function zoom_onclick(theForm) {

ArrStr=theForm.sottocategoria_camerette.options[theForm.sottocategoria_camerette.selectedIndex].value.split("|");
var nomescat = "";
var nomecat = "";
nomescat=ArrStr[0];
nomecat=ArrStr[2];
url = "zoomcameretta.asp?cat=" + escape(nomecat) + "&scat=" + escape(nomescat)
zoom(url);

}  // fine zoom_onclick

function immagine_onclick(theForm) {

ArrStr=theForm.sottocategoria_camerette.options[theForm.sottocategoria_camerette.selectedIndex].value.split("|");
var nomescat = "";
var nomecat = "";
nomescat=ArrStr[0];
nomecat=ArrStr[2];
url = "zoomcameretta.asp?cat=" + escape(nomecat) + "&scat=" + escape(nomescat)
zoom(url);

}  // fine immagine_onclick

function zoom(str) {
      searchWin = window.open(str,'zoom','scrollbars=yes,resizable=yes,width=750,height=550,status=no,location=no,toolbar=no');
}

