function removeSubline(intProduct_id, intMainProduct_id) { kaar.document.URL = "/global/systemer/webshop2/iframe/removesubline_iframe.asp?product_id=" + intProduct_id + "&main_product_id=" + intMainProduct_id; } function termsOfTradePopup() { window.open('/global/systemer/webshop2/popup/termsoftrade.asp','termsoftrade','width=400,height=300,scrollbars=yes'); } function editOrderline(intId, intReturnWsPageId) { document.location = strPageFile + "?pageid=" + intPageId +"&wsPageId=22&product_id=" + intId + "&edit=1&rwsPageId=" + intReturnWsPageId; } function processKey(ev, textbox, functionname) { switch(ev.keyCode) { case 13: { eval(functionname); } break; } } function showHideSpan(strGroupName, strId) { arrDivTags = document.getElementsByTagName("span"); if(strGroupName != "") { for(i = 0; 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-1 && navigator.appVersion.indexOf("Mac")>-1)) { ox=0;oy=0;if(g.style.left){x=parseInt(g.style.left);y=parseInt(g.style.top); }else{var w1=parseInt(el.style.width);bx=(a<0)?-5-w1:-10; a=(Math.abs(a)<1000)?0:a;b=(Math.abs(b)<1000)?0:b; x=document.body.scrollLeft + event.clientX + bx; y=document.body.scrollTop + event.clientY;}} }else if (document.layers) {x=g.x;y=g.y;var q0=document.layers,dd=""; for(var s=0;s4){xx+="px";yy+="px";} if(navigator.appVersion.indexOf("MSIE 5")>-1 && navigator.appVersion.indexOf("Mac")>-1){ xx+=parseInt(document.body.leftMargin);yy+=parseInt(document.body.topMargin); xx+="px";yy+="px";}e.left=xx;e.top=yy;}} } function MM_jumpMenu(targ,selObj,restore){ //v3.0 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0; } function P7_hideDiv(evt) { //v1.2 by PVII var b,relT,mT=false; if(document.layers){b=evt.target;if(b.p7aHide){ b.visibility="hidden";}else{routeEvent(evt);} }else if(document.all&&!window.opera){b=event.srcElement; while(b!=null){if(b.tagName=="DIV" && b.p7ahD){mT=true;break;}b=b.parentElement;} if(!b.contains(event.toElement)){b.style.visibility="hidden";} }else if(document.getElementById){b=evt.currentTarget;relT=evt.relatedTarget; while(relT!=null){if(b==relT){mT=true;break;} relT=relT.parentNode;}if(!mT){b.style.visibility="hidden";}} } function P7_autoHide() { //v1.2 by PVII var i,g,args=P7_autoHide.arguments; for(i=0;i'; document.getElementById('picturepreview').style.display = ''; document.getElementById('picturepreview').style.visibility = 'visible'; } function hidepreview() { document.getElementById('picturepreview').style.display = 'none'; document.getElementById('picturepreview').style.visibility = 'hidden'; } function showPicture(intId,intWidth,intHeight) { if(intWidth=='' || intWidth==null){intWidth=800}; if(intHeight=='' || intHeight==null){intHeight=500}; window.open("/global/moduler/filupload/show_file.asp?id=" + intId, "Fil","scrollbars=yes,width="+intWidth+",height="+intHeight); } document.onclick=change setTimeout('webshopDiv.document.location = "/global/moduler/login/keep_login.asp";', 1100000) function changeShopImage(oImg, strId, strUrl) { oOrg = document.getElementById(strId) if(oOrg) { oNew = document.getElementById(oImg.src); if(!oNew) { oNew = document.createElement("IMG"); oNew.id = oImg.src; oNew.src = strUrl; oNew.className = oOrg.className; if(oOrg.style.cssText) { oNew.style.cssText = oOrg.style.cssText; }else{ try{ oNew.style = oOrg.getAttribute("style"); }catch(e){} } oOrg.parentNode.insertBefore(oNew, oOrg.nextSibling); }else{ oNew.style.display = ""; } oOrg.style.display = "none"; } } function changeShopImageBack(oImg, strId) { oOrg = document.getElementById(strId) if(oOrg) { oNew = document.getElementById(oImg.src); if(oNew) { oNew.style.display = "none"; } oOrg.style.display = ""; } } function showProductSupplementary(intId) { var newwin = window.open('/global/systemer/webshop2/popup/ProductSupplementary.asp?productid=' + intId,'ProductSupplementary','width=400,height=300,scrollbars=yes'); newwin.focus(); } function showOneElementHideRest(intStart, intEnd, intSelected, strTagName) { var intCount; var oObject; for(intCount=intStart ; intCount<=intEnd ; intCount++) { oObject = document.getElementById(strTagName+intCount); if(oObject) { oObject.style.display='none'; oObject.style.visibility='hidden'; } } oObject = document.getElementById(strTagName+intSelected); if(oObject) { oObject.style.display=''; oObject.style.visibility='visible'; } }