\n'); } var imgarray_flat = new Array(4); var imgarray_hi = new Array(4); imgarray_flat["brands"] = new Image(89,14); imgarray_flat["brands"].src = "/images/topNavBoatBrandsFlat.gif"; imgarray_flat["tech"] = new Image(131,14); imgarray_flat["tech"].src = "/images/topNavTechnologyAndQualityFlat.gif"; imgarray_flat["dealer"] = new Image(128,14); imgarray_flat["dealer"].src = "/images/topNavDealerOpportunitiesFlat.gif"; imgarray_flat["aboutus"] = new Image(92,14); imgarray_flat["aboutus"].src = "/images/topNavAboutUsFlat.gif"; imgarray_flat["terms"] = new Image(94,14); imgarray_flat["terms"].src = "/images/topNavTermsOfUseFlat.gif"; imgarray_flat["press"] = new Image(82,14); imgarray_flat["press"].src = "/images/topNavPressRoomFlat.gif"; imgarray_flat["with"] = new Image(130,14); imgarray_flat["with"].src = "/images/bottomNavWithFlashFlat.gif"; imgarray_flat["without"] = new Image(142,14); imgarray_flat["without"].src = "/images/bottomNavWithoutFlashFlat.gif"; imgarray_flat["dealers"] = new Image(67,14); imgarray_flat["dealers"].src = "/images/bottomNavDealersFlat.gif"; imgarray_flat["employment"] = new Image(67,14); imgarray_flat["employment"].src = "/images/bottomNavEmploymentFlat.gif"; imgarray_flat["genmarTransportation"] = new Image(142,14); imgarray_flat["genmarTransportation"].src = "/images/bottomNavgenmarTransportationFlat.gif"; imgarray_hi["brands"] = new Image(89,14); imgarray_hi["brands"].src = "/images/topNavBoatBrandsHi.gif"; imgarray_hi["tech"] = new Image(89,14); imgarray_hi["tech"].src = "/images/topNavTechnologyAndQualityHi.gif"; imgarray_hi["dealer"] = new Image(89,14); imgarray_hi["dealer"].src = "/images/topNavDealerOpportunitiesHi.gif"; imgarray_hi["aboutus"] = new Image(89,14); imgarray_hi["aboutus"].src = "/images/topNavAboutUsHi.gif"; imgarray_hi["terms"] = new Image(94,14); imgarray_hi["terms"].src = "/images/topNavTermsOfUseHi.gif"; imgarray_hi["press"] = new Image(82,14); imgarray_hi["press"].src = "/images/topNavPressRoomHi.gif"; imgarray_hi["with"] = new Image(130,14); imgarray_hi["with"].src = "/images/bottomNavWithFlashHi.gif"; imgarray_hi["without"] = new Image(142,14); imgarray_hi["without"].src = "/images/bottomNavWithoutFlashHi.gif"; imgarray_hi["dealers"] = new Image(67,14); imgarray_hi["dealers"].src = "/images/bottomNavDealersHi.gif"; imgarray_hi["employment"] = new Image(67,14); imgarray_hi["employment"].src = "/images/bottomNavEmploymentHi.gif"; imgarray_hi["genmarTransportation"] = new Image(142,14); imgarray_hi["genmarTransportation"].src = "/images/bottomNavgenmarTransportationHi.gif"; function mouse_over(ref) { document[ref].src = imgarray_hi[ref].src; } function mouse_out(ref) { document[ref].src = imgarray_flat[ref].src; } function processDL(form) { if (checkPostalCode(form.zip.value) == 0) { //alert("Zip / Postal Code is invalid."); document.location.href = sPageToGo + "?gotoPage=dl&fid=" + form.fid.value + "&bid=" + form.bid.value; } else if (checkPostalCode(form.zip.value) == 2) { document.location.href = sPageToGo + "?zip=" + form.zip.value + "&countryid=2&fid=" + form.fid.value + "&bid=" + form.bid.value; } else { document.location.href = sPageToGo + "?zip=" + form.zip.value + "&fid=" + form.fid.value + "&bid=" + form.bid.value; } } function checkPostalCode(zip) { var regUS = new RegExp("^[0-9]{5}(-[0-9]{4})?$"); var regCan = new RegExp("^[ABCEGHJKLMNPRSTVXY][0-9][A-Z]( )?[0-9][A-Z][0-9]$"); if (isNaN(zip)) zip = zip.toUpperCase(); zip = replace(zip," ",""); if (regUS.test(zip)) return 1; else if (regCan.test(zip)) return 2; else return 0; //return (regUS.test(zip) || regCan.test(zip)); } function searchIntl() { document.location.href = sPageToGo + "?loc=intl&gotoPage=dl&fid=" + document.dealerlocator.fid.value + "&bid=" + document.dealerlocator.bid.value; } //-->
|
||||||||||||||||