	<!--
	var not_valid = "";
	var PassFail = true;
	var msg = "";
	var sConfirm = "";

	function ENWLocalize(text){
		var localize = text;
		return localize;
	}
	
	function InitMsg() {
		msg = "__________________________________________\n\n";
    msg += ENWLocalize("The form was not submitted because of the following error(s). \n");
    msg += ENWLocalize("Please correct these error(s) and re-submit. \n");
    msg += ENWLocalize("__________________________________________\n\n");
	msg += ENWLocalize("- The following required field(s) are not valid:\n");
	}
	
	function validate(f) {
		var temp;
		not_valid = "";
		PassFail = true;
		CheckState(f.statesel);

		CheckYear(f.dobYear);
		// CheckMonth(f.dobMonth);
		// CheckDay(f.dobMonth,f.dobDay,f.dobYear);
		CheckMaritalStatus(f.MaritalStatus);
		CheckResidentChildren(f.ResidentChildren[0],f.ResidentChildren[1]);
		CheckVehicleYear(f.VehicleYear);
		CheckVehicleMake(f.VehicleMake);
		if (f.VehicleModel) {
			CheckVehicleModel(f.VehicleModel);
		}
		sConfirm  = ENWLocalize("The intent of the Nationwide Auto Coverage Guide is to provide you with\n");
		sConfirm += ENWLocalize("information of a general nature when considering the factors surrounding\n");
		sConfirm += ENWLocalize("your individual coverage needs. The Auto Coverage Guide is not intended\n");
		sConfirm += ENWLocalize("to advise you on your insurance choices or to make specific recommendations\n");
		sConfirm += ENWLocalize("for your coverage needs. You are solely responsible for making decisions\n");
		sConfirm += ENWLocalize("regarding the appropriate limits. Some optional or required coverages may\n");
		sConfirm += ENWLocalize("not be listed in the Auto Coverage Guide.  Availability, qualifications,\n");
		sConfirm += ENWLocalize("terms, conditions, limitations and exclusions to all coverages apply and may\n");
		sConfirm += ENWLocalize("vary by state.  For assistance, please consult a licensed insurance\n");
		sConfirm += ENWLocalize("professional  for your individual needs.\n\n");
		sConfirm += ENWLocalize("                I have read and understand this disclaimer");
		InitMsg();
		msg += not_valid;
		
		if (!PassFail) {

			alert(msg);
			not_valid = "";
			return PassFail;
		} else {
			
			f.submit();
			
		}
	}
		
	function CheckYear(s) {

			if (s.selectedIndex == 0) {
			not_valid += ENWLocalize("    Age Group\n");
			PassFail=false;
			return false;
		}	else return true;
	}
	function CheckState(s) {
		if (s.selectedIndex == 0) {
			not_valid += ENWLocalize("    State\n");
			PassFail=false;
			return false;
		} else return true;
	}
	function CheckMonth(s) {
		if (s.value < 1 || s.value > 12) {
			not_valid += ENWLocalize("    Date of Birth Month\n");
			PassFail=false;
			return false;
		}	else return true;
	}
	function CheckDay(s,t,u) {
		var CompDays = 28;

		switch (s.value) {
			case "01":
				CompDays=31
			break
			case "1":
				CompDays=31
			break
			case "02":
				if (u.value % 4 == 0) {
					if (u.value % 100 == 0) {
						if (u.value % 400 == 0) {
							CompDays = 29;
						}
					}
				}
			break
			case "2":
				if (u.value % 4 == 0) {
					if (u.value % 100 == 0) {
						if (u.value % 400 == 0) {
							CompDays = 29;
						}
					}
				}
			break
			case "03":
				CompDays=31
			break
			case "3":
				CompDays=31
			break
			case "04":
				CompDays=30
			break
			case "4":
				CompDays=30
			break
			case "05":
				CompDays=31
			break
			case "5":
				CompDays=31
			break
			case "06":
				CompDays=30
			break
			case "6":
				CompDays=30
			break
			case "7":
				CompDays=31
			break
			case "7":
				CompDays=31
			break
			case "08":
				CompDays=31
			break
			case "8":
				CompDays=31
			break
			case "09":
				CompDays=30
			break
			case "9":
				CompDays=30
			break
			case "10":
				CompDays=31
			break
			case "11":
				CompDays=30
			break
			case "12":
				CompDays=31
			break
		}
		if (t.value < 1 || t.value > CompDays) {
			not_valid += ENWLocalize("    Date of Birth Day\n");
			PassFail=false;
			return false;
		} else return true;
	}
	function CheckMaritalStatus(s) {
		if (s.selectedIndex == 0) {
			not_valid += ENWLocalize("    Marital Status\n");
			PassFail=false;
			return false;
		} else return true;
	}
	function CheckResidentChildren(s,t) {
		if (!(s.checked || t.checked)) {
			not_valid += ENWLocalize("    Resident Children\n");
			PassFail=false;
			return false;
		} else return true;
	}
	function CheckVehicleModel(s) {
		if (s.selectedIndex == 0) {
			not_valid += ENWLocalize("    Vehicle Model\n");
			PassFail=false;
			return false;
		}
		else return true;
	}
	function setselection(s) {
		var list = s.statesel
		var sVal = list.options[list.selectedIndex].value;
		if (sVal == "") return;
		var valArray = sVal.split(";");
		s.state.value = valArray[0];
		s.quoteapp.value = valArray[1];
		s.agentstate.value = valArray[2];
		//s.step.value = "two";
		s.statelong.value = list.options[list.selectedIndex].text;
		//s.action="/coverageguide/auto/vehicle.asp";
		//s.submit();
	}
	function getModelPickList(f) {
		var W3C = document.getElementById? true : false; //IE5+, Netscape 6+, Opera 5+, Konqueror 2.1+, Mozilla and various 
		var NN4 = document.layers? true : false;         //Netscape Navigator 4.x.
		var IE4 = document.all? true : false;			 //IE4 (and above).
		if (CheckVehicleYear(f.VehicleYear) && CheckVehicleMake(f.VehicleMake)) {		
			if (W3C) {
				//alert('W3C')
				document.getElementById('spanGetModels').style.visibility = "visible";
			}
			else if (NN4) {
				document.layers['spanGetModels'].visibility = "show";
			}
			else if (IE4) {
				document.all['spanGetModels'].style.visibility = "visible";
			}	
			f.action="/coverageguide/auto/vehicle.asp";
			f.submit();
		}
	}
	function CheckVehicleMake(s) {
		if (s.selectedIndex == 0) {
			not_valid += ENWLocalize("    Vehicle Make\n");
			PassFail = false;
			return false;
		} else return true;
	}
	function CheckVehicleYear(s) {
			// if (s.value < 1851 || s.value > 2001) {
			//if (s.value <= 1969) {
			if (s.selectedIndex == 0) {
				not_valid += ENWLocalize("    Vehicle Year\n");
				PassFail=false;
				return false;
			}	else return true;
	}
	//-->