function validateContactForm() { var error=""; //var nr = document.contactform.phone.value; if(document.contactform.subject.value=="") error+='Please enter your email subject!\n'; if(document.contactform.mesaj.value=="") error+='Please enter your message!\n'; if(document.contactform.emailad.value.indexOf("@")==-1) error+='The e-mail address is incorrect!\n'; if(document.contactform.multiaddress.selectedIndex==0) error+='Please select a department!\n'; //if(isNaN(nr)) error+='Num─âr de telefon incorect!!\n'; if (error!="") alert(error); return error==""; }