<!--
function validate() 
{
// first_name 
     if (document.tdnaf.elements["first_name"].value.length < 1)
    {        
		alert("You must enter your first name!");
        document.tdnaf.elements["first_name"].focus();
        return false;
    }
// last_name 
     if (document.tdnaf.elements["last_name"].value.length < 1)
    {        
		alert("You must enter your last name!");
        document.tdnaf.elements["last_name"].focus();
        return false;
    }
// cemail
	if (!emailCheck(document.tdnaf.elements["cemail"].value))
	{
		alert("You must enter a valid email!");
        document.tdnaf.elements["cemail"].focus();
        return false;	
	}	

// street 
     if (document.tdnaf.elements["address"].value.length < 1)
    {        
		alert("You must enter your street address!");
        document.tdnaf.elements["address"].focus();
        return false;
    }
// city 
     if (document.tdnaf.elements["city"].value.length < 1)
    {        
		alert("You must enter your city!");
        document.tdnaf.elements["city"].focus();
        return false;
    }
// state
  if (document.tdnaf.elements["state"].selectedIndex == 0)
  {
    alert("Please select your state.");
    return false;
  }  
// zip 
     if (document.tdnaf.elements["zip"].value < 5)
    {        
		alert("You must enter a valid zip code!");
        document.tdnaf.elements["zip"].focus();
        return false;
    }	
// home_phone_area_code 
// home_phone_prefix
// home_phone_suffix 
	if (!checkPhone(document.tdnaf.elements["home_phone_area_code"].value, document.tdnaf.elements["home_phone_prefix"].value, document.tdnaf.elements["home_phone_suffix"].value)) 
	{
		alert("You must enter a valid home phone!");
        document.tdnaf.elements["home_phone_area_code"].focus();
        return false;		
	}
// office_phone_area_code 
// office_phone_prefix
// office_phone_suffix 
	if (!checkPhone(document.tdnaf.elements["office_phone_area_code"].value, document.tdnaf.elements["office_phone_prefix"].value, document.tdnaf.elements["office_phone_suffix"].value)) 
	{
		alert("You must enter a valid office phone!");
        document.tdnaf.elements["office_phone_area_code"].focus();
        return false;		
	}
// best_time
  if (document.tdnaf.elements["best_time"].selectedIndex == 0)
  {
    alert("Please select the best time to be contacted.");
    return (false);
  }  

// irs_amount_owed 
  if (document.tdnaf.elements["irs_amount_owed"].selectedIndex == 0)
  {
    alert("Please select an IRS amount owed.");
    return false;
  }  
// taxes_owed_for
  if (document.tdnaf.elements["taxes_owed_for"].selectedIndex == 0)
  {
    alert("Please select what your taxes are owed for.");
    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;
}


//-->