// script by Danny C's Free Web Ring And Site Linking; modified by Co-op Insurance

function resetform() {document.forms[0].elements[0]=="";}
function submitForms() {if ( isName() && isStreetaddress() && isCity() && isState() && isZip() && isPhone() && isTime_to_call() && isTimezone() && isEmail() && isProperty_type() && isProperty_location() && isProperty_state())
if (confirm("\n You are about to e-mail your submission. \n\nYES to submit.    NO to abort.")){alert("\nYour submission will now be sent. \n\n Thank you for requesting information!");
return true;
}
else
{
alert("\n You have chosen to abort the submission.");
return false
}
else 
return false;
}
function isName() {
if (document.forms[0].elements[0].value == "") {
alert ("\n The Name field is blank. \n\n Please enter your name.")
document.forms[0].elements[0].focus();
return false;
}
return true;
}
function isStreetaddress() {
if (document.forms[0].elements[1].value == "") {
alert ("\n The Street Address field is blank. \n\nPlease enter your street address.")
document.forms[0].elements[1].focus();
return false;
}
return true;
}
function isCity() {
if (document.forms[0].elements[2].value == "") {
alert ("\n The City field is blank. \n\n Please enter your city or town.")
document.forms[0].elements[2].focus();
return false;
}
return true;
}
function isState() {
if (document.forms[0].elements[3].value == "") {
alert ("\n The State field is blank. \n\nPlease enter your state.")
document.forms[0].elements[3].focus();
return false;
}
return true;
}
function isZip() {
if (document.forms[0].elements[4].value == "") {
alert ("\n The Zip field is blank. \n\nPlease enter your zip code.")
document.forms[0].elements[4].focus();
return false;
}
return true;
}
function isPhone() {
if (document.forms[0].elements[5].value == "") {
alert ("\n The phone number field is blank. \n\nPlease enter your contact phone number.")
document.forms[0].elements[5].focus();
return false;
}
return true;
}
function isTime_to_call() {
if (document.forms[0].elements[6].value == "") {
alert ("\n The time to call field is blank. \n\nPlease indicate the best time to telephone you.")
document.forms[0].elements[6].focus();
return false;
}
return true;
}
function isTimezone() {
if (document.forms[0].elements[7].value == "") {
alert ("\n The timezone field is blank.\n\nPlease select the time zone you're in.")
document.forms[0].elements[7].focus();
return false;
}
return true;
}
function isEmail() {
if (document.forms[0].elements[8].value == "") {
alert ("\n The Email field is blank. \n\nPlease enter your email address.")
document.forms[0].elements[8].focus();
return false;
}
return true;
}
function isProperty_type() {
if (document.forms[0].elements[9].value == "") {
alert ("\n The Property Type field is blank. \n\nPlease enter the type of property you're interested in insuring.")
document.forms[0].elements[9].focus();
return false;
}
return true;
}
function isProperty_location() {
if (document.forms[0].elements[10].value == "") {
alert ("\n The Property Location field is blank. \n\nPlease enter the location of the property you're interested in insuring.")
document.forms[0].elements[10].focus();
return false;
}
return true;
}
// End