<!--
function verify()
{
if ((document.frm.Zip2.value == '') || !isNumeric(document.frm.Zip2.value) || (document.frm.Zip2.value.length != 5))
{
alert("Please enter the Zip Code of the property to be insured.");
document.frm.Zip2.focus();
return false;
}
if (!document.frm.Currentlyinsured[0].checked && !document.frm.Currentlyinsured[1].checked )
{
alert('Please indicate rather you are curently insured or have been insured in the last 30 days.');
document.frm.Currentlyinsured.focus();
return false;
}
return true;
}
//-->
<!--
function isNumeric(num) {
st="0123456789";
for (i=0; i<num.length; i++) {
if (0 > st.indexOf(num.charAt(i))) return false;
}
return true;
}
function verify()
{
if ((document.frm.autoZip.value == '') || (document.frm.autoZip.value.length != 5) || !isNumeric(document.frm.autoZip.value))
{
alert("Please Enter a Valid Zip Code");
document.frm.autoZip.focus();
return false;
}
if (!document.frm.hasins[0].checked && !document.frm.hasins[1].checked )
{
alert('Please indicate rather you are curently insured or have been insured in the last 30 days.');
return false;
}
return true;
}
//-->
<!--
function verify()
{
if ((document.frm.zcode.value == '') || !isNumeric(document.frm.zcode.value) || (document.frm.zcode.value.length != 5))
{
alert("Please enter the Zip Code of the property to be insured.");
document.frm.zcode.focus();
return false;
}
if (!document.frm.hasins[0].checked && !document.frm.hasins[1].checked )
{
alert('Please indicate rather you are curently insured or have been insured in the last 30 days.');
document.frm.hasins.focus();
return false;
}
if (document.frm.hasins[0].checked && document.frm.insco.value =="n/a")
{
alert('Please indicate your current company. If you are currently uninsured, please indicate as such. We want to make sure we do not send you quotes from your current company.');
document.frm.insco.focus();
return false;
}
return true;
}
