function ValidateName(name)
{
var badchars="0123456789/<>;:@#$%^&*()";
for (var i=0; i < name.length; i++)
{
temp = "" +name.substring(i, i+1);

if (badchars.indexOf(temp) != -1)
{
alert("Bad-characters not allowed in name");
return false;
}
}
 }

function ValidateNumber(name)
{
var badchars="/<>;:@#$%^&*";
for (var i=0; i < name.length; i++)
{
temp = "" +name.substring(i, i+1);

if (badchars.indexOf(temp) != -1)
{
alert("Bad-characters not allowed in Phone number");
return false;
}
}
 //var ch_sID = document.signup.your_name.value;
 var ch_num_sID = name.substr(0,1);

if((ch_num_sID >= "a" && ch_num_sID <= "z") || (ch_num_sID >= "A" && ch_num_sID <= "Z"))
 {
 alert("First letter should be Number here!Try Again!!");
 //document.signup.name.focus();
 return false; 
 }
return true;
}

 function checkData()
 {
 

// validate name




if (document.signup.desc.value == "") {
 alert("Sorry! Your ENQUIRY/FEEDBACK should not be empty.Please fill in your ENQUIRY/FEEDBACK.");
 document.signup.desc.focus()
 return false } 

if (ValidateName(document.signup.name.value)==false)
		{
		alert("You must enter a valid Name");
		document.signup.name.focus();
		return false;
		}

 if (document.signup.name.value == "") {
 alert("Sorry! Your Name should not be empty.Please fill in your name.");
 document.signup.name.focus()
 return false } 
 
 if (document.signup.companyname.value == "") {
 alert("Sorry! Your Company Name should not be empty.Please fill in your Company name.");
 document.signup.companyname.focus()
 return false }
 
 if (document.signup.desig.value == "") {
 alert("Sorry! Your Designation should not be empty.Please fill in your Designation.");
 document.signup.desig.focus()
 return false }
 
if (document.signup.street.value == "") {
 alert("Sorry! Your Address should not be empty.Please fill in your Address.");
 document.signup.street.focus()
 return false }

if (document.signup.cityname.value == "") {
 alert("Sorry! Your City Name should not be empty.Please fill in your City Name .");
 document.signup.cityname.focus()
 return false }

if (document.signup.state.value == "") {
 alert("Sorry! Your State Name should not be empty.Please fill in your State Name .");
 document.signup.state.focus()
 return false }

if (document.signup.zip.value == "") {
 alert("Sorry! Your ZIP CODE should not be empty.Please fill in your ZIP CODE.");
 document.signup.zip.focus()
 return false }


if (ValidateNumber(document.signup.phonew.value)==false)
		{
		alert("You must enter a valid Phone No");
		document.signup.phonew.focus();
		return false;
		}

if(document.signup.phonew.value == ""){
 alert("Please insert your Phone Number of Work!");
 document.signup.phonew.focus()
return false }

if (ValidateEMail(document.signup.email_address.value) == false)
		{
			alert("You must enter a valid e-mail account");
			document.signup.email_address.focus();
		return false;
		}


if (document.signup.email_address.value == "") {
 alert("Please Insert Your E-mail Address here.")
 
 document.signup.email_address.focus()
return false } 

if (document.signup.email_address.value.length < 7) {
 alert(" Your E-mail Address is too much short")
 
 document.signup.email_address.focus()
return false } 

if (document.signup.email_address.value.indexOf("@") < 1) {
 alert("@ missing in Your E-mail Address.")
 
 document.signup.email_address.focus()
return false } 

if (document.signup.email_address.value.indexOf(".") < 1) {
 alert("Something missing in Your E-mail-Address. Please enter a valid E-Mail Address.")
 
 document.signup.email_address.focus()
return false }

document.signup.submit(); 
 return true; 
}

