%@ include file="header.html" %> <%@ import = "javax.mail.*,javax.mail.internet.*,javax.activation.*,java.net.InetAddress" %> <% boolean shouldShowFirstForm = true; String param_info[][] = { {"firstName", "First Name", "required", "You must enter your First Name"}, {"lastName", "Last Name", "required", "You must enter your Last Name"}, {"address1", "Address 1", "required", "You must enter your Address"}, {"address2", "Address 2", "not required", ""}, {"city", "City", "required", "You must enter your City"}, {"state", "State", "required", "You must enter your State"}, {"zip", "Zip Code", "required", "You must enter your Zip"}, {"phone", "Phone", "required", "You must enter your Phone Number"}, {"fax", "Fax", "required", ""}, {"email", "E-Mail", "required", "You must enter your E-Mail"}, {"amountinsurance", "Amount of Insurance", "required", "You must enter the amount of insurance"}, {"deductible", "Deductible", "not required", ""}, {"typedwell", "Type of Dwelling", "not required", ""}, {"dwelluse", "Dwelling Use", "not required", ""}, {"liability", "Liability", "not required", ""}, {"medpay", "Medical Payments", "not required", ""}, {"propaddress", "Property Address", "not required", ""}, {"propcity", "Property City", "not required", ""}, {"propstate", "Property Sate", "not required", ""}, {"propzip", "Property Zip", "not required", ""}, {"propcounty", "Property County", "not required", ""}, {"structureType", "Type of Structure", "not required", ""}, {"StructureTypeOtherDefined", "Other Defined", "not required", ""}, {"yearBuilt", "Year Built", "not required", ""}, {"squareFeet", "Square Feet", "not required", ""}, {"numberFamilies", "Number of Families", "required", "You must enter the number of families"}, {"swimmingPool", "Swimming Pool", "not required", ""}, {"distanceHydrant", "Distance to Fire Hydrant", "not required", ""}, {"distanceFireStation", "Distance to Fire Station", "not required", ""}, {"centralFireSystem", "Central Fire System", "not required", ""}, {"centralSmokeSystem", "Central Smoke System", "not required", ""}, {"centralBurglarSystem", "Central Burglar System", "not required", ""}, {"wiring", "Wiring Update", "not required", ""}, {"wiringYear", "Wiring Update Year", "not required", ""}, {"plumbing", "Plumbing Update", "not required", ""}, {"plumbingYear", "Plumbing Update Year", "not required", ""}, {"heating", "Heating Update", "not required", ""}, {"heatingYear", "Heating Update Year", "not required", ""}, {"roofing", "Roof Update", "not required", ""}, {"roofingYear", "Roof Update Year", "not required", ""}, {"claiminfo", "Claim Information", "not required", ""}, {"remarks", "Remarks", "not required", ""}, }; if (request.getParameter("op") != null) { String errmsg = ""; for(int i = 0; i < param_info.length; i++) { if (param_info[i][2] == "required") { if ((request.getParameter(param_info[i][0]) == null) || (request.getParameter(param_info[i][0]).length() == 0)) { errmsg = errmsg.concat("
| Sorry Your Application Is Incomplete |
| We are missing some required information from the form you submitted. The following is a list of corrections you must make before we can process your application. Please make the corrections to the form below and resend it. |
");
out.println("
|
"); } } %> <% if (shouldShowFirstForm == true) { %>