function changeHeight(B,A){if(null!=document.getElementById(A)){if(isIE){document.getElementById(A).style.height=getElementsByClassName(document,B)[0].offsetHeight+(getElementsByClassName(document,B)[0].offsetTop-document.getElementById(A).offsetTop)-60+"px"}else{document.getElementById(A).style.height=getElementsByClassName(document,B)[0].offsetHeight+(getElementsByClassName(document,B)[0].offsetTop-document.getElementById(A).offsetTop)-55+"px"}if(document.getElementById(A).offsetHeight>500){}}}function tabChange(G,B,I,K,J,E){if(G.id=="makeResWidget"){document.title=makeARes}if(G.id=="viewModifyCancel"){document.title=viewModifyCancel}if(G.id=="getAReceipt"){document.title=getAReceipt}if(G.id=="carInShopWidget"){document.title=carInShop}test1=new Date();var A=I.slice(0,1);var D=I.slice(I.lastIndexOf(I)-1);var H=getElementsByClassName(document,B)[0].childNodes;for(var C=0;C<H.length;C++){if((H[C].nodeType!=3)&&(H[C].nodeType!=8)){if(H[C].className.search(I.slice(0,1))>0){H[C].className=H[C].className.slice(0,H[C].className.search(I.slice(0,1)))}}}G.className+=" "+I;var F=getElementsByClassName2(document,K);for(var C=0;C<F.length;C++){if(C!=(D-1)){F[C].style.display="none"}else{F[C].style.display="block";if(F[C].offsetHeight<243){F[C].style.height=243}}}changeHeight(J,E);test2=new Date();test3=(test2-test1)/1000}var homePagePane="";function showHideMakeResWidget(){if(homePagePane!=""){if(homePagePane=="MAKE_RESERVATION"){if(document.getElementById("tabs2")){tabChange(document.getElementById("makeResWidget"),"tabs2","itemOn1","reservation","component","body");return false}else{tabChange(document.getElementById("makeResWidget"),"tabs1","itemOn1","reservation","component","body");return false}}else{if(homePagePane=="CAR_IN_SHOP"){if(document.getElementById("tabs2")){tabChange(document.getElementById("carInShopWidget"),"tabs2","itemOn4","reservation","component","body");return false}else{tabChange(document.getElementById("carInShopWidget"),"tabs1","itemOn4","reservation","component","body");return false}}}}}function homepagestart(){if(document.getElementById("body")){changeHeight("component","body")}showHideMakeResWidget()}if(window.addEventListener){window.addEventListener("load",homepagestart,true)}if(window.attachEvent){window.attachEvent("onload",homepagestart)}function returnDateFormat(B){var A=B.substring(0,B.indexOf("/"));var E=B.substring(B.indexOf("/")+1,B.lastIndexOf("/"));var C=B.substring(B.lastIndexOf("/")+1,B.length);var D=A+E+C;return D}function returnTimeFormat(E){var B=E.substring(0,E.indexOf(":"));var C=E.substring(E.indexOf(":")+1,E.length-2);var D=E.substring(E.length-2,E.length);if(D=="pm"){if(B!="12"){B=(parseInt(B)+12).toString()}}var A=B+C;if(A.length==3){A="0"+A}return A}function returnMnemonicCode(A){A=unescape(A);if(A.indexOf("(")!=-1){return A.substring(A.indexOf("(")+1,A.indexOf(")"))}return A}function onSubmitHomePage(){try{s.events="scOpen";s.eVar1=returnMnemonicCode(escape(document.RES_FORM.elements["resForm.pickUpLocation"].value));if(document.RES_FORM.elements["resForm.returnSameAsPickUp.value"].checked==true){s.eVar4="false"}else{s.eVar4="true"}s.eVar6=returnDateFormat(document.RES_FORM.elements["resForm.pickUpDate"].value)+":"+returnTimeFormat(document.RES_FORM.elements["resForm.pickUpTime"].value);s.eVar7=returnDateFormat(document.RES_FORM.elements["resForm.dropOffDate"].value)+":"+returnTimeFormat(document.RES_FORM.elements["resForm.dropOffTime"].value);if(document.RES_FORM.elements["resForm.wizardNumber.value"]!=null){s.eVar13=document.RES_FORM.elements["resForm.wizardNumber.value"].value}if(document.question_form!=null&&document.question_form.elements.question_box!=null&&document.question_form.elements.question_box.value!=null){s.prop3=document.question_form.elements.question_box.value}if(document.RES_FORM.elements["resForm.countryOfRes.value"]!=null){if(document.RES_FORM.elements["resForm.countryOfRes.value"].value=="US"||document.RES_FORM.elements["resForm.countryOfRes.value"].value=="CA"){s.eVar20=document.RES_FORM.elements["resForm.awdRateCode.value"].value}else{s.eVar20=document.RES_FORM.elements["resForm.awdNonUSRateCode.value"].value}s.prop9=document.RES_FORM.elements["resForm.countryOfRes.value"].value}if(document.RES_FORM.elements["resForm.pickupAddressVO.city"]!=null&&document.RES_FORM.elements["resForm.pickupAddressVO.stateCode"]!=null){if(document.RES_FORM.elements["resForm.pickupAddressVO.city"].value!=null&&document.RES_FORM.elements["resForm.pickupAddressVO.city"].value!=""&&document.RES_FORM.elements["resForm.pickupAddressVO.stateCode"].value!=null&&document.RES_FORM.elements["resForm.pickupAddressVO.stateCode"].value!=""){s.eVar8=document.RES_FORM.elements["resForm.pickupAddressVO.city"].value+","+document.RES_FORM.elements["resForm.pickupAddressVO.stateCode"].value}}if(document.RES_FORM.elements["resForm.pickupAddressVO.zipCode"]!=null&&document.RES_FORM.elements["resForm.pickupAddressVO.zipCode"].value!=null){s.eVar9=document.RES_FORM.elements["resForm.pickupAddressVO.zipCode"].value}s.tl(this,"o","Home submit")}catch(A){}}function onClickGetReceipt(){try{s.events="event11";var B=document.getElementById("findEreceipt");var A=B.selectedIndex;var C=B.options[A].value;if(C=="by_ra"){s.eVar10="Last Name & Rental Agreement Number"}if(C=="by_conf"){s.eVar10="Last Name & Confirmation Number"}if(C=="by_login"){s.eVar10="Username/Wizard & Password"}s.tl(window.event,"o","Home:Get e-Receipt submit")}catch(D){}setTimeout("onClickGetReceipt()",1)}function onSubmitPageForModifyRCancel(){try{s.events="event3";s.tl(window.event,"o","Home submit")}catch(A){}setTimeout("onSubmitPageForModifyRCancel()",1)}function cloneCountryStateSelect(A,J,E,D,G,H,I){var C=document.getElementsByName(A);var F=C[0].cloneNode(true);document.write("<select");if(E){document.write(" onChange="+E)}if(H){document.write(" onClick="+H)}if(I){document.write(" onMouseDown="+I)}document.write(" class="+D+" name="+G+">"+F.innerHTML+"</select>");selectElement=document.getElementsByName(G);var B=selectElement[0].options.length;for(i=0;i<B;i++){if(selectElement[0].options[i].value==J){selectElement[0].options[i].selected=true;break}}}function omnitureSubmit(A){try{var C="";if(flow.toLowerCase()=="create"||flow.toLowerCase()=="create_modify"){C="Modify Module  "+A+" Res Create- "+step}else{if(flow.toLowerCase()=="modify"){C="Modify Module  "+A+"  Modify - "+step}}if(A=="Modify"){s.events="event2";omnitureUpdate(C)}if(A=="Cancel"){s.events="event14";omnitureUpdate(C)}if(A=="Update"){s.events="event6";omnitureUpdate(C)}}catch(B){}}omnitureUpdate=function(D){var A="s"+Math.round(100000000000000+Math.random()*999999999999999),B="&pe=lnk_o&pev2="+D;s.events&&(B+="&events="+s.events);var C=document.location.href.replace("#bottom","");oImgsrc=("https:"==document.location.protocol?"https://":"http://")+s_account+".112.2o7.net/b/ss/"+s_account+"/1/H.15.1/"+A+"?AQB=1&g="+C+B+"&AQE=1";omnitureUpdate.getImage(oImgsrc);omnitureUpdate.tryReady(0)};omnitureUpdate.getImage=function(A){objImg=new Image();objImg.src=A};omnitureUpdate.tryReady=function(A){if(objImg.width==0){if(A<=500){setTimeout("omnitureUpdate.tryReady("+(A+50)+")",50)}else{omnitureUpdate.move()}}else{omnitureUpdate.move()}};omnitureUpdate.move=function(){};function omnitureFlowSubmit(B){try{var C="";if(flow.toLowerCase()=="create"||flow.toLowerCase()=="create_modify"){C="Create Res   "+B}else{if(flow.toLowerCase()=="modify"){C="Modify Res   "+B}}s.prop38=C;s.tl(this,"o","Modify Steps")}catch(A){}};
