<!--
function checkrequired(which){
var pass=true
if (document.images){
for (i=0;i<which.length;i++){
var tempobj=which.elements[i]
if (tempobj.name.substring(0,4)=="req_"){
if (((tempobj.type=="text"||tempobj.type=="textarea")&&tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&tempobj.selectedIndex==0)){
pass=false
break
}
}
}
}
if (!pass){
alert("ATTENZIONE: Mancano alcune informazioni obbligatorie!")
tempobj.focus()
return false
}
else
if (which.password != null){
      if (which.password.value == "") {
        alert("ATTENZIONE: Devi specificare una PASSWORD!")
        which.password.focus()
        return false
        }
      if (which.password.value != which.password2.value) {
        alert("ATTENZIONE: La password specificata in CONFERMA PASSWORD non coincide con la prima!")
        which.password.focus()
        which.password.select()
        return false
        }
}
if (which.securitycode != null){
      if (which.securitycode.value == "") {
        alert("ATTENZIONE: Devi scrivere il codice di VERIFICA!")
        which.securitycode.focus()
        return false
        }

}
if (which.email != null){
      if (which.email.value == "") {
        alert("ATTENZIONE: Devi specificare una EMAIL!")
        which.email.focus()
        return false
        }
        var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
        if(!filter.test(which.email.value)){
        alert("ATTENZIONE: La EMAIL inserita non è valida!");
        which.email.focus()
        which.email.select()
        return false
        }
}
return true
}
//-->
