function ship_calc(gpi){window.open("/show_calc_ship.jsp?GPI="+gpi,"ship_calc","scrollbars=yes,status=0,toolbar=0,directories=0,menubar=0,location=0,resizable=1,width=420,height=400,screenX=0,screenY=0,top=0,left=0");} function manufacturer(site,manuf){window.open(site,manuf,"toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,resizable=yes,scrollbars=auto,width=1000,height=700,screenX=0,screenY=0,top=0,left=0");} function morePhotos(pid,brand,max){window.open("/show_more_photos.jsp?productid="+pid+"&brand="+brand,"more_photos","scrollbars=2,status=0,toolbar=0,directories=0,menubar=0,location=0,resizable=1,width=1034,height=700,screenX=0,screenY=0,top=0,left=0");} function openBannerLink(bannerlink,newWin){if (newWin==1){window.open(bannerlink,"banner","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,resizable=yes,scrollbars=yes,width=1000,height=700,screenX=0,screenY=0,top=0,left=0");}else{this.location=bannerlink;}} function AccQty(){var formsize=document.accproducts.length;for (var i = 0; i < formsize; i++){if (document.accproducts.elements[i].type=="text"){var str=document.accproducts.elements[i].name;str=str.substring(0,9);if(str=="accProduc"){if(!isNumber(document.accproducts.elements[i].value)){alert("Quantity must be digits only.\nPlease try again.");document.accproducts.elements[i].focus();return false;}else if(document.accproducts.elements[i].value==""){alert("Quantity must be digits only.\nPlease try again.");document.accproducts.elements[i].focus();return false;}}}}return true;} function isNumber(inputVal){inputStr=inputVal.toString();for(var i=0; i"9"){return false;}}return true;} var lastBigImgControler=null; function turnOnImgControl(obj){ if(lastBigImgControler!=null){ lastBigImgControler.style.textDecorationUnderline=false; lastBigImgControler.style.textDecoration="none"; } lastBigImgControler=obj; obj.style.textDecorationUnderline=true; lastBigImgControler.style.textDecoration="underline"; } var currentSpecReq=0; var lastCounterAjax=0; var lastSpecsTD=null; var lastProcsSpecsTD=null; var lastSpecid=null; function procSpecs(specID,ObjTD){ currentSpecReq++; var showSpecsHead=document.getElementById("showSpecsHead"); var showSpecsIn=document.getElementById("showSpecsIn"); var showSpecsTB=document.getElementById("showSpecsTB"); if(currentSpecReq>0 && ObjTD!=lastSpecsTD){ lastSpecsTD=ObjTD; setTimeout("if(currentSpecReq=="+currentSpecReq+")procSpecs('"+specID+"',lastSpecsTD);",500); }else if(ObjTD!=null && specID!=null && showSpecsHead!=null && showSpecsIn!=null && showSpecsTB!=null){ lastCounterAjax=currentSpecReq; lastSpecid=specID; showSpecsHead.firstChild.innerHTML=ObjTD.innerHTML; var TBPArent=ObjTD; while(TBPArent.nodeName!="TABLE" && TBPArent.parentNode!=null){ TBPArent=TBPArent.parentNode; } var whereX=findPosX1(TBPArent)+TBPArent.offsetWidth; var whereY=findPosY1(ObjTD); var L=showSpecsTB; L.style.left=(whereX)+'px';//-2 for cellpedding L.style.top=(whereY)+'px';//-2 for cellpedding showSpecsTB.style.display="block"; showSpecsIn.firstChild.innerHTML="
"; var helpDesc=ObjTD.getAttribute("helpTxt"); var temp=window.document.getElementById("showSpecsIn"); //alert(helpDesc); if(helpDesc==null ){ makePOSTRequest('/show_prod_spec_help_lv.jsp','specID='+specID,inserSpecsHelp,currentSpecReq,currentSpecReq+'',false); }else{ temp.firstChild.innerHTML=helpDesc; } if(lastProcsSpecsTD!=null){ lastProcsSpecsTD.parentNode.className=""; } lastProcsSpecsTD=ObjTD; lastProcsSpecsTD.parentNode.className="specsChartHover"; //alert("++++++++"); } } function inserSpecsHelp(){ if (http_request.readyState == 4 && lastCounterAjax==currentSpecReq) { try { if(http_request.status == 200){ result = http_request.responseText; var temp=window.document.getElementById("showSpecsIn"); if(result!="" && temp!=null && temp.firstChild!=null){ if(lastProcsSpecsTD!=null){ lastProcsSpecsTD.setAttribute("helpTxt",result); } temp.firstChild.innerHTML=result; } } } catch (e) { } } } function mouseOverSpecHelp(){ currentSpecReq++; lastSpecsTD=null; } function hideSpecsHelpLyr(){ var showSpecsTB=document.getElementById("showSpecsTB"); if(showSpecsTB!=null){ currentSpecReq++; showSpecsTB.style.display="none"; } if(lastProcsSpecsTD!=null){ lastProcsSpecsTD.parentNode.className=""; } }