
<!--


//Disable right mouse click Script

var message="Copyright Mondodeco";

///////////////////////////////////
function clickIE4(){
if (event.button==2 || (event.button==3)){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")


///////////////////////////////////
function modelesswin(url,mwidth,mheight){
if (document.all&&window.print) //if ie5
eval('window.showModelessDialog(url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px")')
else
eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
}
///////////////////////////////////
function validate()
{
x=document.login
nome=x.nome.value
cognome=x.cognome.value
indirizzo=x.indirizzo.value
codice_fiscale=x.codice_fiscale.value
numero=x.numero.value
telefono=x.telefono.value
at=x.email.value.indexOf("@")
pw=x.pw.value
pwc=x.pwc.value
agree=x.terms_agree.value
submitOK="True"

if (nome.length==0)
 {
 alert("Prego, inserire il nome - please enter first name")
 submitOK="False"
 }
if (cognome.length==0)
 {
 alert("Prego, inserire il cognome - please enter last name")
 submitOK="False"
 }
if (indirizzo.length==0)
 {
 alert("Prego, inserire l'indirizzo - please enter your address")
 submitOK="False"
 }
 if (codice_fiscale.length==0)
 {
 alert("Prego, inserire il codice fiscale")
 submitOK="False"
 }
 if (numero.length==0)
 {
 alert("Prego, inserire il numero civico - please enter address number")
 submitOK="False"
 }
if (telefono.length==0)
 {
 alert("Prego, inserire il telefono - please enter telephone number")
 submitOK="False"
 }
if (at==-1)
 {
 alert("Email non valida - invalid email ")
 submitOK="False"
 }
if (pw.length!==6)
 {
 alert("Prego, inserire password di 6 caratteri - please enter 6 chars password")
 submitOK="False"
 }
if (pwc!==pw)
 {
 alert("Riscrivere password - please reenter password")
 submitOK="False"
 }
if (submitOK=="False")
 {
 return false
 }
}

// -->


