<!--

function SingleSelectRequired(Form, Field)
{
	var itemSelected = eval("document." + Form + "." + Field + ".selectedIndex");
	if (itemSelected == 0){ return false; }
	else {return true;}
}

function TextAreaRequired(Form, Field)
{
	var length = eval("document." + Form + "." + Field + ".value.length");
	if (length == 0){ return false; }
	else {return true;}
}

function ExtendJS( FormName )
{

if (!TextAreaRequired(FormName,'age_pi'))
{
	document.TheForm.age_pi.focus()
	document.TheForm.age_pi.select()
	alert("Please enter your Age.");
	return false;
}

if (!SingleSelectRequired(FormName,'amount_text'))
{
	alert("Please select an Investment $ amount range.");
	return false;
}

if (!TextAreaRequired(FormName,'first_name'))
{
	document.TheForm.first_name.focus()
	document.TheForm.first_name.select()
	alert("Please enter your Name.");
	return false;
}


if (!TextAreaRequired(FormName,'zip_code'))
{
	document.TheForm.zip_code.focus()
	document.TheForm.zip_code.select()
	alert("Please enter the zip code of your address.");
	return false;
}

if (!TextAreaRequired(FormName,'phone_1'))
{
	document.TheForm.phone_1.focus()
	document.TheForm.phone_1.select()
	alert("Please enter a phone number. Your privacy is protected. Only the annuity experts needed to process your information will see this number.");
	return false;
}


}
//-->

