function validate_short()
{
      
if (document.form1.InsuranceType.selectedIndex=="")
	{
		alert("Please select the type of Insurance");
		////SetErrorImage("InsuranceType", true);

		document.form1.InsuranceType.focus();
		return false;
	}
	else
    {
    	////SetErrorImage("InsuranceType", false);
	}
	if (document.form1.Zip_s.value=="")
	{
		alert("Please enter Zipcode");
		//SetErrorImage("Zip", true);
		document.form1.Zip_s.select();
		document.form1.Zip_s.focus();
		return false;
	}
	else
    {
    	//SetErrorImage("Zip", false);
	}
	if(isNaN(document.form1.Zip_s.value))
		{
			alert("Zip code should be Numeric value");
			//SetErrorImage("Zip", true);
			document.form1.Zip_s.select();
			document.form1.Zip_s.focus();
			return false;
		}
		else
    {
    	//SetErrorImage("Zip", false);
	}
	if ( document.form1.Zip_s.value.length!=5)
{
	alert("Please Enter Valid 5 Numbered Zip");
	document.form1.Zip_s.select();
	document.form1.Zip_s.focus();
	return false;
}
	document.form1.method="post";
	document.form1.action="getquote.php";
	document.form1.submit();
}


//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//validation for TELL A FRIEND form

function validate_tellafriend()
{
if (document.form2.yourname.value=="")
{
alert("Please Enter your name");
         document.form2.yourname.select();
		document.form2.yourname.focus();
		return false;
}

if( document.form2.youremail.value != '')
{
var e_mail=  document.form2.youremail.value;

if(e_mail.indexOf('.')< 0 || e_mail.indexOf('@') < 0)
  {
	alert("Please Enter Valid Email");
	document.form2.youremail.value="";
	document.form2.youremail.focus();
	return false;	
  }
 }

else
{
alert("Please Enter Email ");
document.form2.youremail.focus();
return false;

}

if (document.form2.friendname.value=="")
{
alert("Please Enter The friend name");
        document.form2.friendname.select();
		document.form2.friendname.focus();
		return false;
}
if( document.form2.friendemail.value != '')
{
var e_mail=  document.form2.friendemail.value;

if(e_mail.indexOf('.')< 0 || e_mail.indexOf('@') < 0)
  {
	alert("Please Enter Valid Email");
	document.form2.friendemail.value="";
	document.form2.friendemail.focus();
	return false;	
  }
 }

else
{
alert("Please Enter Email ");
document.form2.friendemail.focus();
return false;

}



if (document.form2.comments.value=="")
{
alert("Please Enter The comments");
        document.form2.comments.select();
		document.form2.comments.focus();
		return false;
}

document.form2.method="POST"
document.form2.action="mail_tellafriend.php"
document.form2.submit()
}
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
