function restore(c,b){var a="../images/"+b;document.getElementById(c).src=a}function swapImage(c,b){var a="../images/"+b;document.getElementById(c).src=a}function cleartext(){if(document.getElementById("txtSearch").value=="Search by title, author or ISBN"){document.getElementById("txtSearch").value=""}}function ChapOverLay_Show(a){document.getElementById("overlay_PrdDetail").style.display="block";document.getElementById("chapter_overlay_PrdDetail").style.display="block";document.getElementById(a).style.display="block";var b=document.getElementById(a).getElementsByTagName("div");for(i=0;i<b.length;i++){b[i].style.display="block"}document.getElementById("footerWrapper").style.zIndex="-100"}function ChapOverLay_Show_Microsite(a){document.getElementById(a).style.display="block";var b=document.getElementById(a).getElementsByTagName("div");for(i=0;i<b.length;i++){b[i].style.display="block"}document.getElementById("footerWrapper").style.zIndex="-100"}function ChapOverLay_Hide_Microsite(a){document.getElementById(a).style.display="none";var b=document.getElementById(a).getElementsByTagName("div");for(i=0;i<b.length;i++){b[i].style.display="none"}document.getElementById("footerWrapper").style.zIndex="1"}function loginOverLay_Show(){document.getElementById("overlay").style.display="block";document.getElementById("login_overlay").style.display="block";document.getElementById("loginwidget").style.display="block";document.getElementById("userLogin").focus();select_hide(1)}function loginOverLay_hide(){document.getElementById("login_overlay").style.display="none";document.getElementById("loginwidget").style.display="none";document.getElementById("overlay").style.display="none";select_hide(0)}function select_hide(b){var d,c=(b==1)?"hidden":"visible";if(document.getElementById){d=document.getElementById("PageSize");if(d){d.style.visibility=c}}}function ChapOverLay_hide(){var a=document.getElementById("overlay_PrdDetail").getElementsByTagName("div");for(i=0;i<a.length;i++){a[i].style.display="none"}document.getElementById("overlay_PrdDetail").style.display="none";document.getElementById("footerWrapper").style.zIndex="1"}function ShowPopUp(d,e,a,c){var b=null;LeftPosition=(screen.width)?(screen.width-a)/2:0;TopPosition=(screen.height)?(screen.height-c)/2:0;settings="height="+c+",width="+a+",top="+TopPosition+",left="+LeftPosition+", resizable=0, statusbar=0, toolbar=0,scrollbars=0,location=0";b=window.open(d,e,settings)}function PopWin(d,e,a,c){var b=null;LeftPosition=(screen.width)?(screen.width-a)/2:0;TopPosition=(screen.height)?(screen.height-c)/2:0;settings="height="+c+",width="+a+",top="+TopPosition+",left="+LeftPosition+", resizable=0, statusbar=0, toolbar=0,scrollbars=1,location=no";b=window.open(d,e,settings);b.focus()}function SameEnable(a){var b=this.document.getElementById(a);b.setAttribute("disabled",false)}function SameDisable(b,a){var d=this.document.getElementById(b);var c=this.document.getElementById(a);d.value=c.value;d.setAttribute("disabled",true)}function SameShipping(a){var b=this.document.getElementById(a);if(b.checked==true){SameDisable("shipadd1","billadd1");SameDisable("shipadd2","billadd2");SameDisable("shipcity","billcity");SameDisable("shipcounty","billcounty");SameDisable("shipzip","billzip");SameDisable("shipcountry","billcountry");SameDisable("shiptel","billtel");SameDisable("shipfax","billfax");SameDisable("shipemail","billemail")}else{SameEnable("shipadd1");SameEnable("shipadd2");SameEnable("shipcity");SameEnable("shipcounty");SameEnable("shipzip");SameEnable("shipcountry");SameEnable("shiptel");SameEnable("shipfax");SameEnable("shipemail")}}function MatchHeight(d,c){var b=this.document.getElementById(d);var a=this.document.getElementById(c);if(a.offsetHeight>b.offsetHeight){b.style.height=a.offsetHeight}}var show=1;var hide=0;function toggleBox(a,d){var c=document.getElementById("footerWrapper");if(document.layers){var b=document.layers[a].style;b.display=d?"block":""}else{if(document.getElementById){var b=document.getElementById(a).style;b.display=d?"block":"";c.style.zIndex=d?"-1":"1"}else{if(document.all){var b=document.all[a].style;b.display=d?"block":""}}}}function toggleEmail(){if(document.forms.registerForm.useTextMgrEmail.checked){document.forms.registerForm.remittanceEmail.value=document.forms.registerForm.textMgrEmail.value}else{document.forms.registerForm.remittanceEmail.value=""}}function openWindow(b,a){document.domain="cengage.com";popupWin=window.open("/db2www/listab.mac/listAB?StoreID=SOLO&Field="+b+"&AN8="+a+"&website=sp&FormName=registerForm&ShowVendors=YY","remote","status,scrollbars,width=440,height=400,left=10,top=10")};