var path = '/'; function WinOpenVP(pic_id) { window.open(path + "popup.php?"+pic_id,"view", "status=no,hotkeys=no,toolbar=yes,scrollbars=yes,resizable=yes,left=0, top=0, width=90, height=120 topmargin=0 marginheight=0 leftmargin=0 marginwidth=0"); } function WinOpenNFO(part_id) { window.open(path + "viewNFO.php?part_id="+part_id,"view", "status=no,hotkeys=no,toolbar=yes,scrollbars=yes,resizable=yes, width=750, height=500"); } function WinOpenNFO2(service_id) { window.open(path + "viewNFO.php?service_id="+service_id,"view", "status=no,hotkeys=no,toolbar=yes,scrollbars=yes,resizable=yes, width=750, height=500"); } function openWindowURL(URL) { winStats='toolbar=yes,location=no,directories=no,menubar=no,' winStats+='scrollbars=yes,resizable=yes,width=530,height=445' if (navigator.appName.indexOf("Microsoft") >= 0) { winStats+=',left=100,top=25' } else { winStats+=',screenX=100,screenY=25' } floater=window.open(URL,"floater",winStats) floater.focus() } function FitPic() { var iWidth, iHeight; self.focus(); var NSHA = (navigator.appName == "Netscape")?35:0; iWidth = 1.12 * document.images[0].width; iHeight = document.images[0].height + (100 + NSHA); if (iWidth > screen.width) iWidth = .95 * screen.width; if (iHeight > screen.height) iHeight = .95 * screen.height; window.resizeTo(iWidth, iHeight); self.focus(); } function orderqtycheck(a, b) { var qtyzero; var numrows; var i; qtyzero = a; numrows = b; for (i = 0; i < numrows; i++) { if (document.order.qty_available[i].value == 0) qtyzero = 1; } if (qtyzero == 0) return 1; if (qtyzero != 0) alert("Quantities may contain zeros"); return 1; return 0; } function dest(str) { return '/results.php?subcat_id=' + str + '&subcat_id2=' + str; } var strGif = "images/1.gif" var strFilter = "progid:DXImageTransform.Microsoft.AlphaImageLoader" function correctPNG() { for(var i=0; i" } var strNewHTML = "" if (img.useMap) strNewHTML += strAddMap img.outerHTML = strNewHTML i = i-1 } } for(i=0; i < document.forms.length; i++) { findImgInputs(document.forms(i)) } } function findImgInputs(oParent) { var oChildren = oParent.children if (oChildren) { for (var i=0; i < oChildren.length; i++ ) { var oChild = oChildren(i) if ((oChild.type == 'image') && (oChild.src)) { var origSrc = oChild.src oChild.src = strGif oChild.style.filter = strFilter + "(src='" + origSrc + "')" } findImgInputs(oChild) } } } if (navigator.appName != "Netscape") window.attachEvent("onload", correctPNG);