Notice: Undefined index: lang in /var/www/public/helpdesk_client/validator.php on line 23
//ok var msg_customer = "Complete zone company's name"; //ok var msg_customer =
Notice: Undefined index: in /var/www/public/helpdesk_client/validator.php on line 27
"";
Notice: Undefined index: in /var/www/public/helpdesk_client/validator.php on line 41

Notice: Undefined index: in /var/www/public/helpdesk_client/validator.php on line 41

Notice: Undefined index: in /var/www/public/helpdesk_client/validator.php on line 42

Notice: Undefined index: in /var/www/public/helpdesk_client/validator.php on line 42

Notice: Undefined index: in /var/www/public/helpdesk_client/validator.php on line 43

Notice: Undefined index: in /var/www/public/helpdesk_client/validator.php on line 43

Notice: Undefined index: in /var/www/public/helpdesk_client/validator.php on line 44

Notice: Undefined index: in /var/www/public/helpdesk_client/validator.php on line 44

Notice: Undefined index: in /var/www/public/helpdesk_client/validator.php on line 45

Notice: Undefined index: in /var/www/public/helpdesk_client/validator.php on line 45

Notice: Undefined index: in /var/www/public/helpdesk_client/validator.php on line 46

Notice: Undefined index: in /var/www/public/helpdesk_client/validator.php on line 46

Notice: Undefined index: in /var/www/public/helpdesk_client/validator.php on line 47

Notice: Undefined index: in /var/www/public/helpdesk_client/validator.php on line 47

Notice: Undefined index: in /var/www/public/helpdesk_client/validator.php on line 48

Notice: Undefined index: in /var/www/public/helpdesk_client/validator.php on line 48

Notice: Undefined index: in /var/www/public/helpdesk_client/validator.php on line 49

Notice: Undefined index: in /var/www/public/helpdesk_client/validator.php on line 49
function Form1_Validator(theForm) { if (document.form1.customer.value == "") { //alert("Complete zone"); //alert(msg_customer); // ok alert('Complete zone: ' +
Notice: Undefined index: in /var/www/public/helpdesk_client/validator.php on line 61
""); //ok alert(
Notice: Undefined index: in /var/www/public/helpdesk_client/validator.php on line 62
"" +
Notice: Undefined index: in /var/www/public/helpdesk_client/validator.php on line 62
""); alert(" "); document.form1.customer.focus(); return (false); } //contact if (document.form1.contact.value == "") { //alert("Complete zone"); alert(" "); document.form1.contact.focus(); return (false); } //description - titre if (document.form1.description.value == "") { //alert("Complete zone"); alert(" "); document.form1.description.focus(); return (false); } // langue var langue_select; langue_select = document.form1.langue.options[document.form1.langue.selectedIndex].value; if (langue_select == 0) { //alert("Complete zone"); alert(" "); document.form1.langue.focus(); return (false); } // priorite var priorite_select; priorite_select = document.form1.priorite.options[document.form1.priorite.selectedIndex].value; if (priorite_select == 0) { //alert("Complete zone"); alert(" "); document.form1.priorite.focus(); return (false); } //telephone1 if (document.form1.telephone1.value == "") { //alert("Complete zone"); alert(" "); document.form1.telephone1.focus(); return (false); } //email if (document.form1.email.value == "") { //alert("Complete zone \"Email\"."); alert(" "); document.form1.email.focus(); return (false); } if (document.form1.email.value != "") { var stremail = document.form1.email.value; var emailFilter=/^.+@.+\..{2,3}$/; if (!(emailFilter.test(stremail))) { alert("Please, enter a valid email !"); document.form1.email.focus(); return (false); } //test email for illegal characters var illegalChars= /[\(\)\<\>\,\;\:\\\"\[\]]/; //" if (stremail.match(illegalChars)) { alert("illegal characters !"); document.form1.email.focus(); return (false); } } /* //email email_approver if (document.form1.email_approver.value == "") { //alert("Complete zone \"Email\"."); alert(" "); document.form1.email_approver.focus(); return (false); } */ if (document.form1.email_approver.value != "") { var stremail = document.form1.email_approver.value; var emailFilter=/^.+@.+\..{2,3}$/; if (!(emailFilter.test(stremail))) { alert("Please, enter a valid email !"); document.form1.email_approver.focus(); return (false); } //test email for illegal characters var illegalChars= /[\(\)\<\>\,\;\:\\\"\[\]]/; //" if (stremail.match(illegalChars)) { alert("illegal characters !"); document.form1.email_approver.focus(); return (false); } } // country var country_select; country_select = document.form1.country.options[document.form1.country.selectedIndex].value; if (country_select == 0) { //alert("Complete zone"); alert(" "); document.form1.country.focus(); return (false); } // text if (document.form1.text.value == "") { //alert("Complete zone decription"); alert(" "); document.form1.text.focus(); return (false); } return (true); }