Skip to the content

Category: Insurance News

5 simple road rules to keep your teen driver safe

$(document).ready(function() { $(".productDropdown").val("AU"); }); $(function(){ $(".bannerQuoteButton").click(function(){ submitBanner(); return false; }); }); function submitBanner() { zipcontrol = document.getElementById("bannerTerm"); if(ValZipNew(zipcontrol)) window.location = "http://www.progressive.com/scripts/quotestartpage.aspx?zipcode="+zipcontrol.value+"&product=AU"; return false; } function ValZipNew(txtZip) { if (txtZip.value.length == 5) { var valZipReg = new RegExp("^[0-9]{5}$"); if (valZipReg.test(txtZip.value)) { //valid return true; } } //come here as invalid if(txtZip.value.length == 0) //nothing entered { alert("Please enter a ZIP code."); } else { alert("Please enter...

5 simple road rules to keep your teen driver safe

$(document).ready(function() { $(".productDropdown").val("AU"); }); $(function(){ $(".bannerQuoteButton").click(function(){ submitBanner(); return false; }); }); function submitBanner() { zipcontrol = document.getElementById("bannerTerm"); if(ValZipNew(zipcontrol)) window.location = "http://www.progressive.com/scripts/quotestartpage.aspx?zipcode="+zipcontrol.value+"&product=AU"; return false; } function ValZipNew(txtZip) { if (txtZip.value.length == 5) { var valZipReg = new RegExp("^[0-9]{5}$"); if (valZipReg.test(txtZip.value)) { //valid return true; } } //come here as invalid if(txtZip.value.length == 0) //nothing entered { alert("Please enter a ZIP code."); } else { alert("Please enter...