function doSearch(){document.location='/search/'+escape(document.getElementById("searchCat").options[document.getElementById("searchCat").selectedIndex].value)+'/'+escape(document.getElementById("searchFor").value)};function doBrowse(){if(document.getElementById("browseCat").options[document.getElementById("browseCat").selectedIndex].value!=""){document.location='/browse/'+document.getElementById("browseCat").options[document.getElementById("browseCat").selectedIndex].value}};function doLoanCalc(){var URL="/loanresult/?vehiclePrice="+document.getElementById("vehiclePrice").value+"&salesTax="+document.getElementById("salesTax").value+"&downPayment="+document.getElementById("downPayment").value+"&termMonths="+document.getElementById("termMonths").value+"&intRate="+document.getElementById("intRate").value;popup(URL,'loancalc',320,420,'false');return false};function popup(mypage,myname,w,h,scroll){LeftPosition=(screen.width)?(screen.width-w)/2:0;TopPosition=(screen.height)?((screen.height-h)/2)-20:0;var settings='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=1,toolbar=0,location=0,statusbar=0,menubar=0';window.open(mypage,myname,settings)};function popupFull(mypage){window.open(mypage,'popup')};function moveresize(w,h){LeftPosition=(screen.width)?(screen.width-w)/2:0;TopPosition=(screen.height)?(screen.height-h)/2:0;top.moveTo(LeftPosition,TopPosition);top.resizeTo(w,h)};function bookmark(url,description){if(navigator.appName=='Microsoft Internet Explorer'){window.external.AddFavorite(url,description)}else if(navigator.appName=='Netscape'){netscape="First push OK and then hit CTRL+D to add a bookmark to this site.";alert(netscape)}};function bookmarkRepo(){bookmark("http://www.repo.com","Repo.com : Your Source for Quality Repossessed Vehicles!");return false};function newImage(arg){if(document.images){rslt=new Image();rslt.src=arg;return rslt}};function changeImages(){if(document.images&&(preloadFlag==true)){for(var i=0;i<changeImages.arguments.length;i+=2){document[changeImages.arguments[i]].src=changeImages.arguments[i+1]}}};