<!--
function validate() 
{
// mail_send

	if(!radio_button_checker(document.mail_send.elements["bcpatch1"]))
	{
		alert("Please select whether your eployer paid you overtime for more than 8 hours per day or more than 40hrs.");
        return false;
	}

	if(!radio_button_checker(document.mail_send.elements["p2"]))
	{
		alert("Please select whether you still work for this company.");
        return false;
	}

     if (document.mail_send.elements["name1"].value.length < 1)
    {        
		alert("What is your hourly rate of pay!");
        document.mail_send.elements["name1"].focus();
        return false;
    }

     if (document.mail_send.elements["name2"].value.length < 1)
    {        
		alert("What is your job title!");
        document.mail_send.elements["name2"].focus();
        return false;
    }	
	//
  if (document.mail_send.elements["ddl1"].selectedIndex == 0)
  {
    alert("Please select how many employees work for this company.");
    return false;
  }  
  if (document.mail_send.elements["ddl2"].selectedIndex == 0)
  {
    alert("Please select how many employees may not be receiving overtime.");
    return false;
  }   
  
     if (document.mail_send.elements["name3"].value.length < 1)
    {        
		alert("Please enter your full name!");
        document.mail_send.elements["name3"].focus();
        return false;
    }   

	if (!emailCheck(document.mail_send.elements["name4"].value))
	{
		alert("You must enter a valid email!");
        document.mail_send.elements["name4"].focus();
        return false;	
	}

     if (document.mail_send.elements["primaryphone"].value.length < 1)
    {        
		alert("Please enter your primary phone number.");
        document.mail_send.elements["primaryphone"].focus();
        return false;
    }	

if(document.mail_send.elements["name6"].value.length > 0)
{
     if (document.mail_send.elements["name6"].value.length < 10)
    {        
		alert("Please enter a valid secondary phone number");
        document.mail_send.elements["name6"].focus();
        return false;
    }	
}

     if (document.mail_send.elements["comment"].value.length < 1)
    {        
		alert("Please include comments that may help us evaluate your CA overtime claim.");
        document.mail_send.elements["comment"].focus();
        return false;
    }		
}

function checkPhone(areacode,prefix,suffix) {
    var phoneOK = true;
    if (isNaN(areacode)) { phoneOK = false; }
    if (areacode < 200)	{ phoneOK = false; }
    if (!phonelist[areacode] || phonelist[areacode].length != 2) { phoneOK = false; }
    if ((prefix < 200) || (prefix == "555") || isNaN(prefix) ) { phoneOK = false; }
    if (suffix.length < 4 || isNaN(suffix) ) { phoneOK = false; }
    return phoneOK;
}

function radio_button_checker(rB) {
	var radio_choice = false;

	for (counter = 0; counter < rB.length; counter++)
	{
		if (rB[counter].checked)
		radio_choice = true; 
	}
	if (!radio_choice)
	{
		return false;
	}
		return true;
}

//-->