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.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.a2.value == "") {
 alert("May we know the specifications of your offered material in:");
 document.signup.a2.focus()
 return false } 

 if (document.signup.qty.value == "") {
 alert("May we know your proposed offer quantity.");
 document.signup.qty.focus()
 return false } 

if (document.signup.price.value == "") {
 alert("May we know your proposed offer price.");
 document.signup.price.focus()
 return false } 

if (document.signup.del.value == "") {
 alert("May we please know the location of the material and its delivery period.");
 document.signup.del.focus()
 return false } 

if (document.signup.loc.value == "") {
 alert("May we please know the location of the material and its delivery period.");
 document.signup.loc.focus()
 return false } 

if (document.signup.inquire.value == "") {
 alert("Please fill,  Would you please tell us more about your inquiry.");
 document.signup.inquire.focus()
 return false } 



if (document.signup.companyname.value == "") {
 alert("Sorry! Your Company Name should not be empty. Please fill in your Name.");
 document.signup.companyname.focus()
 return false } 

if (document.signup.email.value == "") {
 alert("Please Insert Your E-mail Address here.")
 
 document.signup.email.focus()
return false } 

if (document.signup.email.value.length < 7) {
 alert(" Your E-mail Address is too much short")
 
 document.signup.email.focus()
return false } 

if (document.signup.email.value.indexOf("@") < 1) {
 alert("@ missing in Your E-mail Address.")
 
 document.signup.email.focus()
return false } 

if (document.signup.email.value.indexOf(".") < 1) {
 alert("Something missing in Your E-mail-Address. Please enter a valid E-Mail Address.")
 
 document.signup.email.focus()
return false } 


if (document.signup.contactname.value == "") {
 alert("Sorry! Your NAME should not be empty.Please fill in your NAME.");
 document.signup.contactname.focus()
 return false } 
 
if (document.signup.address.value == "") {
 alert("Sorry! Your Address should not be empty.Please fill in your Address.");
 document.signup.address.focus()
 return false } 
 
if (document.signup.city.value == "") {
 alert("Sorry! Your CITY should not be empty.Please fill in your CITY.");
 document.signup.city.focus()
 return false } 

if (document.signup.zipc.value == "") {
 alert("Sorry! Your ZIP CODE should not be empty.Please fill in your ZIP CODE.");
 document.signup.zipc.focus()
 return false } 

if (document.signup.state.value == "") {
 alert("Sorry! Your STATE should not be empty.Please fill in your STATE.");
 document.signup.state.focus()
 return false } 

if (document.signup.phonecc.value == "") {
 alert("Sorry! Your phone number - Country Code should not be empty.Please fill in your Country Code of phone number.");
 document.signup.phonecc.focus()
 return false } 


if (document.signup.phoneac.value == "") {
 alert("Sorry! Your phone number - Area Code should not be empty.Please fill in your AREA CODE phone number.");
 document.signup.phoneac.focus()
 return false } 

if (document.signup.phoneno.value == "") {
 alert("Sorry! Your phone number should not be empty. Please fill in your phone number.");
 document.signup.phoneno.focus()
 return false } 
 

if (document.signup.faxcc.value == "") {
 alert("Sorry! Your Fax number - Country Code should not be empty.Please fill in your Country Code of fax number.");
 document.signup.faxcc.focus()
 return false } 


if (document.signup.faxac.value == "") {
 alert("Sorry! Your phone number - Area Code should not be empty. Please fill in your AREA CODE fax number.");
 document.signup.faxac.focus()
 return false } 

if (document.signup.faxn.value == "") {
 alert("Sorry! Your fax number should not be empty. Please fill in your fax number.");
 document.signup.faxn.focus()
 return false } 
 

document.signup.submit(); 
 return true; 
}

