<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


// __________________________
// VALIDA L'EMAIL INSERITA
// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
function isEmail(TheField)
{
   var theEmail = new String(TheField.value)
   var theChar

   PosET     = theEmail.indexOf("@")
   PosPnt    = theEmail.lastIndexOf(".")
   BeforeET  = theEmail.charAt(PosET-1)
   BeforePnt = theEmail.charAt(PosPnt-1)

   var cont = 0
   for (j = theEmail.length; j >=0 ; j--){
      if (theEmail.charAt(j)!=".") 
         cont+=1
      else 
         break
 }

  if ( (PosET==-1)||(PosPnt==-1)||(BeforeET=="")||(BeforePnt=="@")||(PosET>PosPnt)||(cont-1<2) ) return false

   return true
}


function Hilite(TheField, msg) {
	TheField.focus()
	alert(msg)
	return false
}

// Controllo Form Cerca Prodotti
function CheckForm_it(TheForm) {
	with (TheForm) {
	if ((sottocategoria.value=="")) return Hilite(sottocategoria, "Selezionare la categoria e la sottocategoria")
	}
}
function CheckForm_en(TheForm) {
	with (TheForm) {
	if ((sottocategoria.value=="")) return Hilite(sottocategoria, "Select a category and a subcategory")
	}
}


// Controllo Form Catalogo
function CheckForm2(TheForm) {
	with (TheForm) {
	if ((nome.value=="")) return Hilite(nome, "Inserire il nome")
	if ((cognome.value=="")) return Hilite(cognome, "Inserire il cognome")
	if ((indirizzo.value=="")) return Hilite(indirizzo, "Inserire l'indirizzo")
	if ((numero.value=="")) return Hilite(numero, "Inserire il numero civico")
	if ((cap.value=="")) return Hilite(cap, "Inserire il cap")
	if ((citta.value=="")) return Hilite(citta, "Inserire la città")
	if ((provincia.value=="")) return Hilite(provincia, "Inserire la provincia")
	if ((acconsento.checked==false)) return Hilite(acconsento, "Bisogna acconsentire al trattamento dei dati personali")	
	}
}

// Controllo Form Contatti
function CheckForm3(TheForm) {
	with (TheForm) {
	if (Nome.value=="") return Hilite(Nome, "Devi inserire il tuo nome")
	if (Cognome.value=="") return Hilite(Cognome, "Devi inserire il tuo cognome")
	if (Email.value=="") return Hilite(Email, "Devi inserire la tua email")
	if (isEmail(Email) == false) return Hilite(Email, "E-mail non valida - ricontrolla")
	if (oggetto.value=="") return Hilite(oggetto, "Devi selezionare l'oggetto")
	if (Messaggio.value=="") return Hilite(Messaggio, "Devi inserire il messaggio")
	if ((acconsento.checked==false)) return Hilite(acconsento, "Bisogna acconsentire al trattamento dei dati personali")
	}
}

// Controllo Form Cerca Negozi
function CheckForm4_it(TheForm) {
	with (TheForm) {
	if ((localita.value=="")) return Hilite(localita, "Selezionare la località")
	}
}
function CheckForm4_en(TheForm) {
	with (TheForm) {
	if ((localita.value=="")) return Hilite(localita, "Select a store")
	}
}

// Controllo Form Lavora con noi
function CheckForm5(TheForm) {
	with (TheForm) {
	if ((oggetto.value=="")) return Hilite(oggetto, "Devi inserire la posizione")
	if ((nome.value=="")) return Hilite(nome, "Devi inserire il nome")
	if ((cognome.value=="")) return Hilite(cognome, "Devi inserire il cognome")
	if ((email.value=="")) return Hilite(email, "Devi inserire la tua email")
	if (isEmail(email) == false) return Hilite(email, "E-mail non valida - ricontrolla")
	if ((acconsento.checked==false)) return Hilite(acconsento, "Bisogna acconsentire al trattamento dei dati personali")
	}
}


// Controllo Form Prodotti
function CheckForm6_it(TheForm) {
	with (TheForm) {
	if ((sottocategoria.value=="")) return Hilite(sottocategoria, "Selezionare la sottocategoria")
	}
}
function CheckForm6_en(TheForm) {
	with (TheForm) {
	if ((sottocategoria.value=="")) return Hilite(sottocategoria, "Select a subcategory")
	}
}



function CheckForm7(TheForm) {
	with (TheForm) {
	if (userid.value=="") return Hilite(userid, "Devi inserire un userid")
	if (password.value=="") return Hilite(password, "Devi inserire una password")
	if ((acconsento.checked==false)) return Hilite(acconsento, "Bisogna acconsentire al trattamento dei dati personali")
	}
}
//-->

<!-- rollover menu

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		home_over = newImage("images/menu_it/home-over.gif");
		chisiamo_over = newImage("images/menu_it/chisiamo-over.gif");
		prodotti_over = newImage("images/menu_it/prodotti-over.gif");
		servizi_over = newImage("images/menu_it/servizi-over.gif");
		negozi_over = newImage("images/menu_it/negozi-over.gif");
		contatti_over = newImage("images/menu_it/contatti-over.gif");
		preloadFlag = true;
	}
}

// -->