function checklength(obj,desiredlength)
	{
	if(obj.value.length < desiredlength)
		return true
	else return false
	}
function runSubmit(form, button)
	{
	if(form.Premium.value==-1){
		form.Premium.value="";}
	else{	form.Premium.value=form.cgiest.value;}
	if(checklength(form.FirstName,1)||checklength(form.LastName,2))
		{alert("Please enter your NAME and other contact information.");
		return false;}
	if(checklength(form.Address,5)||checklength(form.City,3)||checklength(form.Zip,5)||form.State.selectedIndex==0)
		{alert("Please enter your FULL ADDRESS and other contact information.");
		return false;}
	if(checklength(form.HomePhoneArea,3)||checklength(form.HomePhone,7))
		{alert("Please enter your HOME PHONE and other contact information.");
		return false;}
	if(checklength(form.WorkPhoneArea,3)||checklength(form.WorkPhone,7))
		{alert("Please enter your WORK PHONE and other contact information.");
		return false;}
	if(checklength(form.email,7))
		{alert("Please enter your EMAIL and other contact information.");
		return false;}
	if(form.Besttime.selectedIndex==0)
		{alert("Please enter the BEST TIME to call.");
		return false;}
	form.Email.value=form.email.value;
	if(form.BirthMonth.selectedIndex==0||form.BirthDay.selectedIndex==0||form.BirthYear.selectedIndex==0)
		{alert("We need your BIRTHDATE, gender, and tobacco usage,\n SO WE CAN PROVIDE YOUR BEST COMPANY.");
		return false;}
	if(form.Sex.selectedIndex==0)
		{alert("We need your GENDER and tobacco usage,\n SO WE CAN PROVIDE YOUR BEST COMPANY.");
		return false;}
	if(form.Amount.selectedIndex==0)
		{alert("We need the INSURANCE AMOUNT and duration,\n SO WE CAN PROVIDE YOUR BEST COMPANY.");
		return false;}
	if(form.Duration.selectedIndex==0)
		{alert("Please indicate the insurance DURATION,\n SO WE CAN PROVIDE YOUR BEST COMPANY.");
		return false;}
	if(form.Tobacco.selectedIndex==0)
		{alert("Please indicate TOBACCO USAGE,\n SO WE CAN PROVIDE YOUR BEST COMPANY.");
		return false;}
	form.submit();
	return true;
	}
