<!--
<!-- controlla i campi del form di login -->
function controlla() {
var f = document.frmlogin

if (f.em.value == "") {
alert("Inserisci la tua email !");
f.em.focus();
return false;
}

if(f.em.value.indexOf("'")>=0){
alert("L' indirizzo E-Mail contiene caratteri non validi !")
f.em.focus();
f.em.select();
return false;
    } 

if(f.em.value.indexOf("*")>=0){
alert("L' indirizzo E-Mail contiene caratteri non validi !")
f.em.focus();
f.em.select();
return false;
    } 	

if ((f.em.value > "") & (f.em.value.indexOf("@") == -1)) {
alert("L' indirizzo E-Mail non è valido !")
f.em.focus();
f.em.select();
return false;
}

if ((f.em.value > "") & (f.em.value.indexOf(".") == -1)) {
alert("L' indirizzo E-Mail non è valido !")
f.em.focus();
f.em.select();
return false;
}

if (f.pw.value == "") {
alert("Inserisci la tua password per accedere !");
f.pw.focus();
return false;
}

if(f.pw.value.indexOf("'")>=0){
alert("La password contiene caratteri non validi !")
return false;
    } 

if(f.pw.value.indexOf("*")>=0){
alert("La password contiene caratteri non validi !")
f.pw.focus();
f.pw.select();
return false;
    } 	

}

// -->
