function doSearch(s) { var str = trim(s.value); var regExp1 = /[&+]/; var regExp2 = /[()\[\]"=<>!]|(\bfield\b)/; var regExp3 = /'(\w|\s)*'/g; if ( regExp1.test( str )) { alrt = "Please use AND as the operator."; return alert( alrt ); } if ( regExp3.test( str )) { alrt = "Please use \" as the operator for phrase searching."; return alert( alrt ); } if (str == "") { alert("Please be sure to enter something to search for."); s.focus(); } else { document.location = "/wheels/site/articleIDs/7CF4F56D27C80DCACA2572430083B026?open&template=domWheels&query=" + escape( str ) + "&start=1&count=10"; } } function doWASSearch() { var which = document.forms['WAS_Form']; var regExp1 = /[&+]/; var regExp2 = /[()\[\]"=<>!]|(\bfield\b)/; var regExp3 = /'(\w|\s)*'/g; var make = which.WAS_make.value; var model = which.WAS_model.value; var fuel= which.WAS_Fuel_Economy.value; //var rating= which.WAS_Rating.value; var fuelmin = ""; var fuelmax = ""; var ratingmin = ""; var ratingmax = ""; if (fuel == "1") {fuelmin = "1"; fuelmax = "5"} else if (fuel == "2") {fuelmin = "5"; fuelmax="10"} else if (fuel == "3") {fuelmin = "10"; fuelmax="15"} else if (fuel == "4") {fuelmin ="15"} else {} /* disbaled if (rating == "1") {ratingmin = "60";} else if (rating == "2") {ratingmin = "50"; ratingmax="60"} else if (rating == "3") {ratingmin = "40"; ratingmax = "50"} else if (rating == "4") {ratingmax = "40"} */ var minprice= which.MinPrice.value; var maxprice= which.MaxPrice.value; document.location = "/wheels/site/homepages/Showroom+search?open&template=domWheels&query=make|" + make + ";model|" + model + ";fuelmin|" + fuelmin + ";fuelmax|" + fuelmax + ";minprice|" + minprice + ";maxprice|" + maxprice + "&start=1&count=10"; } function checkrequired(which) { // include a hidden field in form with name CompulsoryFields var pass=true; var regEmailPattern = /\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/; if ( regEmailPattern.test( which.EmailAddress.value )) { } else { alert("Please enter a valid email address"); return false; } } // returns the element value from modules array function getHmElement(eName,b,eMod) { elementName= eName + b + eMod; for (var a=0;a0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i