function disableComp(comp){ comp.disabled =true; return true; } function changeAction(actionName) { var name=actionName; document.forms[0].action=name; } function changeActionAndSubmit(actionName) { changeAction(actionName); document.forms[0].submit(); } function addToCart(itemKey, altNumKey){ //window.navigate("/pet/order/addToCart.web?itemKey="+itemKey); var loc; if(altNumKey != null) { loc ="/pet/order/addToCart.web?altNumKey="+altNumKey; } else { loc ="/pet/order/addToCart.web?itemKey="+itemKey; } window.location.href=loc; } function openDoc(docName) { if (trim(docName) != "") { var myWindow = window.open(docName, "", "height=600,width=800,status=yes,toolbar=no,menubar=no,location=no,resizable=yes,top=10,left=10,scrollbars=yes"); myWindow.focus(); } } function popupLargeImage(url, category, name) { regExp = /picgroup/gi; newUrl = url.replace(regExp, 'largepicgroup'); window.open(newUrl+'&productCategory='+escape(category)+'&productName='+escape(name), 'ProductImage', 'toolbar=no,status=yes,left=0,top=50,width=510,height=510'); } function hideProductImages() { resultImages = document.getElementsByName("resultImages"); lnk = document.getElementsByName("hidProdLink"); var txt; if(lnk[0].text) txt=lnk[0].text; else if(lnk[0].innerText) txt=lnk[0].innerText; if(resultImages){ if(resultImages.length<2){ if(txt=='Hide Product Images') { resultImages[0].style.display="none"; }else{ resultImages[0].style.display=""; } }else{ for(var i=0; i