function OpenLink(url) { openlink = window.open(url+"","openlink","menubar=yes,status=yes,toolbar=yes,location=yes,resizable=yes,scrollbars=yes,width=750,height=500"); } function OpenFullSizeGalleryPhoto(photoid) { photogallery = window.open("/vehicles/gallery/fullsize.asp?PhotoID="+photoid,"photogallery","menubar=no,status=no,toolbar=no,location=no,resizable=yes,scrollbars=no,width=1000,height=1000"); } function GoToPreviousPage() { history.go(-1); } function ViewCoupon(CouponCode,OrderID,OrderAccessCode) { screen_width = screen.width; screen_height = screen.height; window_width = 300; window_height = 400; point_x = (screen_width - window_width) / 2; point_y = (screen_height - window_height) / 2; coupon = window.open("/store/checkout/coupon.asp?CouponCode="+CouponCode+"&OrderID="+OrderID+"&OrderAccessCode="+OrderAccessCode,"coupon","menubar=no,status=no,toolbar=no,location=no,resizable=no,scrollbars=no,width="+window_width+",height="+window_height); coupon.moveTo(point_x,point_y); coupon.focus(); } function PrintThisPage() { var sOption="toolbar=yes,location=no,directories=yes,menubar=yes,resizable=yes,scrollbars=yes,width=750,height=600,left=100,top=25"; var sWinHTML = document.getElementById('PrinterContent').innerHTML; var winprint=window.open("","",sOption); winprint.document.open(); winprint.document.write(""); winprint.document.write("






"); winprint.document.write(sWinHTML); winprint.document.write(""); winprint.document.close(); winprint.focus(); winprint.print(); } function ConfirmDelete(formobj) { if (confirm("Are you sure you want to delete this?")) { formobj.action.value = "delete"; formobj.submit(); } } function FormatPhone(obj) { temp_num = ""+obj.value; new_num = ""; for (i=0;i= 4) { area_code = "(" + area_code + ")" } if (new_num.length >= 4) { prefix = " " + prefix } if (new_num.length >= 7) { suffix = "-" + suffix } if (new_num.length >= 11) { extension = " x" + extension } obj.value = area_code + prefix + suffix + extension; } function SetModels(MakeObj,ModelObj) { ModelObj.options.length=1; var make = MakeObj.options[MakeObj.options.selectedIndex].value; for(var model in cars[make]) { ModelObj.options[ModelObj.options.length] = new Option(cars[make][model][0],cars[make][model][1]); } } function GetQueryVariable(variable) { var query = location.search.substring(1); var vars = query.split("&"); for (var i=0;i