function valForm()
{

if(document.criteria.name.value=="")
{
document.getElementById('error').innerHTML="Name Required.";
document.criteria.name.focus();
return false;
}

/*var iChars = "!@#$%^&*()+=-[]\\\';,./{}|\":<>?";
for (var i = 0; i < document.contactForm.cname.value.length; i++) {
if (iChars.indexOf(document.contactForm.cname.value.charAt(i)) != -1) {
document.getElementById('errorName').innerHTML="Enter Valid name.";
document.contactForm.email.focus();
return false;
}
}*/

if (document.criteria.email.value=="") {
document.getElementById('error').innerHTML="Please Enter a Valid Email.";
document.criteria.email.focus();
return false;
} 
else if ((document.criteria.email.value.indexOf('@') < 0) || ((document.criteria.email.value.charAt(document.criteria.email.value.length-4) != '.') && (document.criteria.email.value.charAt(document.criteria.email.value.length-3) != '.'))) {
document.getElementById('error').innerHTML="Please Enter a Valid Email.";
document.criteria.email.focus();
return false;
}


return true;
}

function valForm_Survey()
{

if(document.survey.name.value=="")
{
document.getElementById('error').innerHTML="Name Required.";
document.survey.name.focus();
return false;
}

/*var iChars = "!@#$%^&*()+=-[]\\\';,./{}|\":<>?";
for (var i = 0; i < document.contactForm.cname.value.length; i++) {
if (iChars.indexOf(document.contactForm.cname.value.charAt(i)) != -1) {
document.getElementById('errorName').innerHTML="Enter Valid name.";
document.contactForm.email.focus();
return false;
}
}*/

if (document.survey.email.value=="") {
document.getElementById('error').innerHTML="Please Enter a Valid Email.";
document.survey.email.focus();
return false;
} 
else if ((document.survey.email.value.indexOf('@') < 0) || ((document.survey.email.value.charAt(document.survey.email.value.length-4) != '.') && (document.survey.email.value.charAt(document.survey.email.value.length-3) != '.'))) {
document.getElementById('error').innerHTML="Please Enter a Valid Email.";
document.survey.email.focus();
return false;
}


return true;
}
