var CarouselArrowHeight = 153; function trim(stringToTrim) { return stringToTrim.replace(/\s/g,''); } function loadTooltip(val,imglink) { document.getElementById('thumb'+val).src = imglink; } /* Display functions */ function showhide(elementID,thisValue) { if ( thisValue == 0 ) { document.getElementById(elementID).style.display = "none"; } if ( thisValue == 1 ) { document.getElementById(elementID).style.display = ""; } } function showhide2(elementID,thisValue) { if ( thisValue == 0 ) { document.getElementById(elementID).style.display = "none"; } if ( thisValue == 1 ) { document.getElementById(elementID).style.display = ""; } } function showhide3(elementID,thisValue) { if ( thisValue == 0 ) { document.getElementById(elementID).style.display = "none"; } if ( thisValue == 1 ) { document.getElementById(elementID).style.display = ""; } } function showDiv(val){ document.getElementById(val).style.display = 'block'; } function hideDiv(val){ document.getElementById(val).style.display = 'none'; } function validate_discountvalue(){ document.getElementById('rdoFreeShipping').checked = false; document.getElementById('rdoFreeShipping').value = ""; document.getElementById('divDiscountValue').style.display = 'none'; } function validate_discountshipping(){ document.getElementById('txtDiscountValue').value = ""; document.getElementById('rdoFreeShipping').value = "Free Shipping"; document.getElementById('divDiscountValue').style.display = 'none'; } function showdiv_dropdown_cboApplyTo(val){ switch (val) { case "ProductGroup": document.getElementById('ProductGroup').style.display = 'block'; document.getElementById('Customer').style.display = 'none'; document.getElementById('divAccntType').style.display = 'none'; document.getElementById('divCorporateAccnt').style.display = 'none'; break; case "Customer": document.getElementById('ProductGroup').style.display = 'none'; document.getElementById('Customer').style.display = 'block'; document.getElementById('divAccntType').style.display = 'block'; break; } } function showdiv_dropdown_cboCustAccntType(val){ var frm = document.frmDiscount.cboCustAccountType; if(val=="1"){ document.getElementById('divCorporateAccnt').style.display = 'none'; //frm.options[frm.selectedIndex].text = "Retail"; }else if(val=="2"){ document.getElementById('divCorporateAccnt').style.display = 'none'; // frm.options[frm.selectedIndex].text = "Wholesale"; }else if(val=="3"){ document.getElementById('divCorporateAccnt').style.display = 'block'; // frm.options[frm.selectedIndex].text = "Corporate"; } } function logoutSecure(page,elementID){ callToServer(page,elementID); reload_timer(); } function checkDuplication(page,field,elementID) { callToServer(page+'?q='+document.getElementById(field).value,elementID); } function reloadpage(val){ window.location=val; } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&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