/****************************************************
  This script was created originally
  by Josh Bauer. December, 1999 (joshdb@pacbell.net)
  Modified by Judith Taylor (judi@frognet.net)
  June, 2000
****************************************************/

//Validate Annuity Forms

var OkToSubmit = true;

function check_annuity(theForm)
{
    if (theForm.first_name.value == "")
  {
    alert("Please enter your first name.");
    theForm.first_name.focus();
    return (false);
  }
  if (theForm.last_name.value == "")
  {
    alert("Please enter your last name.");
    theForm.last_name.focus();
    return (false);
  }
  if (theForm.real_addr.value == "")
  {
    alert("Please enter your street address.");
    theForm.real_addr.focus();
    return (false);
  }
  if (theForm.city.value == "")
  {
    alert("Please enter your city.");
    theForm.city.focus();
    return (false);
  }
  if (theForm.zip_code.value == "")
  {
    alert("Please enter your zip code.");
    theForm.zip_code.focus();
    return (false);
  }
  if (theForm.day_phone_ac.value == "")
  {
    alert("Please enter your day time area code. Type 'n/a' if none.");
    theForm.day_phone_ac.focus();
    return (false);
  }
if (theForm.day_phone_pre.value == "")
  {
    alert("Please enter your day time phone number. Type 'n/a' if none.");
    theForm.day_phone_pre.focus();
    return (false);
  }
if (theForm.day_phone_num.value == "")
  {
    alert("Please enter your day time phone number. Type 'n/a' if none.");
    theForm.day_phone_num.focus();
    return (false);
  }
  if (theForm.eve_phone_ac.value == "")
  {
    alert("Please enter your evening area code. Type 'n/a' if none.");
    theForm.eve_phone_ac.focus();
    return (false);
  }
if (theForm.eve_phone_pre.value == "")
  {
    alert("Please enter your evening time phone number. Type 'n/a' if none.");
    theForm.eve_phone_pre.focus();
    return (false);
  }
if (theForm.eve_phone_num.value == "")
  {
    alert("Please enter your evening time phone number. Type 'n/a' if none.");
    theForm.eve_phone_num.focus();
    return (false);
  }
  if (theForm.email_addr.value == "")
  {
    alert("Please enter your e-mail address.");
    theForm.email_addr.focus();
    return (false);
  }
  if (theForm.year.value == "")
  {
    alert("Please enter the year you were born.");
    theForm.year.focus();
    return (false);
  }
  if (theForm.amt_to_invest.value == "")
  {
    alert("Please enter the amount you want to invest.");
    theForm.amt_to_invest.focus();
    return (false);
  }
  return (true);
}
// End Annuity Validator


//Validate Annuity Popup Forms
function Check_AnnuityPop(theForm)
{
    var errorFree = true;
    var theError = "You have entered in the following information improperly:\n";

    //Check Year Field
    myRE = /\d\d/;;
    
    if(!myRE.test(theForm.year.value))
	{
	    theError += "\n\t-Birth Year";
	    errorFree = false;
	}
    
    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.amt_to_invest.value))
    //if(theForm.amt_to_invest.value.length == 0 || isNaN(theForm.amt_to_invest.value))
	{
	    theError += "\n\t-Amount to Invest";
	    errorFree = false;
	}
    
    myRE = /^\d*(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.plan_to_add.value))
	{
	    theError += "\n\t-Lump Sum Payment";
	    errorFree = false;
	}

    if(!errorFree)
	{
	    alert(theError);
	}
    else
	{
	    theForm.submit()
	}

}// End Annuity Popup Validator


//Validate Auto Forms
function Check_Auto(theForm)
{

    var errorFree = true;
    var theError = "You have entered in the following information improperly:";

    if(theForm.first_name.value.length == 0)
	{
	    theError += "\n\t-Fisrt Name";
	    errorFree = false;
	}

    if(theForm.last_name.value.length == 0)
	{
	    theError += "\n\t-Last Name";
	    errorFree = false;
	}

    if(theForm.real_addr.value.length == 0)
	{
	    theError += "\n\t-Street Address";
	    errorFree = false;
	}

    if(theForm.city.value.length == 0)
	{
	    theError += "\n\t-City";
	    errorFree = false;
	}

    if(theForm.zip_code.value.length !=5 || isNaN(theForm.zip_code.value))
	{
	    theError += "\n\t-Zip Code";
	    errorFree = false;
	}

    if(theForm.day_phone_ac.value.length == 0 || theForm.day_phone_pre.value.length == 0 || theForm.day_phone_num.value.length == 0 || isNaN(theForm.day_phone_ac.value) || isNaN(theForm.day_phone_pre.value) || isNaN(theForm.day_phone_num.value))
	{
	    theError += "\n\t-Day Phone";
	    errorFree = false;
	}

    if(theForm.eve_phone_ac.value.length == 0 || theForm.eve_phone_pre.value.length == 0 || theForm.eve_phone_num.value.length == 0 || isNaN(theForm.eve_phone_ac.value) || isNaN(theForm.eve_phone_pre.value) || isNaN(theForm.eve_phone_num.value))
	{
	    theError += "\n\t-Evening Phone";
	    errorFree = false;
	}

    myRE = new RegExp(".+@.+\..+");
    if(!myRE.test(theForm.email_addr.value))
	{
	    theError += "\n\t-Email Address";
	    errorFree = false;
	}

    myRE = /\d\d/;
    if(!myRE.test(theForm.year.value))
	{
	    theError += "\n\t-Birth Year";
	    errorFree = false;
	}

    if(theForm.drivers.value.length == 0)
	{
	    theError += "\n\t-Drivers License ";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.paying_now.value))
	{
	    theError += "\n\t-How much are you paying now?";
	    errorFree = false;
	}

    if(theForm.number_drivers.value.length == 0 || isNaN(theForm.number_drivers.value))
	{
	    theError += "\n\t-Number of Drivers in Your Household?";
	    errorFree = false;
	}

    if(theForm.number_vehicles.value.length == 0 || isNaN(theForm.number_vehicles.value))
	{
	    theError += "\n\t-Number of Vehicles in Your Household?";
	    errorFree = false;
	}

    if(theForm.years_had.value.length == 0 || isNaN(theForm.years_had.value))
	{
	    theError += "\n\t-How Many Years Have You Had Your Driver's License?";
	    errorFree = false;
	}

    myRE = /^\d\d\d\d$/;
    if(!myRE.test(theForm.year_made.value))
	{
	    theError += "\n\t-What Year Was Your Car Manufactured? (YYYY)";
	    errorFree = false;
	}

    if(theForm.car_make.value.length == 0)
	{
	    theError += "\n\t-What Is The Make Of Your Car?";
	    errorFree = false;
	}

    if(theForm.car_model.value.length == 0)
	{
	    theError += "\n\t-What Is The Model Of Your Car?";
	    errorFree = false;
	}

   if(!errorFree)
	{
	    alert(theError);
	}
    else
	{
	    theForm.submit()
	}

}//End Auto Validator


//Validate Auto Popup Forms
function Check_AutoPop(theForm)
{

    var errorFree = true;
    var theError = "You have entered in the following information improperly:";

    myRE = /\d\d/;
    if(!myRE.test(theForm.year.value))
	{
	    theError += "\n\t-Birth Year";
	    errorFree = false;
	}

    if(theForm.drivers.value.length == 0)
	{
	    theError += "\n\t-Drivers License ";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.paying_now.value))
	{
	    theError += "\n\t-How much are you paying now?";
	    errorFree = false;
	}

    if(theForm.number_drivers.value.length == 0 || isNaN(theForm.number_drivers.value))
	{
	    theError += "\n\t-Number of Drivers in Your Household?";
	    errorFree = false;
	}

    if(theForm.number_vehicles.value.length == 0 || isNaN(theForm.number_vehicles.value))
	{
	    theError += "\n\t-Number of Vehicles in Your Household?";
	    errorFree = false;
	}

    if(theForm.years_had.value.length == 0 || isNaN(theForm.years_had.value))
	{
	    theError += "\n\t-How Many Years Have You Had Your Driver's License?";
	    errorFree = false;
	}

    myRE = /^\d\d\d\d$/;
    if(!myRE.test(theForm.year_made.value))
	{
	    theError += "\n\t-What Year Was Your Car Manufactured? (YYYY)";
	    errorFree = false;
	}

    if(theForm.car_make.value.length == 0)
	{
	    theError += "\n\t-What Is The Make Of Your Car?";
	    errorFree = false;
	}

    if(theForm.car_model.value.length == 0)
	{
	    theError += "\n\t-What Is The Model Of Your Car?";
	    errorFree = false;
	}

   if(!errorFree)
	{
	    alert(theError);
	}
    else
	{
	    theForm.submit()
		}

}//End Auto Popup Validator



//Validate DebtConsolidation Form
function Check_DebtConsolidation(theForm)
{
    var errorFree = true;
    var theError = "You have entered in the following information improperly:";

    if(theForm.fname.value.length == 0)
	{
	    theError += "\n\t-Fisrt Name";
	    errorFree = false;
	}

    if(theForm.lname.value.length == 0)
	{
	    theError += "\n\t-Last Name";
	    errorFree = false;
	}

    if(theForm.address1.value.length == 0)
	{
	    theError += "\n\t-Street Address";
	    errorFree = false;
	}

    if(theForm.city.value.length == 0)
	{
	    theError += "\n\t-City";
	    errorFree = false;
	}

    if(theForm.zip_code.value.length !=5 || isNaN(theForm.zip_code.value))
	{
	    theError += "\n\t-Zip Code";
	    errorFree = false;
	}

    if(theForm.day_phone_ac.value.length == 0 || theForm.day_phone_pre.value.length == 0 || theForm.day_phone_num.value.length == 0 || isNaN(theForm.day_phone_ac.value) || isNaN(theForm.day_phone_pre.value) || isNaN(theForm.day_phone_num.value))
	{
	    theError += "\n\t-Day Phone";
	    errorFree = false;
	}

    if(theForm.eve_phone_ac.value.length == 0 || theForm.eve_phone_pre.value.length == 0 || theForm.eve_phone_num.value.length == 0 || isNaN(theForm.eve_phone_ac.value) || isNaN(theForm.eve_phone_pre.value) || isNaN(theForm.eve_phone_num.value))
	{
	    theError += "\n\t-Evening Phone";
	    errorFree = false;
	}

    myRE = new RegExp(".+@.+\..+");
    if(!myRE.test(theForm.email_addr.value))
	{
	    theError += "\n\t-Email Address";
	    errorFree = false;
	}

    if(theForm.self_employed.options[0].selected && (theForm.years_employed.value.length == 0 || isNaN(theForm.years_employed.value)))
	{
	    theError += "\n\t-How long have you been with your employer?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.monthly_gross.value))
	{
	    theError += "\n\t-How much do you gross each month?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.monthly_debt.value))
	{
	    theError += "\n\t-How much do you owe each month?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.cash_needed.value))
	{
	    theError += "\n\t-How much cash do you need?";
	    errorFree = false;
	}

    if(theForm.how_long_owned.value.length == 0 || isNaN(theForm.how_long_owned.value))
	{
	    theError += "\n\t-How long have you owned your home?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.home_sale_price.value))
	{
	    theError += "\n\t-Your home's original sale price?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.mortgage_balance.value))
	{
	    theError += "\n\t-Your current mortgage balance?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.important_aspect[1].checked && !myRE.test(theForm.get_cash_equal.value))
	{
	    theError += "\n\t-Get cash equal to:";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.amount_for_a_second.value))
	{
	    theError += "\n\t-Amount I want for a 2nd mortgage";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.monthly_payment.value))
	{
	    theError += "\n\t-Your current mortgage monthly payment?";
	    errorFree = false;
	}

    myRE = /^\d+(\.\d{2})?$/;
    if(!myRE.test(theForm.current_rate.value))
	{
	    theError += "\n\t-Current mortgage interest rate";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.current_worth.value))
	{
	    theError += "\n\t-How much is your home currently worth?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_balance.value))
	{
	    theError += "\n\t-2nd mortgage balance?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_payment.value))
	{
	    theError += "\n\t-2nd mortgage monthly payment?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_rate.value))
	{
	    theError += "\n\t-2nd mortgage interest rate?";
	    errorFree = false;
	}

    myRE = /^\d+(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_rate.value))
	{
	    theError += "\n\t-2nd mortgage interest rate?";
	    errorFree = false;
	}

   if(!errorFree)
	{
	    alert(theError);
	}
    else
	{
	    theForm.submit()
	}

} //End DebtConsolidation Validator


//Validate DebtConsolidation Popup Form
function Check_DebtConsolidationPop(theForm)
{
    var errorFree = true;
    var theError = "You have entered in the following information improperly:";

    if(theForm.self_employed.options[0].selected && (theForm.years_employed.value.length == 0 || isNaN(theForm.years_employed.value)))
	{
	    theError += "\n\t-How long have you been with your employer?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.monthly_gross.value))
	{
	    theError += "\n\t-How much do you gross each month?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.monthly_debt.value))
	{
	    theError += "\n\t-How much do you owe each month?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.cash_needed.value))
	{
	    theError += "\n\t-How much cash do you need?";
	    errorFree = false;
	}

    if(theForm.how_long_owned.value.length == 0 || isNaN(theForm.how_long_owned.value))
	{
	    theError += "\n\t-How long have you owned your home?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.home_sale_price.value))
	{
	    theError += "\n\t-Your home's original sale price?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.mortgage_balance.value))
	{
	    theError += "\n\t-Your current mortgage balance?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.important_aspect[1].checked && !myRE.test(theForm.get_cash_equal.value))
	{
	    theError += "\n\t-Get cash equal to:";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.amount_for_a_second.value))
	{
	    theError += "\n\t-Amount I want for a 2nd mortgage";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.monthly_payment.value))
	{
	    theError += "\n\t-Your current mortgage monthly payment?";
	    errorFree = false;
	}

    myRE = /^\d+(\.\d{2})?$/;
    if(!myRE.test(theForm.current_rate.value))
	{
	    theError += "\n\t-Current mortgage interest rate";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.current_worth.value))
	{
	    theError += "\n\t-How much is your home currently worth?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_balance.value))
	{
	    theError += "\n\t-2nd mortgage balance?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_payment.value))
	{
	    theError += "\n\t-2nd mortgage monthly payment?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_rate.value))
	{
	    theError += "\n\t-2nd mortgage interest rate?";
	    errorFree = false;
	}

    myRE = /^\d+(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_rate.value))
	{
	    theError += "\n\t-2nd mortgage interest rate?";
	    errorFree = false;
	}

   if(!errorFree)
	{
	    alert(theError);
	}
    else
	{
	    theForm.submit()
		}

} //End DebtConsolidation Popup Validator



//Validate Disability Form
function Check_Disability(theForm)
{
    var errorFree = true;
    var theError = "You have entered in the following information improperly:";

    if(theForm.first_name.value.length == 0)
	{
	    theError += "\n\t-Fisrt Name";
	    errorFree = false;
	}

    if(theForm.last_name.value.length == 0)
	{
	    theError += "\n\t-Last Name";
	    errorFree = false;
	}

    if(theForm.real_addr.value.length == 0)
	{
	    theError += "\n\t-Street Address";
	    errorFree = false;
	}

    if(theForm.city.value.length == 0)
	{
	    theError += "\n\t-City";
	    errorFree = false;
	}

    if(theForm.zip_code.value.length !=5 || isNaN(theForm.zip_code.value))
	{
	    theError += "\n\t-Zip Code";
	    errorFree = false;
	}

    if(theForm.day_phone_ac.value.length == 0 || theForm.day_phone_pre.value.length == 0 || theForm.day_phone_num.value.length == 0 || isNaN(theForm.day_phone_ac.value) || isNaN(theForm.day_phone_pre.value) || isNaN(theForm.day_phone_num.value))
	{
	    theError += "\n\t-Day Phone";
	    errorFree = false;
	}

    if(theForm.eve_phone_ac.value.length == 0 || theForm.eve_phone_pre.value.length == 0 || theForm.eve_phone_num.value.length == 0 || isNaN(theForm.eve_phone_ac.value) || isNaN(theForm.eve_phone_pre.value) || isNaN(theForm.eve_phone_num.value))
	{
	    theError += "\n\t-Evening Phone";
	    errorFree = false;
	}

    myRE = new RegExp(".+@.+\..+");
    if(!myRE.test(theForm.email_addr.value))
	{
	    theError += "\n\t-Email Address";
	    errorFree = false;
	}

    myRE = /\d\d/;
    if(!myRE.test(theForm.year.value))
	{
	    theError += "\n\t-Birth Year";
	    errorFree = false;
	}

    if(theForm.weight.value.length == 0 || isNaN(theForm.weight.value))
	{
	    theError += "\n\t-Weight";
	    errorFree = false;
	}

    if(theForm.self.options[0].selected && theForm.employer.value.length == 0)
	{
	    theError += "\n\t-If 'No', who is your employer?";
	    errorFree = false;
	}

    if(theForm.business_type.value.length == 0)
	{
	    theError += "\n\t-What type of business are you employed with?";
	    errorFree = false;
	}

    if(theForm.position.value.length == 0)
	{
	    theError += "\n\t-What is your position?";
	    errorFree = false;
	}

    if(theForm.occupation.value.length == 0)
	{
	    theError += "\n\t-Occupation";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.gross.value))
	{
	    theError += "\n\t-Present Monthly Gross Income";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.benefit.value))
	{
	    theError += "\n\t-Monthly Benefit Requested";
	    errorFree = false;
	}

   if(!errorFree)
	{
	    alert(theError);
	}
    else
	{
	    theForm.submit()
	}

} //End Disability Validator


//Validate Disability PopupForm
function Check_DisabilityPop(theForm)
{
    var errorFree = true;
    var theError = "You have entered in the following information improperly:";

    myRE = /\d\d/;
    if(!myRE.test(theForm.year.value))
	{
	    theError += "\n\t-Birth Year";
	    errorFree = false;
	}

    if(theForm.weight.value.length == 0 || isNaN(theForm.weight.value))
	{
	    theError += "\n\t-Weight";
	    errorFree = false;
	}

    if(theForm.self.options[0].selected && theForm.employer.value.length == 0)
	{
	    theError += "\n\t-If 'No', who is your employer?";
	    errorFree = false;
	}

    if(theForm.business_type.value.length == 0)
	{
	    theError += "\n\t-What type of business are you employed with?";
	    errorFree = false;
	}

    if(theForm.position.value.length == 0)
	{
	    theError += "\n\t-What is your position?";
	    errorFree = false;
	}

    if(theForm.occupation.value.length == 0)
	{
	    theError += "\n\t-Occupation";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.gross.value))
	{
	    theError += "\n\t-Present Monthly Gross Income";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.benefit.value))
	{
	    theError += "\n\t-Monthly Benefit Requested";
	    errorFree = false;
	}

   if(!errorFree)
	{
	    alert(theError);
	}
    else
	{
	    theForm.submit()
		}

} //End Disability Popup Validator



//Validate GroupHealth Form
function checkGroupHealth(theForm)

{
  if (theForm.first_name.value == "")
  {
    alert("Please enter your first name.");
    theForm.first_name.focus();
    return (false);
  }
  if (theForm.last_name.value == "")
  {
    alert("Please enter your last name.");
    theForm.last_name.focus();
    return (false);
  }
  if (theForm.real_addr.value == "")
  {
    alert("Please enter your street address.");
    theForm.real_addr.focus();
    return (false);
  }
  if (theForm.city.value == "")
  {
    alert("Please enter your city.");
    theForm.city.focus();
    return (false);
  }
  if (theForm.zip_code.value == "")
  {
    alert("Please enter your zip code.");
    theForm.zip_code.focus();
    return (false);
  }
  if (theForm.day_phone_ac.value == "")
  {
    alert("Please enter your day time area code. Type 'n/a' if none.");
    theForm.day_phone_ac.focus();
    return (false);
  }
if (theForm.day_phone_pre.value == "")
  {
    alert("Please enter your day time phone number. Type 'n/a' if none.");
    theForm.day_phone_pre.focus();
    return (false);
  }
if (theForm.day_phone_num.value == "")
  {
    alert("Please enter your day time phone number. Type 'n/a' if none.");
    theForm.day_phone_num.focus();
    return (false);
  }
  if (theForm.eve_phone_ac.value == "")
  {
    alert("Please enter your evening area code. Type 'n/a' if none.");
    theForm.eve_phone_ac.focus();
    return (false);
  }
if (theForm.eve_phone_pre.value == "")
  {
    alert("Please enter your evening time phone number. Type 'n/a' if none.");
    theForm.eve_phone_pre.focus();
    return (false);
  }
if (theForm.eve_phone_num.value == "")
  {
    alert("Please enter your evening time phone number. Type 'n/a' if none.");
    theForm.eve_phone_num.focus();
    return (false);
  }
  if (theForm.email_addr.value == "")
  {
    alert("Please enter your e-mail address.");
    theForm.email_addr.focus();
    return (false);
  }
  if (theForm.year.value == "")
  {
    alert("Please enter the year you were born.");
    theForm.year.focus();
    return (false);
  }
// Employee 1
  if (theForm.ename1.value == "")
  {
    alert("You must enter at least one employee's information for a Group Health Insurance quote.");
    theForm.ename1.focus();
    return (false);
  }
  if (theForm.age1.value == "")
  {
    alert("You must enter at least one employee's information for a Group Health Insurance quote.");
    theForm.age1.focus();
    return (false);
  }
  if (theForm.occu1.value == "")
  {
    alert("You must enter at least one employee's information for a Group Health Insurance quote.");
    theForm.occu1.focus();
    return (false);
  }
  if (theForm.salary1.value == "")
  {
    alert("You must enter at least one employee's information for a Group Health Insurance quote.");
    theForm.salary1.focus();
    return (false);
  }
// Employee 2
  if (theForm.ename2.value != "" && theForm.age2.value == "")
  {
    alert("Please enter the employee's age.");
    theForm.age2.focus();
    return (false);
  }
    if (theForm.ename2.value != "" && theForm.occu2.value == "")
    {
      alert("Please enter the employee's occupation.");
      theForm.occu2.focus();
      return (false);
    }
    if (theForm.ename2.value != "" && theForm.salary2.value == "")
    {
      alert("Please enter the employee's salary.");
      theForm.salary2.focus();
      return (false);
    }
// Employee 3
  if (theForm.ename3.value != "" && theForm.age3.value == "")
    {
      alert("Please enter the employee's age.");
      theForm.age3.focus();
      return (false);
    }
    if (theForm.ename3.value != "" && theForm.occu3.value == "")
    {
      alert("Please enter the employee's occupation.");
      theForm.occu2.focus();
      return (false);
    }
    if (theForm.ename3.value != "" && theForm.salary3.value == "")
    {
      alert("Please enter the employee's salary.");
      theForm.salary3.focus();
      return (false);
    }
// Employee 4
  if (theForm.ename4.value != "" && theForm.age4.value == "")
    {
      alert("Please enter the employee's age.");
      theForm.age4.focus();
      return (false);
    }
    if (theForm.ename4.value != "" && theForm.occu4.value == "")
    {
      alert("Please enter the employee's occupation.");
      theForm.occu4.focus();
      return (false);
    }
    if (theForm.ename4.value != "" && theForm.salary4.value == "")
    {
      alert("Please enter the employee's salary.");
      theForm.salary4.focus();
      return (false);
    }
// Employee 5
  if (theForm.ename5.value != "" && theForm.age5.value == "")
    {
      alert("Please enter the employee's age.");
      theForm.age5.focus();
      return (false);
    }
    if (theForm.ename5.value != "" && theForm.occu5.value == "")
    {
      alert("Please enter the employee's occupation.");
      theForm.occu5.focus();
      return (false);
    }
    if (theForm.ename5.value != "" && theForm.salary5.value == "")
    {
      alert("Please enter the employee's salary.");
      theForm.salary5.focus();
      return (false);
    }
 return (true);
}
//End GroupHealth Validator


//Validate GroupHealth Popup Form
function Check_GroupHealthPop(theForm)
{
    var errorFree = true;
    var theError = "You have entered in the following information improperly:";

    if(theForm.ename1.value.length == 0)
	{
	    theError += "\n\t-Employee 1's Name";
	    errorFree = false;
	}

    if(theForm.occu1.value.length == 0)
	{
	    theError += "\n\t-Employee 1's Occupation";
	    errorFree = false;
	}

    if(theForm.age1.value.length == 0 || isNaN(theForm.age1.value))
	{
	    theError += "\n\t-Employee 1's Age";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.salary1.value))
	{
	    theError += "\n\t-Employee 1's Salary";
	    errorFree = false;
	}

    //Employee 2
    if((theForm.ename2.value.length != 0 || theForm.age2.value.length !=0 || theForm.occu2.value.length !=0 || theForm.salary2.value.length !=0) && (theForm.ename2.value.length == 0 || theForm.age2.value.length == 0 || theForm.occu2.value.length == 0 || theForm.salary2.value.length == 0))
	{
	    if(theForm.ename2.value.length == 0)
		{
		    theError += "\n\t-Employee 2's Name";
		    errorFree = false;
		}

	    if(theForm.occu2.value.length == 0)
		{
		    theError += "\n\t-Employee 2's Occupation";
		    errorFree = false;
		}

	    if(theForm.age2.value.length == 0 || isNaN(theForm.age2.value))
		{
		    theError += "\n\t-Employee 2's Age";
		    errorFree = false;
		}

	    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
	    if(!myRE.test(theForm.salary2.value))
		{
		    theError += "\n\t-Employee 2's Salary";
		    errorFree = false;
		}
	}
    else
	{
	    if(theForm.age2.value.length != 0 && isNaN(theForm.age2.value))
		{
		    theError += "\n\t-Employee 2's Age";
		    errorFree = false;
		}

	    myRE = /^\d*(,\d{3})*(\.\d{2})?$/;
	    if(!myRE.test(theForm.salary2.value))
		{
		    theError += "\n\t-Employee 2's Salary";
		    errorFree = false;
		}
	}

    //Employee 3
    if((theForm.ename3.value.length != 0 || theForm.age3.value.length !=0 || theForm.occu3.value.length !=0 || theForm.salary3.value.length !=0) && (theForm.ename3.value.length == 0 || theForm.age3.value.length == 0 || theForm.occu3.value.length == 0 || theForm.salary3.value.length == 0))
	{
	    if(theForm.ename3.value.length == 0)
		{
		    theError += "\n\t-Employee 3's Name";
		    errorFree = false;
		}

	    if(theForm.occu3.value.length == 0)
		{
		    theError += "\n\t-Employee 3's Occupation";
		    errorFree = false;
		}

	    if(theForm.age3.value.length ==0 || isNaN(theForm.age3.value))
		{
		    theError += "\n\t-Employee 3's Age";
		    errorFree = false;
		}

	    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
	    if(!myRE.test(theForm.salary3.value))
		{
		    theError += "\n\t-Employee 3's Salary";
		    errorFree = false;
		}
	}
    else
	{
	    if(theForm.age3.value.length != 0 && isNaN(theForm.age3.value))
		{
		    theError += "\n\t-Employee 3's Age";
		    errorFree = false;
		}

	    myRE = /^\d*(,\d{3})*(\.\d{2})?$/;
	    if(!myRE.test(theForm.salary3.value))
		{
		    theError += "\n\t-Employee 3's Salary";
		    errorFree = false;
		}
	}

    //Employee 4
    if((theForm.ename4.value.length != 0 || theForm.age4.value.length !=0 || theForm.occu4.value.length !=0 || theForm.salary4.value.length !=0) && (theForm.ename4.value.length == 0 || theForm.age4.value.length == 0 || theForm.occu4.value.length == 0 || theForm.salary4.value.length == 0))
	{
	    if(theForm.ename4.value.length == 0)
		{
		    theError += "\n\t-Employee 4's Name";
		    errorFree = false;
		}

	    if(theForm.occu4.value.length == 0)
		{
		    theError += "\n\t-Employee 4's Occupation";
		    errorFree = false;
		}

	    if(theForm.age4.value.length ==0 || isNaN(theForm.age4.value))
		{
		    theError += "\n\t-Employee 4's Age";
		    errorFree = false;
		}

	    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
	    if(!myRE.test(theForm.salary4.value))
		{
		    theError += "\n\t-Employee 4's Salary";
		    errorFree = false;
		}
	}
    else
	{
	    if(theForm.age4.value.length != 0 && isNaN(theForm.age4.value))
		{
		    theError += "\n\t-Employee 4's Age";
		    errorFree = false;
		}

	    myRE = /^\d*(,\d{3})*(\.\d{2})?$/;
	    if(!myRE.test(theForm.salary4.value))
		{
		    theError += "\n\t-Employee 4's Salary";
		    errorFree = false;
		}
	}

    //Employee 5
    if((theForm.ename5.value.length != 0 || theForm.age5.value.length !=0 || theForm.occu5.value.length !=0 || theForm.salary5.value.length !=0) && (theForm.ename5.value.length == 0 || theForm.age5.value.length == 0 || theForm.occu5.value.length == 0 || theForm.salary5.value.length == 0))
	{
	    if(theForm.ename5.value.length == 0)
		{
		    theError += "\n\t-Employee 5's Name";
		    errorFree = false;
		}

	    if(theForm.occu5.value.length == 0)
		{
		    theError += "\n\t-Employee 5's Occupation";
		    errorFree = false;
		}

	    if(theForm.age5.value.length ==0 || isNaN(theForm.age5.value))
		{
		    theError += "\n\t-Employee 5's Age";
		    errorFree = false;
		}

	    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
	    if(!myRE.test(theForm.salary5.value))
		{
		    theError += "\n\t-Employee 5's Salary";
		    errorFree = false;
		}
	}
    else
	{
	    if(theForm.age5.value.length != 0 && isNaN(theForm.age5.value))
		{
		    theError += "\n\t-Employee 5's Age";
		    errorFree = false;
		}

	    myRE = /^\d*(,\d{3})*(\.\d{2})?$/;
	    if(!myRE.test(theForm.salary5.value))
		{
		    theError += "\n\t-Employee 5's Salary";
		    errorFree = false;
		}
	}

   if(!errorFree)
	{
	    alert(theError);
	}
    else
	{
	    theForm.submit()
		}

}//End GroupHealth Popup Validator



//Validate Health Form
function Check_Health(theForm)
{
    var errorFree = true;
    var theError = "You have entered in the following information improperly:";

    if(theForm.first_name.value.length == 0)
	{
	    theError += "\n\t-Fisrt Name";
	    errorFree = false;
	}

    if(theForm.last_name.value.length == 0)
	{
	    theError += "\n\t-Last Name";
	    errorFree = false;
	}

    if(theForm.real_addr.value.length == 0)
	{
	    theError += "\n\t-Street Address";
	    errorFree = false;
	}

    if(theForm.city.value.length == 0)
	{
	    theError += "\n\t-City";
	    errorFree = false;
	}

    if(theForm.zip_code.value.length !=5 || isNaN(theForm.zip_code.value))
	{
	    theError += "\n\t-Zip Code";
	    errorFree = false;
	}

    if(theForm.day_phone_ac.value.length == 0 || theForm.day_phone_pre.value.length == 0 || theForm.day_phone_num.value.length == 0 || isNaN(theForm.day_phone_ac.value) || isNaN(theForm.day_phone_pre.value) || isNaN(theForm.day_phone_num.value))
	{
	    theError += "\n\t-Day Phone";
	    errorFree = false;
	}

    if(theForm.eve_phone_ac.value.length == 0 || theForm.eve_phone_pre.value.length == 0 || theForm.eve_phone_num.value.length == 0 || isNaN(theForm.eve_phone_ac.value) || isNaN(theForm.eve_phone_pre.value) || isNaN(theForm.eve_phone_num.value))
	{
	    theError += "\n\t-Evening Phone";
	    errorFree = false;
	}

    myRE = new RegExp(".+@.+\..+");
    if(!myRE.test(theForm.email_addr.value))
	{
	    theError += "\n\t-Email Address";
	    errorFree = false;
	}

    myRE = /\d\d/;
    if(!myRE.test(theForm.year.value))
	{
	    theError += "\n\t-Birth Year";
	    errorFree = false;
	}

    if(theForm.weight.value.length == 0 || isNaN(theForm.weight.value))
	{
	    theError += "\n\t-Weight";
	    errorFree = false;
	}

    if(theForm.dependents.value.length == 0 || isNaN(theForm.dependents.value))
	{
	    theError += "\n\t-How many dependents do you have?";
	    errorFree = false;
	}
    else
	{
	    myRE = /^\d+(\s*,\s*\d+)*$/;
	    if(theForm.dependents.value != 0 && !myRE.test(theForm.old_dependents.value))
		{
		    theError += "\n\t-How old are those dependents?";
		    errorFree = false;
		}
	}

    if(theForm.occupation.value.length == 0)
	{
	    theError += "\n\t-Occupation";
	    errorFree = false;
	}

    if(theForm.current_company.value.length == 0)
	{
	    theError += "\n\t-Your current insurance company?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.pay_month.value))
	{
	    theError += "\n\t-How much are you paying per month?";
	    errorFree = false;
	}

   if(!errorFree)
	{
	    alert(theError);
	}
    else
	{
	    theForm.submit()
	}

}//End Health Validation


//Validate Health Popup Form
function Check_HealthPop(theForm)
{
    var errorFree = true;
    var theError = "You have entered in the following information improperly:";

    myRE = /\d\d/;
    if(!myRE.test(theForm.year.value))
	{
	    theError += "\n\t-Birth Year";
	    errorFree = false;
	}

    if(theForm.weight.value.length == 0 || isNaN(theForm.weight.value))
	{
	    theError += "\n\t-Weight";
	    errorFree = false;
	}

    if(theForm.dependents.value.length == 0 || isNaN(theForm.dependents.value))
	{
	    theError += "\n\t-How many dependents do you have?";
	    errorFree = false;
	}
    else
	{
	    myRE = /^\d+(\s*,\s*\d+)*$/;
	    if(theForm.dependents.value != 0 && !myRE.test(theForm.old_dependents.value))
		{
		    theError += "\n\t-How old are those dependents?";
		    errorFree = false;
		}
	}

    if(theForm.occupation.value.length == 0)
	{
	    theError += "\n\t-Occupation";
	    errorFree = false;
	}

    if(theForm.current_company.value.length == 0)
	{
	    theError += "\n\t-Your current insurance company?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.pay_month.value))
	{
	    theError += "\n\t-How much are you paying per month?";
	    errorFree = false;
	}

   if(!errorFree)
	{
	    alert(theError);
	}
    else
	{
	    theForm.submit()
		}

}//End Health Popup Validation



//Validate HomeImprovement Form
function Check_HomeImprovement(theForm)
{
    var errorFree = true;
    var theError = "You have entered in the following information improperly:";

    if(theForm.fname.value.length == 0)
	{
	    theError += "\n\t-Fisrt Name";
	    errorFree = false;
	}

    if(theForm.lname.value.length == 0)
	{
	    theError += "\n\t-Last Name";
	    errorFree = false;
	}

    if(theForm.address1.value.length == 0)
	{
	    theError += "\n\t-Street Address";
	    errorFree = false;
	}

    if(theForm.city.value.length == 0)
	{
	    theError += "\n\t-City";
	    errorFree = false;
	}

    if(theForm.zip_code.value.length !=5 || isNaN(theForm.zip_code.value))
	{
	    theError += "\n\t-Zip Code";
	    errorFree = false;
	}

    if(theForm.day_phone_ac.value.length == 0 || theForm.day_phone_pre.value.length == 0 || theForm.day_phone_num.value.length == 0 || isNaN(theForm.day_phone_ac.value) || isNaN(theForm.day_phone_pre.value) || isNaN(theForm.day_phone_num.value))
	{
	    theError += "\n\t-Day Phone";
	    errorFree = false;
	}

    if(theForm.eve_phone_ac.value.length == 0 || theForm.eve_phone_pre.value.length == 0 || theForm.eve_phone_num.value.length == 0 || isNaN(theForm.eve_phone_ac.value) || isNaN(theForm.eve_phone_pre.value) || isNaN(theForm.eve_phone_num.value))
	{
	    theError += "\n\t-Evening Phone";
	    errorFree = false;
	}

    myRE = new RegExp(".+@.+\..+");
    if(!myRE.test(theForm.email_addr.value))
	{
	    theError += "\n\t-Email Address";
	    errorFree = false;
	}

    if(theForm.self_employed.options[0].selected && (theForm.years_employed.value.length == 0 || isNaN(theForm.years_employed.value)))
	{
	    theError += "\n\t-How long have you been with your employer?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.monthly_gross.value))
	{
	    theError += "\n\t-How much do you gross each month?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.monthly_debt.value))
	{
	    theError += "\n\t-How much do you owe each month?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.cash_needed.value))
	{
	    theError += "\n\t-How much cash do you need?";
	    errorFree = false;
	}

    if(theForm.how_long_owned.value.length == 0 || isNaN(theForm.how_long_owned.value))
	{
	    theError += "\n\t-How long have you owned your home?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.home_sale_price.value))
	{
	    theError += "\n\t-Your home's original sale price?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.mortgage_balance.value))
	{
	    theError += "\n\t-Your current mortgage balance?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.important_aspect[1].checked && !myRE.test(theForm.get_cash_equal.value))
	{
	    theError += "\n\t-Get cash equal to:";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.amount_for_a_second.value))
	{
	    theError += "\n\t-Amount I want for a 2nd mortgage";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.monthly_payment.value))
	{
	    theError += "\n\t-Your current mortgage monthly payment?";
	    errorFree = false;
	}

    myRE = /^\d+(\.\d{2})?$/;
    if(!myRE.test(theForm.current_rate.value))
	{
	    theError += "\n\t-Current mortgage interest rate";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.current_worth.value))
	{
	    theError += "\n\t-How much is your home currently worth?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_balance.value))
	{
	    theError += "\n\t-2nd mortgage balance?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_payment.value))
	{
	    theError += "\n\t-2nd mortgage monthly payment?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_rate.value))
	{
	    theError += "\n\t-2nd mortgage interest rate?";
	    errorFree = false;
	}

   if(!errorFree)
	{
	    alert(theError);
	}
    else
	{
	    theForm.submit()
	}

}//End HomeImprovement Validation


//Validate HomeImprovement Popup Form
function Check_HomeImprovementPop(theForm)
{
    var errorFree = true;
    var theError = "You have entered in the following information improperly:";

    if(theForm.self_employed.options[0].selected && (theForm.years_employed.value.length == 0 || isNaN(theForm.years_employed.value)))
	{
	    theError += "\n\t-How long have you been with your employer?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.monthly_gross.value))
	{
	    theError += "\n\t-How much do you gross each month?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.monthly_debt.value))
	{
	    theError += "\n\t-How much do you owe each month?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.cash_needed.value))
	{
	    theError += "\n\t-How much cash do you need?";
	    errorFree = false;
	}

    if(theForm.how_long_owned.value.length == 0 || isNaN(theForm.how_long_owned.value))
	{
	    theError += "\n\t-How long have you owned your home?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.home_sale_price.value))
	{
	    theError += "\n\t-Your home's original sale price?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.mortgage_balance.value))
	{
	    theError += "\n\t-Your current mortgage balance?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.important_aspect[1].checked && !myRE.test(theForm.get_cash_equal.value))
	{
	    theError += "\n\t-Get cash equal to:";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.amount_for_a_second.value))
	{
	    theError += "\n\t-Amount I want for a 2nd mortgage";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.monthly_payment.value))
	{
	    theError += "\n\t-Your current mortgage monthly payment?";
	    errorFree = false;
	}

    myRE = /^\d+(\.\d{2})?$/;
    if(!myRE.test(theForm.current_rate.value))
	{
	    theError += "\n\t-Current mortgage interest rate";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.current_worth.value))
	{
	    theError += "\n\t-How much is your home currently worth?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_balance.value))
	{
	    theError += "\n\t-2nd mortgage balance?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_payment.value))
	{
	    theError += "\n\t-2nd mortgage monthly payment?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_rate.value))
	{
	    theError += "\n\t-2nd mortgage interest rate?";
	    errorFree = false;
	}

   if(!errorFree)
	{
	    alert(theError);
	}
    else
	{
	    theForm.submit()
		}

}//End HomeImprovement Popup Validation

//Validate HomeOwners Form
function Check_HomeOwners(theForm)
{
    var errorFree = true;
    var theError = "You have entered in the following information improperly:";

    if(theForm.first_name.value.length == 0)
	{
	    theError += "\n\t-Fisrt Name";
	    errorFree = false;
	}

    if(theForm.last_name.value.length == 0)
	{
	    theError += "\n\t-Last Name";
	    errorFree = false;
	}

    if(theForm.real_addr.value.length == 0)
	{
	    theError += "\n\t-Street Address";
	    errorFree = false;
	}

    if(theForm.city.value.length == 0)
	{
	    theError += "\n\t-City";
	    errorFree = false;
	}

    if(theForm.zip_code.value.length !=5 || isNaN(theForm.zip_code.value))
	{
	    theError += "\n\t-Zip Code";
	    errorFree = false;
	}

    if(theForm.day_phone_ac.value.length == 0 || theForm.day_phone_pre.value.length == 0 || theForm.day_phone_num.value.length == 0 || isNaN(theForm.day_phone_ac.value) || isNaN(theForm.day_phone_pre.value) || isNaN(theForm.day_phone_num.value))
	{
	    theError += "\n\t-Day Phone";
	    errorFree = false;
	}

    if(theForm.eve_phone_ac.value.length == 0 || theForm.eve_phone_pre.value.length == 0 || theForm.eve_phone_num.value.length == 0 || isNaN(theForm.eve_phone_ac.value) || isNaN(theForm.eve_phone_pre.value) || isNaN(theForm.eve_phone_num.value))
	{
	    theError += "\n\t-Evening Phone";
	    errorFree = false;
	}

    myRE = new RegExp(".+@.+\..+");
    if(!myRE.test(theForm.email_addr.value))
	{
	    theError += "\n\t-Email Address";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.purchase.value))
	{
	    theError += "\n\t-Purchase Price (or) Replacement cost of your home";
	    errorFree = false;
	}
    
    myRE = /^\d\d\d\d$/;
    if(!myRE.test(theForm.year_built.value))
	{
	    theError += "\n\t-Year Built";
	    errorFree = false;
	}

    if(theForm.square_feet.value.length == 0 || isNaN(theForm.square_feet.value))
	{
	    theError += "\n\t-Square Feet";
	    errorFree = false;
	}

    if(theForm.fireplaces.value.length == 0 || isNaN(theForm.fireplaces.value))
	{
	    theError += "\n\t-Number of Fireplaces";
	    errorFree = false;
	}

    if(theForm.bedrooms.value.length == 0 || isNaN(theForm.bedrooms.value))
	{
	    theError += "\n\t-Number of Bedrooms";
	    errorFree = false;
	}

    if(theForm.bathrooms.value.length == 0 || isNaN(theForm.bathrooms.value))
	{
	    theError += "\n\t-Number of Bathrooms";
	    errorFree = false;
	}

   if(!errorFree)
	{
	    alert(theError);
	}
    else
	{
	    theForm.submit()
	}

}//End HomeOwners Validation


//Validate HomeOwners Popup Form
function Check_HomeOwnersPop(theForm)
{
    var errorFree = true;
    var theError = "You have entered in the following information improperly:";

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.purchase.value))
	{
	    theError += "\n\t-Purchase Price (or) Replacement cost of your home";
	    errorFree = false;
	}
    
    myRE = /^\d\d\d\d$/;
    if(!myRE.test(theForm.year_built.value))
	{
	    theError += "\n\t-Year Built";
	    errorFree = false;
	}

    if(theForm.square_feet.value.length == 0 || isNaN(theForm.square_feet.value))
	{
	    theError += "\n\t-Square Feet";
	    errorFree = false;
	}

    if(theForm.fireplaces.value.length == 0 || isNaN(theForm.fireplaces.value))
	{
	    theError += "\n\t-Number of Fireplaces";
	    errorFree = false;
	}

    if(theForm.bedrooms.value.length == 0 || isNaN(theForm.bedrooms.value))
	{
	    theError += "\n\t-Number of Bedrooms";
	    errorFree = false;
	}

    if(theForm.bathrooms.value.length == 0 || isNaN(theForm.bathrooms.value))
	{
	    theError += "\n\t-Number of Bathrooms";
	    errorFree = false;
	}

   if(!errorFree)
	{
	    alert(theError);
	}
    else
	{
	    theForm.submit()
		}

}//End HomeOwners Popup Validation



//Validate Life Form
function Check_Life(theForm)
{
    var errorFree = true;
    var theError = "You have entered in the following information improperly:";

    if(theForm.first_name.value.length == 0)
	{
	    theError += "\n\t-Fisrt Name";
	    errorFree = false;
	}

    if(theForm.last_name.value.length == 0)
	{
	    theError += "\n\t-Last Name";
	    errorFree = false;
	}

    if(theForm.real_addr.value.length == 0)
	{
	    theError += "\n\t-Street Address";
	    errorFree = false;
	}

    if(theForm.city.value.length == 0)
	{
	    theError += "\n\t-City";
	    errorFree = false;
	}

    if(theForm.zip_code.value.length !=5 || isNaN(theForm.zip_code.value))
	{
	    theError += "\n\t-Zip Code";
	    errorFree = false;
	}

    if(theForm.day_phone_ac.value.length == 0 || theForm.day_phone_pre.value.length == 0 || theForm.day_phone_num.value.length == 0 || isNaN(theForm.day_phone_ac.value) || isNaN(theForm.day_phone_pre.value) || isNaN(theForm.day_phone_num.value))
	{
	    theError += "\n\t-Day Phone";
	    errorFree = false;
	}

    if(theForm.eve_phone_ac.value.length == 0 || theForm.eve_phone_pre.value.length == 0 || theForm.eve_phone_num.value.length == 0 || isNaN(theForm.eve_phone_ac.value) || isNaN(theForm.eve_phone_pre.value) || isNaN(theForm.eve_phone_num.value))
	{
	    theError += "\n\t-Evening Phone";
	    errorFree = false;
	}

    myRE = new RegExp(".+@.+\..+");
    if(!myRE.test(theForm.email_addr.value))
	{
	    theError += "\n\t-Email Address";
	    errorFree = false;
	}

    myRE = /\d\d/;
    if(!myRE.test(theForm.year.value))
	{
	    theError += "\n\t-Birth Year";
	    errorFree = false;
	}

    if(theForm.weight.value.length == 0 || isNaN(theForm.weight.value))
	{
	    theError += "\n\t-Weight";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.paying_per_year.value))
	{
	    theError += "\n\t-Amount Currently Paying Per Year";
	    errorFree = false;
	}

   if(!errorFree)
	{
	    alert(theError);
	}
    else
	{
	    theForm.submit()
	}

}//End Life Validation


//Validate Life Popup Form
function Check_LifePop(theForm)
{
    var errorFree = true;
    var theError = "You have entered in the following information improperly:";

    myRE = /\d\d/;
    if(!myRE.test(theForm.year.value))
	{
	    theError += "\n\t-Birth Year";
	    errorFree = false;
	}

    if(theForm.weight.value.length == 0 || isNaN(theForm.weight.value))
	{
	    theError += "\n\t-Weight";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.paying_per_year.value))
	{
	    theError += "\n\t-Amount Currently Paying Per Year";
	    errorFree = false;
	}

   if(!errorFree)
	{
	    alert(theError);
	}
    else
	{
	    theForm.submit()
		}

}//End Life Popup Validation



//Validate LTC Form
function Check_LTC(theForm)
{
    var errorFree = true;
    var theError = "You have entered in the following information improperly:";

    if(theForm.first_name.value.length == 0)
	{
	    theError += "\n\t-Fisrt Name";
	    errorFree = false;
	}

    if(theForm.last_name.value.length == 0)
	{
	    theError += "\n\t-Last Name";
	    errorFree = false;
	}

    if(theForm.real_addr.value.length == 0)
	{
	    theError += "\n\t-Street Address";
	    errorFree = false;
	}

    if(theForm.city.value.length == 0)
	{
	    theError += "\n\t-City";
	    errorFree = false;
	}

    if(theForm.zip_code.value.length !=5 || isNaN(theForm.zip_code.value))
	{
	    theError += "\n\t-Zip Code";
	    errorFree = false;
	}

    if(theForm.day_phone_ac.value.length == 0 || theForm.day_phone_pre.value.length == 0 || theForm.day_phone_num.value.length == 0 || isNaN(theForm.day_phone_ac.value) || isNaN(theForm.day_phone_pre.value) || isNaN(theForm.day_phone_num.value))
	{
	    theError += "\n\t-Day Phone";
	    errorFree = false;
	}

    if(theForm.eve_phone_ac.value.length == 0 || theForm.eve_phone_pre.value.length == 0 || theForm.eve_phone_num.value.length == 0 || isNaN(theForm.eve_phone_ac.value) || isNaN(theForm.eve_phone_pre.value) || isNaN(theForm.eve_phone_num.value))
	{
	    theError += "\n\t-Evening Phone";
	    errorFree = false;
	}

    myRE = new RegExp(".+@.+\..+");
    if(!myRE.test(theForm.email_addr.value))
	{
	    theError += "\n\t-Email Address";
	    errorFree = false;
	}

    myRE = /^\d\d$/;
    if(!myRE.test(theForm.year.value))
	{
	    theError += "\n\t-Year of Birth";
	    errorFree = false;
	}

    if(theForm.weight.value.length == 0 || isNaN(theForm.weight.value))
	{
	    theError += "\n\t-Weight";
	    errorFree = false;
	}

   if(!errorFree)
	{
	    alert(theError);
	}
    else
	{
	    theForm.submit()
	}

}//End LTC Validation

//Validate LTC Popup Form
function Check_LTCPop(theForm)
{
    var errorFree = true;
    var theError = "You have entered in the following information improperly:";

    myRE = /^\d\d$/;
    if(!myRE.test(theForm.year.value))
	{
	    theError += "\n\t-Year of Birth";
	    errorFree = false;
	}

    if(theForm.weight.value.length == 0 || isNaN(theForm.weight.value))
	{
	    theError += "\n\t-Weight";
	    errorFree = false;
	}

   if(!errorFree)
	{
	    alert(theError);
	}
    else
	{
	    theForm.submit()
		}

}//End LTC Popup Validation



//Validate NewLoan Form
function Check_NewLoan(theForm)
{
    var errorFree = true;
    var theError = "You have entered in the following information improperly:";

    if(theForm.fname.value.length == 0)
	{
	    theError += "\n\t-Fisrt Name";
	    errorFree = false;
	}

    if(theForm.lname.value.length == 0)
	{
	    theError += "\n\t-Last Name";
	    errorFree = false;
	}

    if(theForm.address1.value.length == 0)
	{
	    theError += "\n\t-Street Address";
	    errorFree = false;
	}

    if(theForm.city.value.length == 0)
	{
	    theError += "\n\t-City";
	    errorFree = false;
	}

    if(theForm.zip_code.value.length !=5 || isNaN(theForm.zip_code.value))
	{
	    theError += "\n\t-Zip Code";
	    errorFree = false;
	}

    if(theForm.day_phone_ac.value.length == 0 || theForm.day_phone_pre.value.length == 0 || theForm.day_phone_num.value.length == 0 || isNaN(theForm.day_phone_ac.value) || isNaN(theForm.day_phone_pre.value) || isNaN(theForm.day_phone_num.value))
	{
	    theError += "\n\t-Day Phone";
	    errorFree = false;
	}

    if(theForm.eve_phone_ac.value.length == 0 || theForm.eve_phone_pre.value.length == 0 || theForm.eve_phone_num.value.length == 0 || isNaN(theForm.eve_phone_ac.value) || isNaN(theForm.eve_phone_pre.value) || isNaN(theForm.eve_phone_num.value))
	{
	    theError += "\n\t-Evening Phone";
	    errorFree = false;
	}

    myRE = new RegExp(".+@.+\..+");
    if(!myRE.test(theForm.email_addr.value))
	{
	    theError += "\n\t-Email Address";
	    errorFree = false;
	}

    if(theForm.self_employed.options[0].selected && (theForm.years_employed.value.length == 0 || isNaN(theForm.years_employed.value)))
	{
	    theError += "\n\t-How long have you been with your employer?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.monthly_gross.value))
	{
	    theError += "\n\t-How much do you gross each month?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.monthly_debt.value))
	{
	    theError += "\n\t-How much do you owe each month?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.cash_needed.value))
	{
	    theError += "\n\t-How much cash do you need?";
	    errorFree = false;
	}

    if(theForm.how_long_owned.value.length == 0 || isNaN(theForm.how_long_owned.value))
	{
	    theError += "\n\t-How long have you owned your home?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.home_sale_price.value))
	{
	    theError += "\n\t-Your home's original sale price?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.mortgage_balance.value))
	{
	    theError += "\n\t-Your current mortgage balance?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.money_down.value))
	{
	    theError += "\n\t-How much money do you want to put down on your new home?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.plan_to_pay.value))
	{
	    theError += "\n\t-What are you planning to pay for your new home?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.monthly_payment.value))
	{
	    theError += "\n\t-Your current mortgage monthly payment?";
	    errorFree = false;
	}

    myRE = /^\d+(\.\d{2})?$/;
    if(!myRE.test(theForm.current_rate.value))
	{
	    theError += "\n\t-Current mortgage interest rate";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.current_worth.value))
	{
	    theError += "\n\t-How much is your home currently worth?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_balance.value))
	{
	    theError += "\n\t-2nd mortgage balance?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_payment.value))
	{
	    theError += "\n\t-2nd mortgage monthly payment?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_rate.value))
	{
	    theError += "\n\t-2nd mortgage interest rate?";
	    errorFree = false;
	}

   if(!errorFree)
	{
	    alert(theError);
	}
    else
	{
	    theForm.submit()
	}

}//End NewLoan Validation


//Validate NewLoan Popup Form
function Check_NewLoanPop(theForm)
{
    var errorFree = true;
    var theError = "You have entered in the following information improperly:";

    if(theForm.self_employed.options[0].selected && (theForm.years_employed.value.length == 0 || isNaN(theForm.years_employed.value)))
	{
	    theError += "\n\t-How long have you been with your employer?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.monthly_gross.value))
	{
	    theError += "\n\t-How much do you gross each month?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.monthly_debt.value))
	{
	    theError += "\n\t-How much do you owe each month?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.cash_needed.value))
	{
	    theError += "\n\t-How much cash do you need?";
	    errorFree = false;
	}

    if(theForm.how_long_owned.value.length == 0 || isNaN(theForm.how_long_owned.value))
	{
	    theError += "\n\t-How long have you owned your home?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.home_sale_price.value))
	{
	    theError += "\n\t-Your home's original sale price?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.mortgage_balance.value))
	{
	    theError += "\n\t-Your current mortgage balance?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.money_down.value))
	{
	    theError += "\n\t-How much money do you want to put down on your new home?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.plan_to_pay.value))
	{
	    theError += "\n\t-What are you planning to pay for your new home?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.monthly_payment.value))
	{
	    theError += "\n\t-Your current mortgage monthly payment?";
	    errorFree = false;
	}

    myRE = /^\d+(\.\d{2})?$/;
    if(!myRE.test(theForm.current_rate.value))
	{
	    theError += "\n\t-Current mortgage interest rate";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.current_worth.value))
	{
	    theError += "\n\t-How much is your home currently worth?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_balance.value))
	{
	    theError += "\n\t-2nd mortgage balance?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_payment.value))
	{
	    theError += "\n\t-2nd mortgage monthly payment?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_rate.value))
	{
	    theError += "\n\t-2nd mortgage interest rate?";
	    errorFree = false;
	}

   if(!errorFree)
	{
	    alert(theError);
	}
    else
	{
	    theForm.submit()
		}

}//End NewLoan Popup Validation



//Validate Refinance Form
function Check_Refinance(theForm)
{
    var errorFree = true;
    var theError = "You have entered in the following information improperly:";

    if(theForm.fname.value.length == 0)
	{
	    theError += "\n\t-Fisrt Name";
	    errorFree = false;
	}

    if(theForm.lname.value.length == 0)
	{
	    theError += "\n\t-Last Name";
	    errorFree = false;
	}

    if(theForm.address1.value.length == 0)
	{
	    theError += "\n\t-Street Address";
	    errorFree = false;
	}

    if(theForm.city.value.length == 0)
	{
	    theError += "\n\t-City";
	    errorFree = false;
	}

    if(theForm.zip_code.value.length !=5 || isNaN(theForm.zip_code.value))
	{
	    theError += "\n\t-Zip Code";
	    errorFree = false;
	}

    if(theForm.day_phone_ac.value.length == 0 || theForm.day_phone_pre.value.length == 0 || theForm.day_phone_num.value.length == 0 || isNaN(theForm.day_phone_ac.value) || isNaN(theForm.day_phone_pre.value) || isNaN(theForm.day_phone_num.value))
	{
	    theError += "\n\t-Day Phone";
	    errorFree = false;
	}

    if(theForm.eve_phone_ac.value.length == 0 || theForm.eve_phone_pre.value.length == 0 || theForm.eve_phone_num.value.length == 0 || isNaN(theForm.eve_phone_ac.value) || isNaN(theForm.eve_phone_pre.value) || isNaN(theForm.eve_phone_num.value))
	{
	    theError += "\n\t-Evening Phone";
	    errorFree = false;
	}

    myRE = new RegExp(".+@.+\..+");
    if(!myRE.test(theForm.email_addr.value))
	{
	    theError += "\n\t-Email Address";
	    errorFree = false;
	}

    if(theForm.self_employed.options[0].selected && (theForm.years_employed.value.length == 0 || isNaN(theForm.years_employed.value)))
	{
	    theError += "\n\t-How long have you been with your employer?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.monthly_gross.value))
	{
	    theError += "\n\t-How much do you gross each month?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.monthly_debt.value))
	{
	    theError += "\n\t-How much do you owe each month?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.cash_needed.value))
	{
	    theError += "\n\t-How much cash do you need?";
	    errorFree = false;
	}

    if(theForm.how_long_owned.value.length == 0 || isNaN(theForm.how_long_owned.value))
	{
	    theError += "\n\t-How long have you owned your home?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.home_sale_price.value))
	{
	    theError += "\n\t-Your home's original sale price?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.mortgage_balance.value))
	{
	    theError += "\n\t-Your current mortgage balance?";
	    errorFree = false;
	}

    

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.monthly_payment.value))
	{
	    theError += "\n\t-Your current mortgage monthly payment?";
	    errorFree = false;
	}

    myRE = /^\d+(\.\d{2})?$/;
    if(!myRE.test(theForm.current_rate.value))
	{
	    theError += "\n\t-Current mortgage interest rate";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.current_worth.value))
	{
	    theError += "\n\t-How much is your home currently worth?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_balance.value))
	{
	    theError += "\n\t-2nd mortgage balance?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_payment.value))
	{
	    theError += "\n\t-2nd mortgage monthly payment?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_rate.value))
	{
	    theError += "\n\t-2nd mortgage interest rate?";
	    errorFree = false;
	}

   if(!errorFree)
	{
	    alert(theError);
	}
    else
	{
	    theForm.submit()
	}

}//End Refinance Validation


//Validate Refinance Popup Form
function Check_RefinancePop(theForm)
{
    var errorFree = true;
    var theError = "You have entered in the following information improperly:";

    if(theForm.self_employed.options[0].selected && (theForm.years_employed.value.length == 0 || isNaN(theForm.years_employed.value)))
	{
	    theError += "\n\t-How long have you been with your employer?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.monthly_gross.value))
	{
	    theError += "\n\t-How much do you gross each month?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.monthly_debt.value))
	{
	    theError += "\n\t-How much do you owe each month?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.cash_needed.value))
	{
	    theError += "\n\t-How much cash do you need?";
	    errorFree = false;
	}

    if(theForm.how_long_owned.value.length == 0 || isNaN(theForm.how_long_owned.value))
	{
	    theError += "\n\t-How long have you owned your home?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.home_sale_price.value))
	{
	    theError += "\n\t-Your home's original sale price?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.mortgage_balance.value))
	{
	    theError += "\n\t-Your current mortgage balance?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.important_aspect[1].checked && !myRE.test(theForm.get_cash_equal.value))
	{
	    theError += "\n\t-Get cash equal to:";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.monthly_payment.value))
	{
	    theError += "\n\t-Your current mortgage monthly payment?";
	    errorFree = false;
	}

    myRE = /^\d+(\.\d{2})?$/;
    if(!myRE.test(theForm.current_rate.value))
	{
	    theError += "\n\t-Current mortgage interest rate";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.current_worth.value))
	{
	    theError += "\n\t-How much is your home currently worth?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_balance.value))
	{
	    theError += "\n\t-2nd mortgage balance?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_payment.value))
	{
	    theError += "\n\t-2nd mortgage monthly payment?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_rate.value))
	{
	    theError += "\n\t-2nd mortgage interest rate?";
	    errorFree = false;
	}

   if(!errorFree)
	{
	    alert(theError);
	}
    else
	{
	    theForm.submit()
		}

}//End Refinance Popup Validation



//Validate Second Form
function Check_Second(theForm)
{
    var errorFree = true;
    var theError = "You have entered in the following information improperly:";

    if(theForm.fname.value.length == 0)
	{
	    theError += "\n\t-Fisrt Name";
	    errorFree = false;
	}

    if(theForm.lname.value.length == 0)
	{
	    theError += "\n\t-Last Name";
	    errorFree = false;
	}

    if(theForm.address1.value.length == 0)
	{
	    theError += "\n\t-Street Address";
	    errorFree = false;
	}

    if(theForm.city.value.length == 0)
	{
	    theError += "\n\t-City";
	    errorFree = false;
	}

    if(theForm.zip_code.value.length !=5 || isNaN(theForm.zip_code.value))
	{
	    theError += "\n\t-Zip Code";
	    errorFree = false;
	}

    if(theForm.day_phone_ac.value.length == 0 || theForm.day_phone_pre.value.length == 0 || theForm.day_phone_num.value.length == 0 || isNaN(theForm.day_phone_ac.value) || isNaN(theForm.day_phone_pre.value) || isNaN(theForm.day_phone_num.value))
	{
	    theError += "\n\t-Day Phone";
	    errorFree = false;
	}

    if(theForm.eve_phone_ac.value.length == 0 || theForm.eve_phone_pre.value.length == 0 || theForm.eve_phone_num.value.length == 0 || isNaN(theForm.eve_phone_ac.value) || isNaN(theForm.eve_phone_pre.value) || isNaN(theForm.eve_phone_num.value))
	{
	    theError += "\n\t-Evening Phone";
	    errorFree = false;
	}

    myRE = new RegExp(".+@.+\..+");
    if(!myRE.test(theForm.email_addr.value))
	{
	    theError += "\n\t-Email Address";
	    errorFree = false;
	}

    if(theForm.self_employed.options[0].selected && (theForm.years_employed.value.length == 0 || isNaN(theForm.years_employed.value)))
	{
	    theError += "\n\t-How long have you been with your employer?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.monthly_gross.value))
	{
	    theError += "\n\t-How much do you gross each month?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.monthly_debt.value))
	{
	    theError += "\n\t-How much do you owe each month?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.cash_needed.value))
	{
	    theError += "\n\t-How much cash do you need?";
	    errorFree = false;
	}

    if(theForm.how_long_owned.value.length == 0 || isNaN(theForm.how_long_owned.value))
	{
	    theError += "\n\t-How long have you owned your home?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.home_sale_price.value))
	{
	    theError += "\n\t-Your home's original sale price?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.mortgage_balance.value))
	{
	    theError += "\n\t-Your current mortgage balance?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.important_aspect[1].checked && !myRE.test(theForm.get_cash_equal.value))
	{
	    theError += "\n\t-Get cash equal to:";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.amount_for_a_second.value))
	{
	    theError += "\n\t-Amount I want for a 2nd mortgage";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.monthly_payment.value))
	{
	    theError += "\n\t-Your current mortgage monthly payment?";
	    errorFree = false;
	}

    myRE = /^\d+(\.\d{2})?$/;
    if(!myRE.test(theForm.current_rate.value))
	{
	    theError += "\n\t-Current mortgage interest rate";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.current_worth.value))
	{
	    theError += "\n\t-How much is your home currently worth?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_balance.value))
	{
	    theError += "\n\t-2nd mortgage balance?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_payment.value))
	{
	    theError += "\n\t-2nd mortgage monthly payment?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_rate.value))
	{
	    theError += "\n\t-2nd mortgage interest rate?";
	    errorFree = false;
	}
    
   if(!errorFree)
	{
	    alert(theError);
	}
    else
	{
	    theForm.submit()
	}

}//End Second Validation


//Validate Second Popup Form
function Check_SecondPop(theForm)
{
    var errorFree = true;
    var theError = "You have entered in the following information improperly:";

    if(theForm.self_employed.options[0].selected && (theForm.years_employed.value.length == 0 || isNaN(theForm.years_employed.value)))
	{
	    theError += "\n\t-How long have you been with your employer?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.monthly_gross.value))
	{
	    theError += "\n\t-How much do you gross each month?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.monthly_debt.value))
	{
	    theError += "\n\t-How much do you owe each month?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.cash_needed.value))
	{
	    theError += "\n\t-How much cash do you need?";
	    errorFree = false;
	}

    if(theForm.how_long_owned.value.length == 0 || isNaN(theForm.how_long_owned.value))
	{
	    theError += "\n\t-How long have you owned your home?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.home_sale_price.value))
	{
	    theError += "\n\t-Your home's original sale price?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.mortgage_balance.value))
	{
	    theError += "\n\t-Your current mortgage balance?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.important_aspect[1].checked && !myRE.test(theForm.get_cash_equal.value))
	{
	    theError += "\n\t-Get cash equal to:";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.amount_for_a_second.value))
	{
	    theError += "\n\t-Amount I want for a 2nd mortgage";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.monthly_payment.value))
	{
	    theError += "\n\t-Your current mortgage monthly payment?";
	    errorFree = false;
	}

    myRE = /^\d+(\.\d{2})?$/;
    if(!myRE.test(theForm.current_rate.value))
	{
	    theError += "\n\t-Current mortgage interest rate";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(!myRE.test(theForm.current_worth.value))
	{
	    theError += "\n\t-How much is your home currently worth?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_balance.value))
	{
	    theError += "\n\t-2nd mortgage balance?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_payment.value))
	{
	    theError += "\n\t-2nd mortgage monthly payment?";
	    errorFree = false;
	}

    myRE = /^\d+(,\d{3})*(\.\d{2})?$/;
    if(theForm.second_mortgage.options[1].selected && !myRE.test(theForm.second_rate.value))
	{
	    theError += "\n\t-2nd mortgage interest rate?";
	    errorFree = false;
	}
    
   if(!errorFree)
	{
	    alert(theError);
	}
    else
	{
	    theForm.submit()
		}

}//End Second Popup Validation

