function validateForm()
	{
	if(CheckName() && CheckCompany() && CheckAddress() && CheckCity() && CheckState() && CheckZip() && CheckCountry() && CheckPhone() && CheckEmail())
       {if(window.confirm("Are you ready to submit the form?"))
	   return true;
	   else
	   return false;}
else
       {return false;}
	}
	
function CheckName()
	{
if(document.frm.Contact_Name.value=="")
{     
window.alert("Enter your name, please");
document.frm.Contact_Name.focus();
return false;
}
else
    return true;
}

function CheckCompany()
	{
if(document.frm.Company_Name.value=="")
{     
window.alert("Enter your Company, please");
document.frm.Company_Name.focus();
return false;
}
else
    return true;
}

function CheckCity()
	{
if(document.frm.city.value=="")
{     
window.alert("Enter your City, please");
document.frm.city.focus();
return false;
}
else
    return true;
}

function CheckState()
	{
if(document.frm.state.value=="")
{     
window.alert("Enter your State or Province, please");
document.frm.state.focus();
return false;
}
else
    return true;
}


function CheckPhone()
	{
if(document.frm.phone.value=="")
{     
window.alert("Enter your phone number, please");
document.frm.phone.focus();
return false;
}
else
    return true;
}

function CheckAddress()
	{
if(document.frm.address.value=="")
{     
window.alert("Enter your address, please");
document.frm.address.focus();
return false;
}
else
    return true;
}

function CheckEmail(){
var thisField = document.frm.email.value;
intWhere = thisField.indexOf("@");
intDec = thisField.indexOf(".", intWhere);
ok=true;
if (intWhere == -1)
	{alert("A valid e-mail address will contain one @ (at) symbol");
	document.frm.email.focus();
	ok=false;
	}
else {
	if (intDec == -1)
	{alert("The server portion of the e-mail address is not valid");
	document.frm.email.focus();
	ok=false;
	}
	}
return(ok);
}

function CheckZip()
	{
if(document.frm.zip.value=="")
{     
window.alert("Enter your Zip or Postal Code, please");
document.frm.zip.focus();
return false;
}
else
    return true;
}

function CheckCountry()
	{
if(document.frm.country.value=="")
{     
window.alert("Enter your country, please");
document.frm.country.focus();
return false;
}
else
    return true;
}