function emailobs (email) { 
	var string1 = email;
	var string2 = "@";
	var string3 = "stayhrcompliant.com";
	var string4 = string1 + string2 + string3;
	location="mail" + "to:" + string4;
}

function disclaimeron(){
	getElementById("Disclaimer").style.display = "block";
}

function returnObjById( id )
{
    if (document.getElementById)
        var returnVar = document.getElementById(id);
    else if (document.all)
        var returnVar = document.all[id];
    else if (document.layers)
        var returnVar = document.layers[id];
    return returnVar;
}

function handleSubmit()
{
   //Required Fields
   if (returnObjById("Contact_Name").value == "") 
   {
       alert("Your contact name is a required field. Please enter your name and try again.");
       returnObjById("Contact_Name").focus();
       return false;
   }

   if (returnObjById("Title").value == "") 
   {
       alert("Your title is a required field. Please enter your title and try again.");
       returnObjById("Title").focus();
       return false;
   }

   if (returnObjById("Company").value == "") 
   {
       alert("Your company name is a required field. Please enter your company name and try again.");
       returnObjById("Company").focus();
       return false;
   }

   if (returnObjById("Address1").value == "") 
   {
       alert("Your address is a required field. Please enter your address and try again.");
       returnObjById("Address1").focus();
       return false;
   }

   if (returnObjById("City").value == "") 
   {
       alert("Your city is a required field. Please enter your city and try again.");
       returnObjById("City").focus();
       return false;
   }

   if (returnObjById("Zip").value == "") 
   {
       alert("Your zip code is a required field. Please enter your zip code and try again.");
       returnObjById("Zip").focus();
       return false;
   }

   if (returnObjById("Phone").value == "") 
   {
       alert("Your phone number is a required field. Please enter your phone number and try again.");
       returnObjById("Phone").focus();
       return false;
   }

   if (returnObjById("Email").value == "") 
   {
       alert("Your e-mail address is a required field. Please enter your e-mail address and try again.");
       returnObjById("Zip").focus();
       return false;
   }

   if (returnObjById("Contact_Name_Materials").value == "") 
   {
       alert("The contact name you'd like put on the materials is a required field. Please enter a contact name and try again.");
       returnObjById("Contact_Name_Materials").focus();
       return false;
   }

   if (returnObjById("Contact_Name_Materials_Title").value == "") 
   {
       alert("The title of the designated contact on the materials is a required field. Please enter the title for designated contact on the materials and try again.");
       returnObjById("Contact_Name_Materials_title").focus();
       return false;
   }

   returnObjById("hAction").value = "Clicked";
   returnObjById("frmContactUs").submit();
   return true;
            
       //alert(getElementsByName("rdoRespond_via")[1].checked
}

