/*
	Openstore P4.3.5.2 (v3), © 1999 - 2004 LEITBILD Media and their Licensors, www.openstore.de

	Both the license and your right to use the Software terminate automatically
	if you violate any part of the license agreement.

	DO NOT MODIFY, SELL, LEND, RENT, OR LEASE ANY PORTIONS OF THIS SOFTWARE.
*/

var bVer=parseInt(navigator.appVersion);var navversion=navigator.appName.charAt(0);var safari=navigator.appVersion.indexOf('KHTML');var carttab="";var itmform="parent.basket.document.cartReview.";var imgleer="<img src=../images/leer.gif width=";var imgsleer="<img src=../images/leer_s.gif width=";var tdc="<td align=center ";var td11=tdc+"width=1 height=1>";var t100="<table border=0 cellpadding=0 cellspacing=0 width=100%>";var t000="<table cellpadding=0 cellspacing=0 border=0>";var tdbgrc=tdc+"bgcolor='"+cartTableColor+"' width=";var imgklleer="<img src=../images/leer.gif width=1 height=1>";var txtspacer="";var hifi="<INPUT TYPE='hidden' NAME=";var zoomval=0;var sPriceArray=new Array();var imgArray=new Array();var imgdefaultArray=new Array();var titleArray=new Array();var pd=parent.data;var showhitmtable="";var thisisok=new Boolean(false);var doshowNotes=new Boolean(false);var thisgoitmval=0;var formkind="";var itmpp_0=1, itmpp_1=itemsperpage, itmpp_2=itmpp_1*2, itmpp_3=itmpp_1*3, itmpp_4=itmpp_1*4;var itmdo2cols=do2cols;var itmdoimg=1;var dosort=0;var p4version="3.5.2";var simgsrc="";var simgtitle="";var mymenuopen=0;var mymenuisi=0;var infotarget=eval("parent.bottom");if(selinfotarget!="") infotarget=eval("parent."+selinfotarget);function donewdata(){ pd.location.href=pd.location.href; }function redata(){parent.main.location.href="../etc/mload.htm";startinfodefault();setTimeout('donewdata()', 2500);}var cnotes="";if(dosaveNotes==1){var CPieces=document.cookie.split ('; ');for(i=0; i<CPieces.length; i++){var thisCName=CPieces[i].split ('=');if(thisCName[0]==".opstcookie"){cnotes=unescape(thisCName[1]);pd.document.cart.notesData.value=cnotes;}}}function goout(oknew){if(oknew=='ok') gooutPage="myid.htm";else if(oknew=='new') gooutPage="newid.htm";var pmb=parent.main.document.buyform;outURL=sFormAction;outURL+="?command=start";outURL+="&BuyPage="+escape(gooutPage);outURL+="&home="+escape(parent.location.href);outURL+="&ShopDir="+escape(ShopDir);outURL+="&FormKind="+escape(formkind);outURL+="&BuyItems="+escape(emcart());outURL+="&grandTotal="+escape(pmb.grandTotal.value);outURL+="&thisRabatt="+escape(pmb.thisRabatt.value);outURL+="&thisExtra="+escape(pmb.thisExtra.value);outURL+="&MWSteuer1="+escape(pmb.Tax1.value);outURL+="&MWSteuer2="+escape(pmb.Tax2.value);if(showCartEuro==1) outURL+="&totalEURO="+escape(pmb.totalEURO.value);outURL+="&totalplusdelivery="+escape(pmb.totalplusdelivery.value);outURL+="&MWSteuertotal="+escape(pmb.Tax.value);outURL+="&availalltxt="+escape(pmb.availalltxt.value);outURL+="&delivery="+escape(pmb.delivery.value);if(pmb.ModeOfPayment) outURL+="&ModeOfPayment="+escape(pmb.ModeOfPayment.options[pmb.ModeOfPayment.selectedIndex].value);if(pmb.ModeOfSend) outURL+="&ModeOfSend="+escape(pmb.ModeOfSend.options[pmb.ModeOfSend.selectedIndex].value);if(dopoporder==1) desktop=open(outURL ,"New","toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,width=490,height=500,resizable=yes");else parent.main.location.href=outURL;}function emcart(){var emCart="";cartArray=cartToArray();for(var i=0; i<cartArray.length-1; i++){var cartitm=new Array();cartitm=cartArray[i].split("|");for(var j=0; j<cartitm.length-1; j++){if(j==2||j==10||j==12||j==13) emCart+=cartitm[j]+"|";else if(j==3) emCart+=sPriceArray[i]+"|";else if(j==14) emCart+=cartitm[j]+"|]";}}return emCart;}var psufix="";if(extmail==1) psufix="_em";var orderpage="../cart/order"+psufix+".htm";function gooffer(){if(document.cart.cartData.value!=''){if(safari>0) doform();formkind="offer", subjectkind=subject_offer, sreply_header=reply_header_offer, sreply_footer=reply_footer_offer;outPage="../cart/offer"+psufix+".htm";parent.main.location.href=outPage;}}function gobuy(){if(document.cart.cartData.value!=''){if(safari>0) doform();formkind="order", subjectkind=subject, sreply_header=reply_header, sreply_footer=reply_footer;outPage=orderpage;parent.main.location.href=outPage;}}function format(expr, decplaces){if(parseFloat(expr)>0||expr=="0"){var str=""+Math.round (eval(expr) * Math.pow(10,decplaces));while (str.length <= decplaces){str="0"+str;}var decpoint=str.length - decplaces;return str.substring(0,decpoint)+"."+str.substring(decpoint,str.length);} else{return expr;}}function format2(expr, decplaces){if(parseFloat(expr)>0||expr=="0"){var str=""+Math.round (eval(expr) * Math.pow(10,decplaces));while (str.length <= decplaces){str="0"+str;}var decpoint=str.length - decplaces;leftstr=str.substring(0,decpoint);return leftstr+","+str.substring(decpoint,str.length);} else{return expr;}}function quantneu(ni, snewquant){var newCart="";cartArray=cartToArray();for(var i=0; i<cartArray.length-1; i++){if(ni==i){var ditm=new Array();ditm=cartArray[i].split("|");for(var j=0; j<ditm.length-2; j++){if(snewquant!=0) newCart+=ditm[j]+"|";}if(snewquant!=0) newCart+=snewquant+"|]";} else{newCart+=cartArray[i]+"]";}}document.cart.cartData.value=newCart;showCart2();}function noteItem(si, hnote){if(hnote!=1) thisitm=ArtikelArray[(si-1)];else thisitm=HArtikelArray[(si-1)];itemisda=checkNotes(thisitm);if(itemisda==0){document.cart.notesData.value+=thisitm+"]";if(hnote!=1) parent.main.document.images["my_"+si].src="../images/isinnotes.gif";showCartstart();}else if(itemisda==1) showNotes();}function checkNotes(citem){notesArray=notesToArray();for(var i=0; i<notesArray.length-1; i++){if(notesArray[i].indexOf(citem)>-1&&notesArray[i].indexOf(notestitle)==-1){return 1;}}return 0;}function deleteNote(ni){if(ni==0){newnotes="";if(dosaveNotes==1) setnotes();} else{notesArray=notesToArray();newnotes="";for(var i=0; i<notesArray.length-1; i++){if((i+1)!=ni){newnotes+=notesArray[i]+"]";}}}document.cart.notesData.value=newnotes;if(newnotes==""&&dosaveNotes==1) setnotes();showCartstart();showNotes();}function flipperPop(popform){eval(popform).focus();setTimeout("eval("+popform+").blur()", 250);setTimeout("eval("+popform+").focus()", 500);setTimeout("eval("+popform+").blur()", 750);setTimeout("eval("+popform+").focus()", 1000);}function buyItem(si){var newscart="";thisitm=ArtikelArray[(si-1)];thisitm=thisitm.replace(/<[^<]*>/gi," ");var sitm=new Array();sitm=itemSplit(thisitm);thisitm=sitm.join("|");avail=sitm[8];mform="parent.main.document.itemsform.item";quant=eval(mform+si+"quant.value");size=eval(mform+si+"size.value");plus=eval(mform+si+"plus.value");sizev=avail.charAt(avail.length - 2);if(quant <= 0||quant.indexOf('.')>-1||isNaN(quant)){alert("Bad Quantity!");}else if(plus==0&&avail >= 100){var pluspop=eval("parent.main.document.itemsform.itemplus"+si+".options[0].text");if(doPopAlertTxt==1) alert(PopAlertTxt+pluspop.replace(/:/,""));else flipperPop(mform+"plus" +si);}else if(size==0&&avail >= 10&&sizev>0){var sizepop=eval("parent.main.document.itemsform.itemspecial"+si+".options[0].text");if(doPopAlertTxt==1) alert(PopAlertTxt+sizepop.replace(/:/,""));else flipperPop(mform+"special" +si);}else{cartArray=cartToArray();var isda=0;for(var i=0; i<cartArray.length-1; i++){if(cartArray[i].indexOf(thisitm+size+"|"+plus)>-1){var ditm=new Array();ditm=cartArray[i].split("|");newscart+=thisitm+size+"|"+plus+"|"+(parseInt(ditm[14])+parseInt(quant))+"|]";isda=1;} else{newscart+=cartArray[i]+"]";}}if(isda==0) newscart+=thisitm+size+"|"+plus+"|"+quant+"|]";document.cart.cartData.value=newscart; showCart(); }}function clearCart(){pmloc=parent.main.location.href;zoomval=0;document.cart.cartData.value=""; showCart();if(pmloc.indexOf('cart/offer')>-1||pmloc.indexOf('cart/order')>-1) parent.main.location.href=pmloc;}function itmSplit(input){var itmArray=new Array();itmArray=input.split("|");return itmArray;}function zoomin(wert){zoomval=1;if(wert==0) showCart();if(wert==1) showCart2();}function zoomout(wert){zoomval=0;if(wert==0) showCart();if(wert==1) showCart2();}function getitmimg(wert, artnummer, gruppe, dowert, weit){var itemimg="", imagekind="gif", imaglink=artnummer, weite="";if(weit>0) weite=" width="+weit;if(wert.substring(1, 2)==1) imagekind="jpg";wert=wert.substring(0, 1);if(wert==2||wert==4||wert==6) imaglink=gruppe;if(wert>0&&wert<7&&dowert==1) itemimg="<img src=../itmimg/"+imaglink+"."+imagekind+weite+" border=0>";return itemimg;}function closemenu(mid,submid){if(dosingleopen==1){for(var i=0; i<iMenu.length; i++){if(iMenu[i].length>4&&i!=mid){iMenu[i][1]=0;for(var j=4; j<iMenu[mid].length; j++){if(iMenu[mid][j].length>4&&j!=submid) iMenu[mid][j][1]=0;}}}}}function setmenu(mid,submid){closemenu(mid,submid);mymenuisi=mid;if(submid==0){if(iMenu[mid][1]==0){iMenu[mid][1]=1;mymenuopen=1;} else{iMenu[mid][1]=0;mymenuopen=0;}} else{if(iMenu[mid][submid][1]==0) iMenu[mid][submid][1]=1;else iMenu[mid][submid][1]=0;}showCartstart();}function makeTable(cartArray, notes, change, isasw){if(cartFontSize<8) cartFontSize=9;var ifont="<font color='"+CartitmFontColor+"'>";var itm, extension, makeTotal=0, itmCount=0;halfwidth=parseInt(cartTableWidth/2);itemspace=cartTableWidth - 87;itm2space=cartTableWidth - 97;if(cartFont!="") staffelfont="<font face=arial,helvetica,geneva color="+staffelColor+">";else staffelfont="<font color="+staffelColor+">";var tab="";tab+="<CENTER>\n";tab+="<style type='text/css'><!--\n";tab+="a:link { color:"+cartFontColor+"; text-decoration:none;}\n";tab+="a:active { color:"+cartFontColor+"; text-decoration:none;}\n";tab+="a:visited { color:"+cartFontColor+"; text-decoration:none;}\n";tab+="a:hover { color:"+cartFontColor2+"; text-decoration:none;}\n";tab+="a.plainl:link { color:"+CartitmFontColor+"; text-decoration:none;}\n";tab+="a.plainl:active { color:"+CartitmFontColor+"; text-decoration:none;}\n";tab+="a.plainl:visited { color:"+CartitmFontColor+"; text-decoration:none;}\n";tab+="a.plainl:hover { color:"+CartitmFontColor+"; text-decoration:underline;}\n";tab+="TD { color:"+cartFontColor+"; font-size: "+cartFontSize+"px;";if(cartFont!="") tab+=" font-family: "+cartFont+";";tab+="}\n";tab+="--></style>\n";scarttab=tab+carttemp;scarttab=scarttab.replace(/silver/g, cartTableColor);scarttab=scarttab.replace(/<halfcartspacer>/g, imgleer+halfwidth+" height=1>");scarttab=scarttab.replace(/<imgmitteleer>/g, imgleer+"2 height=1>");scarttab=scarttab.replace(/<imgleer>/g, imgleer+"1 height=1>");ctc=cartTableColor;ctc_h=cartTableColor_h;ctc_d=cartTableColor_d;ctc2=cartTableColor2;ctc2_h=cartTableColor2_h;ctc2_d=cartTableColor2_d;cic=cartItemColor2;if(Cart3D==0) ctc_d=cartTableColor, ctc_h=cartTableColor, ctc2_d=cartTableColor2, ctc2_h=cartTableColor2;if(CartWired==1) cartItemColor2=cartTableColor, ctc_h=cartTableColor_d, ctc_d=cartTableColor_d, ctc2=cartTableColor, ctc2_d=cartTableColor_d, ctc2_h=cartTableColor_d;if(isasw){scarttab=scarttab.replace(/lightgreen|middlegray|greenul|leftgray/g, ctc_h);scarttab=scarttab.replace(/greenur|darkgreen/g, ctc_d);scarttab=scarttab.replace(/greenu_|rightgray/g, ctc);scarttab=scarttab.replace(/ bgcolor=redul | bgcolor=redu_ | bgcolor=redur /g, " ");scarttab=scarttab.replace(/=gray /g, "="+ctc_h+" ");scarttab=scarttab.replace(/khaki/g, ctc2_h);scarttab=scarttab.replace(/brown/g, ctc2_d);scarttab=scarttab.replace(/red/g, ctc2);scarttab=scarttab.replace(/green/g, ctc);scarttab=scarttab.replace(/\$selecttxt/g, bselecttxt);cartlink="<a href=\"Javascript\:parent.data.showCart()\" title='"+bcarttxt+"'>"+bcarttxt+"</a>";scarttab=scarttab.replace(/\$carttxt/g, cartlink);} else{scarttab=scarttab.replace(/khaki|rightgray|redul|middlegray/g, ctc_h);scarttab=scarttab.replace(/brown|redur/g, ctc_d);scarttab=scarttab.replace(/rightgray|redu_|red|leftgray/g, ctc);scarttab=scarttab.replace(/ bgcolor=greenul | bgcolor=greenu_ | bgcolor=greenur /g, " ");scarttab=scarttab.replace(/=gray /g, "="+ctc_h+" ");scarttab=scarttab.replace(/lightgreen/g, ctc2_h);scarttab=scarttab.replace(/darkgreen/g, ctc2_d);scarttab=scarttab.replace(/green/g, ctc2);scarttab=scarttab.replace(/\$carttxt/g, bcarttxt);aswlink="<a href=\"Javascript\:parent.data.showCartstart()\" title='"+bselecttxt+"'>"+bselecttxt+"</a>";scarttab=scarttab.replace(/\$selecttxt/g, aswlink);}scarttab=scarttab.replace(/black/g, ctc_d);cspacing=1;if(isasw) cspacing=0;aswtab="<TABLE border=0 CELLPADDING=2 CELLSPACING="+cspacing+" WIDTH="+(cartTableWidth+6)+">";if(isasw){aswtab+="<tr><TD width=3>"+imgleer+"1 height=1></TD><TD width=5>"+imgleer+"5 height=1></TD><TD width=5>"+imgleer+"5 height=1></TD><TD width=5>"+imgleer+"5 height=1></TD><TD width=10>"+imgleer+"3 height=1></TD><TD width=99%>"+imgleer+"130 height=1></TD></TR>";aswtab+="<tr><TD>"+imgleer+"1 height=1></TD><TD colspan=5>"+selecttitle+"</TD></TR>";var notesArray=notesToArray();var nle=notesArray.length-1;if(nle<0) nle=0;if(doNotesSel==1) aswtab+="<tr bgcolor="+cartItemColor2+"><TD align=right colspan=3><a href=\"Javascript\:parent.data.showNotes()\" title='"+notestitle+"'><img src=../images/notes.gif border=0></a></TD><TD colspan=3><a href=\"Javascript\:parent.data.showNotes()\" title='"+notestitle+"'>"+notestitle+" ["+nle+"]</a></TD></TR>";imenustart=0, imenuend=iMenu.length;if(dosinglemenu==1&&mymenuopen==1) imenustart=mymenuisi, imenuend=mymenuisi+1;for(var i=imenustart; i<imenuend; i++){aswcolor=cartItemColor2;if(iMenu[i][1]==1) aswcolor=cartTableColor;flink="<a href=javascript:parent.data.setmenu("+i+",0)>";plink="<a href=javascript:parent.data.hselect('"+iMenu[i][3]+"',0,"+iMenu[i][1]+")>";docpic="<img src=../images/ppfeil_.gif border=0 name=my_"+iMenu[i][3]+" width=12 height=12>";fpic="<img src=../images/spfeil_"+iMenu[i][1]+".gif border=0 width=12 height=12>";aswtab+="<tr bgcolor="+aswcolor+"><TD colspan=2>"+imgleer+"1 height=1></TD>";if(iMenu[i].length>4) aswtab+="<TD>"+flink+fpic+"</a></TD><TD colspan=3>"+flink+iMenu[i][2]+"</a></TD></TR>";else aswtab+="<TD>"+plink+docpic+"</a></TD><TD colspan=3>"+plink+iMenu[i][2]+"</a></TD></TR>";if(iMenu[i].length>4){if(iMenu[i][1]==1&&iMenu[i][4]!=0){for(var j=4; j<iMenu[i].length; j++){aswtab+="<tr bgcolor="+aswcolor+"><TD colspan=3>"+imgleer+"1 height=1></TD>";flink="<a href=javascript:parent.data.setmenu("+i+","+j+")>";plink="<a href=javascript:parent.data.hselect('"+iMenu[i][j][3]+"',0,"+iMenu[i][j][1]+")>";fpic="<img src=../images/spfeil_"+iMenu[i][j][1]+".gif border=0 width=12 height=12>";docpic="<img src=../images/ppfeil_.gif border=0 name=my_"+iMenu[i][j][3]+" width=12 height=12>";if(iMenu[i][j].length>4) aswtab+="<TD>"+flink+fpic+"</a></TD><TD colspan=3>"+flink+iMenu[i][j][2]+"</a></TD></TR>";else aswtab+="<TD>"+plink+docpic+"</a></TD><TD colspan=3>"+plink+iMenu[i][j][2]+"</a></TD></TR>";if(iMenu[i][j].length>4&&iMenu[i][j][4]!=0){if(iMenu[i][j][1]==1){for(var m=4; m<iMenu[i][j].length; m++){aswtab+="<tr bgcolor="+aswcolor+"><TD colspan=4>"+imgleer+"1 height=1></TD>";plink="<a href=javascript:parent.data.hselect('"+iMenu[i][j][m][3]+"',0,"+iMenu[i][j][m][1]+")>";docpic="<img src=../images/ppfeil_.gif border=0 name=my_"+iMenu[i][j][m][3]+" width=12 height=12>";aswtab+="<TD>"+plink+docpic+"</a></TD><TD>"+plink+iMenu[i][j][m][2]+"</a></TD></TR>";}}}}}}}if(dosinglemenu==1&&mymenuopen==1&&doallmenutxt==1){aswtab+="<tr bgcolor="+cartItemColor2+"><TD>"+imgleer+"1 height=1></TD><TD>"+imgleer+"5 height=1></TD><TD><img src=../images/spfeil_all.gif></TD>";aswtab+="<TD colspan=3>";aswtab+="<a href=javascript:parent.data.parent.data.setmenu("+mymenuisi+",0)>"+allmenutxt+"</a></TD></TR>";} else if(iMenu[i-1][1]==1){aswtab+="<tr bgcolor="+cartItemColor2+"><TD colspan=6>"+imgleer+"1 height=1></TD></TR>";}aswtab+="<tr><TD>"+imgleer+"1 height=1></TD><TD colspan=5>"+imgleer+"1 height=5></TD></TR>";aswtab+="<tr><TD>"+imgleer+"1 height=1></TD><TD colspan=5>"+pagetitle+"</TD></TR>";for(var i=1; i <= seiteneintraege; i++){target="main";aswseitenx=eval("auswahlseiten"+i);offset=aswseitenx.indexOf("[");aswpagetxt=aswseitenx.substring(0, offset);aswpagelink=aswseitenx.substring(offset+1, aswseitenx.length);if(aswpagelink.indexOf(",")!=-1){offsettarget=aswpagelink.indexOf(",");target=aswpagelink.substring(offsettarget+1, aswpagelink.length);aswpagelink=aswpagelink.substring(0, offsettarget);}aswtab+="<tr><TD>"+imgleer+"1 height=1></TD><TD>"+imgleer+"5 height=1></TD><TD><img src=../images/ppfeil_.gif></TD>";aswtab+="<TD colspan=3>";aswtab+="<a href=\""+aswpagelink+"\" target='"+target+"' title='"+aswpagetxt+"'>"+aswpagetxt+"</a></TD></TR>";}aswtab+="<tr><TD>"+imgleer+"1 height=15></TD><td align=right colspan=5>"+troptxt+"&nbsp;<\/td><\/tr>";aswtab+="</table>";} else{aswtab+="<tr><TD>"+imgleer+itemspace+" HEIGHT=1></TD><TD>"+imgleer+"12 HEIGHT=1></TD><TD>"+imgleer+cartPriceWidth+" HEIGHT=1></TD></tr>";aswtab+="<TR><td>"+itemNaming+"</font></td><td align=center>"+qtyNaming+"</td><td align=right>";if(change) aswtab+=bchangetxt;else aswtab+=priceNaming;aswtab+="</font></td></TR>\n";for(var i=0; i<cartArray.length-1; i++){itm=itmSplit(cartArray[i]);sdeliv=itm[7];if(sdeliv!=1) sdeliv!=0;sPrice=itm[3], pricevaltxt='';if(itm[14] >= stafel2&&dostafel2==1&&itm[4]!='') sPrice=itm[4], pricevaltxt=staffelfont+'<BR>'+staffel2txt+'</font>';if(itm[14] >= stafel3&&dostafel3==1&&itm[5]!='') sPrice=itm[5], pricevaltxt=staffelfont+'<BR>'+staffel3txt+'</font>';if(itm[14] >= stafel4&&dostafel4==1&&itm[6]!='') sPrice=itm[6], pricevaltxt=staffelfont+'<BR>'+staffel4txt+'</font>';if(zoomval==1) pricevaltxt='';sPrice=format(sPrice, 2);sPriceArray[i]=sPrice;aswtab+="<TR";aswtab+=" bgcolor='"+cartItemColor+"'";aswtab+="><TD valign=top><table border=0 CELLPADDING=0 CELLSPACING=0><tr>";itmlink="<a href=\"Javascript\:parent.data.hselect('"+itm[10]+"','"+itm[2]+"')\" class=\"plainl\">";if(zoomval==0&&showCartItemImg==1) {itmimg=getitmimg(itm[9],itm[2],itm[10],showCartItemImg,CartItemImgWidth);aswtab+="<td valign=top>"+itmlink+itmimg+"</a></td><td>"+imgleer+"2 HEIGHT=1></td>";}var itemshort=itm[0];if(zoomval==1&&itemshort.length>zoomintxtlength) itemshort=shortentxt(zoomintxtlength,itemshort);aswtab+="<td valign=top>"+itmlink+ifont+itemshort+"";if(zoomval==0){aswtab+=" (";aswtab+=itm[2];if(itm[13]!=0||itm[12]!=0) aswtab+=", ";if(itm[13]!=0) aswtab+=itm[13];if(itm[13]!=0&&itm[12]!=0) aswtab+=", ";if(itm[12]!=0) aswtab+=itm[12];aswtab+=")";}aswtab+="</a></td></tr></table></TD>";if(parseFloat(sPrice)>0){extension=format((itm[14] * sPrice),2);makeTotal+=parseFloat(extension);}if(change){plusqu=parseFloat(itm[14])+1;minusqu=parseFloat(itm[14]) - 1;aswtab+=tdc+"valign=top>"+ifont+itm[14]+"</TD>"+tdc+"valign=top><a href='Javascript\:parent.data.quantneu("+i+","+plusqu+")'><img src=../images/plusit.gif border=0 width=12 height=12></a>"+imgleer+"3 HEIGHT=1><a href='Javascript\:parent.data.quantneu("+i+","+minusqu+")'><img src=../images/minusit.gif border=0 width=12 height=12></a>"+imgleer+"3 HEIGHT=1><a href='Javascript\:parent.data.quantneu("+i+",0)' title='"+bdeletetxt+"'><img src=../images/deleteit.gif border=0 width=14 height=12></a>";}else{aswtab+=tdc+"valign=top>"+ifont+itm[14]+"</font></TD><TD align=right valign=top>"+ifont+format2(sPrice,2)+pricevaltxt+"</font>";}aswtab+="</TD></TR>";}if(cartArray.length==0){aswtab+="<tr";aswtab+=" BGCOLOR='"+cartItemColor+"'";aswtab+="><TD colspan=3 align=center>"+ifont+txtemptycart+"</Font></TD></tr>";}if(parseFloat(makeTotal)>0){aswtab+="<TR><TD colspan=2>"+totalNaming+"</font></TD>";aswtab+="<td align=right>"+format2(makeTotal,2)+"</td></TR>";totalEURO=0;totalEURO=makeTotal / EUROrate;if(showCartEuro==1){aswtab+="<TR><TD colspan=2>"+totalEuroNaming+"</TD>";aswtab+="<td align=right>"+format2(totalEURO,2)+"</td></TR>";}}aswtab+="<tr><td align=center colspan=3><br>";var modus=0;if(change) modus=1;for(var p=1; p<7-cartArray.length; p++){ if(zoomval==0) aswtab+="<br>"; }if(document.cart.cartData.value!=""&&zoomval==0) aswtab+="<a href=\"Javascript:parent.data.zoomin("+modus+")\" title='Minimize'><img src=../images/maxi.gif border=0></a>";if(document.cart.cartData.value!=""&&zoomval==1) aswtab+="<a href=\"Javascript:parent.data.zoomout("+modus+")\" title='Maximize'><img src=../images/mini.gif border=0></a>";for(var p=1; p<5-cartArray.length; p++){ if(zoomval==0) aswtab+="<br>"; }aswtab+="<br><br>";if(isnrrg.length==null) aswtab+=carttxt+""+"<br><br></font>";aswtab+="</td></tr>";aswtab+="<tr><td align=center valign=bottom colspan=3>";aswtab+="<table border=0 cellpadding=0 cellspacing=0 width="+(cartTableWidth-8)+"><tr>";if(doimgbuttons==1){if(change){aswtab+="<td><a href=\"Javascript\:parent.data.clearCart()\" title='"+bdeletetxt+"'><img src=../images/clearall.gif border=0 title='"+bdeletetxt+"'></a></td>";aswtab+="<td align=right><a href=\"Javascript\:parent.data.showCart()\" title='"+bchangetxt+" OK'><img src=../images/ok.gif border=0 title='"+bchangetxt+" OK'></a></td>";} else{aswtab+="<td><a href=\"Javascript\:parent.data.showCart2()\" title='"+bchangetxt+"'><img src=../images/change.gif border=0 title='"+bchangetxt+"'></a></td>";aswtab+="<td align=center><img src=../images/leer.gif height=1 width=2></a></td>";if(showOfferButton==1) aswtab+="<td align=right><a href=\"Javascript\:parent.data.gooffer()\" title='"+boffertxt+"'><img src=../images/angeb.gif border=0 title='"+boffertxt+"'></a></td>";aswtab+="</td><td align=right><a href=\"Javascript\:parent.data.gobuy()\" title='"+bordertxt+"'><img src=../images/bestell.gif border=0 title='"+bordertxt+"'></a></td>";}} else{if(Button3D==0) myblack=cartFontColor, myblackhell=cartFontColor;else myblack=cartButtonColor_d, myblackhell=cartButtonColor_h;cbc=cartButtonColor;cbc2=cartButtonColor2;if(CartWired==1) cbc=cartTableColor, cbc2=cartTableColor, myblack=cartTableColor_d, myblackhell=cartTableColor_d;aswtab+="<td align=left>";dallbut=buttontemp.replace(/<imgleer>/g, imgleer+"1 height=1>");dallbut=dallbut.replace(/<imgspacer>/g, imgleer+"60 height=1>");dallbut=dallbut.replace(/blue/g, myblackhell);dallbut=dallbut.replace(/navy/g, myblack);dallbut=dallbut.replace(/red/g, cbc);ddeletcompltxt="<a href=\"Javascript\:parent.data.clearCart()\" title='"+bdeletetxt+"'>&nbsp;&nbsp;"+bdeletetxt+"&nbsp;&nbsp;</a></font>";dbut=dallbut.replace(/<btxt>/, ddeletcompltxt);dchangecompltxt="<a href=\"Javascript\:parent.data.showCart2()\" title='"+bchangetxt+"'>&nbsp;&nbsp;"+bchangetxt+"&nbsp;&nbsp;</a></font>";cbut=dallbut.replace(/<btxt>/, dchangecompltxt);if(Button3D==0) myblack=cartFontColor, myblackhell=cartFontColor;else myblack=cartButtonColor2_d, myblackhell=cartButtonColor2_h;if(CartWired==1) myblack=cartTableColor_d, myblackhell=cartTableColor_d;okallbut=buttontemp.replace(/<imgleer>/g, imgleer+"1 height=1>");okallbut=okallbut.replace(/<imgspacer>/g, imgleer+"60 height=1>");okallbut=okallbut.replace(/blue/g, myblackhell);okallbut=okallbut.replace(/navy/g, myblack);okallbut=okallbut.replace(/red/g, cbc2);okcompltxt="<a href=\"Javascript\:parent.data.showCart()\" title='"+bchangetxt+" OK'>&nbsp;&nbsp;OK&nbsp;&nbsp;</a></font>";okbut=okallbut.replace(/<btxt>/, okcompltxt);ocompltxt="<a href=\"Javascript\:parent.data.gobuy()\" title='"+bordertxt+"'>&nbsp;&nbsp;"+bordertxt+"&nbsp;&nbsp;</a></font>";obut=okallbut.replace(/<btxt>/, ocompltxt);acompltxt="<a href=\"Javascript\:parent.data.gooffer()\" title='"+boffertxt+"'>&nbsp;&nbsp;"+boffertxt+"&nbsp;&nbsp;</a></font>";abut=okallbut.replace(/<btxt>/, acompltxt);if(change){aswtab+=dbut;aswtab+="</td><td align=right>";aswtab+="</td><td align=right>";aswtab+=okbut;} else{aswtab+=cbut;aswtab+="</td><td align=right>";if(showOfferButton==1){aswtab+=abut;aswtab+="</td><td align=right>";}aswtab+=obut;}}aswtab+="</tr></table>";aswtab+="</td></tr></table>";}scarttab=scarttab.replace(/\$innercart/g, aswtab);tab=scarttab;return tab;}var cartArray=new Array();function notesToArray(){var notesArray=new Array();var data=document.cart.notesData.value;if(data.length>0) notesArray=data.split("]");return notesArray;}function cartToArray(){var cartArray=new Array();var data=document.cart.cartData.value;if(data.length>0) cartArray=data.split("]");return cartArray;}function showCart(){var cartArray=cartToArray();carttab=makeTable(cartArray, false, false, false);parent.basket.location.href='../cart/cart.htm';parent.basket.document.close();}function showCart2(){var cartArray=cartToArray();carttab=makeTable(cartArray, false, true, false);parent.basket.location.href='../cart/cart.htm';parent.basket.document.close();}function showCartstart(){var cartArray=cartToArray();carttab=makeTable(cartArray, false, false, true, '0');parent.basket.location.href='../cart/cart.htm';parent.basket.document.close();}function checkOut2(){var cartArray=cartToArray();parent.main.document.write(makeTablebuy(cartArray, false));parent.main.document.close();}function start(){showCart();}function start2(){showCart2();}var artikeldata="", artikeldatei="", artikeldateiname="";var gruppe="", nextpages=0, nxtlstart, nxtlend, searchvalue="", searchvalue2="", searchitmnr="", pluskindvalue=0, searchkind=0;var searchclass="", searchclassclass="", arttxt="";var selgruppe="";var donext=0;var myi=0;var ArtikelArray=new Array();var NosortArtArray=new Array();var HArtikelArray=new Array();function nextitems(start, end){donext=1;nextpages++;nxtlstart=start;nxtlend=end;parent.main.location.href="aload.htm";}function replaceUML(inword){var wort=inword;wort=wort.replace(/&/,'&amp;');wort=wort.replace(/ä/,'&auml;');wort=wort.replace(/Ä/,'&Auml;');wort=wort.replace(/ü/,'&uuml;');wort=wort.replace(/Ü/,'&Uuml;');wort=wort.replace(/ö/,'&ouml;');wort=wort.replace(/Ö/,'&Ouml;');wort=wort.replace(/ß/,'&szlig;');wort=wort.replace(/Š/,'&auml;');wort=wort.replace(/€/,'&Auml;');wort=wort.replace(/Ÿ/,'&uuml;');wort=wort.replace(/†/,'&Uuml;');wort=wort.replace(/š/,'&ouml;');wort=wort.replace(/…/,'&Ouml;');wort=wort.replace(/§/,'&szlig;');return wort;}exsdata="";function dcrpt(str){var enc_str="";for(i=0; i<str.length; i+=2){ enc_chr=parseInt(parseInt(str.substring(i, i+2), 16)); enc_str+=String.fromCharCode(enc_chr);}return enc_str;}var carttxt="556e7265676973746572656420547269616c";var troptxt="3c6120687265663d22687474703a2f2f7777772e6f70656e73746f72652e6465222074617267";troptxt+="65743d225f626c616e6b22207469746c653d224f70656e73746f72652056657273696f6e2050342";troptxt+="e787878223e26636f70793b3c2f613e";troptxt=unescape(dcrpt(troptxt));troptxt=troptxt.replace(/xxx/,eval(unescape(dcrpt("703476657273696f6e"))));carttxt=unescape(dcrpt(carttxt));function goexsresult(sgroup, catchw, data){doshowNotes=false; searchclassname=sgroup; searchvalue=replaceUML(catchw);exsdata=data;issearch=true;donext=0;nextpages=0;nxtlend=ppage;nxtlstart=1;nextpages++;myloc=document.location.href.replace(/\\/,'/');aloadloc=myloc.replace(/\/cart\/data.htm/,'/etc/aload.htm');parent.main.location.href=aloadloc;}function goresult(sgroup, catchw, catchw2, catchwnr, pluskindval, isitmnr){if(sgroup=="0") return flipperPop("parent.main.document.itemsform.searchpopup");allcatchw=catchw+catchw2+catchwnr;if(allcatchw.search(/\||\x20\x20\x20|;|<|>|\x27|\x22|\(|\)/g)!=-1) return shownoArtikel(1);if(isitmnr==0&&pluskindval==0){catchw=catchw.replace(/\x20\x20/g," ");if(catchw.length<2||catchw=="br") return shownoArtikel(1);} else if(isitmnr==0&&pluskindval>0){catchw=catchw.replace(/\x20\x20/g," "), catchw2=catchw2.replace(/\x20\x20/g," ");if(catchw.length<2||catchw2.length<2||catchw=="br"||catchw2=="br") return shownoArtikel(1);} else if(isitmnr==1){catchwnr=catchwnr.replace(/\x20\x20/g," ");if(catchwnr.length<2||catchwnr=="br") return shownoArtikel(1);}if(extsearch==1){surl=extsearchpath+"?";surl+="ShopDir="+ShopDir;surl+="&searchpopup="+escape(sgroup);surl+="&searchcatchw="+escape(catchw);surl+="&searchcatchw2="+escape(catchw2);surl+="&sitmnr="+escape(catchwnr);surl+="&plusc2="+pluskindval;surl+="&searchkind="+isitmnr;parent.main.location=surl;} else{doshowNotes=false;issearch=true;donext=0;nextpages=0;nxtlend=ppage;nxtlstart=1;nextpages++;searchclass=sgroup;searchvalue=replaceUML(catchw);searchvalue2=replaceUML(catchw2);searchitmnr=catchwnr;pluskindvalue=pluskindval;searchkind=isitmnr;parent.main.location.href="aload.htm";}}function showNotes(){data=document.cart.notesData.value;if(data!=''){issearch=true;doshowNotes=true;donext=0;nextpages=0;nxtlend=ppage;nxtlstart=1;nextpages++; searchclassname=notestitle; searchvalue="";parent.main.location.href="../etc/aload.htm";if(infotarget.location.href!=infodefault) infotarget.location.href=infodefault;}else{if(doshowNotes==true) parent.main.location.href="../etc/front.htm";doshowNotes=false;}}function doasw(gruppe, thistxt){doshowNotes=false;donext=0;selgruppe=gruppe;nextpages=0;nxtlend=ppage;nxtlstart=1;nextpages++;artnr=gruppe;arttxt=thistxt;artikeldatei=gruppe;artikeldateiname=gruppe;}function startinfodefault(){if(doselinfo==1&&doshowinfo==0&&infotarget.location.href!=infodefault) infotarget.location.href=infodefault;}var iselecturl="items.htm";var doshowinfo=0;function iselect(gruppe, grtxt, pfad, gogoitm, thisgoartnummer, sinfo){doshowinfo=0;doaswimg(gruppe);doshowNotes=false;issearch=false;thisgoitmval=gogoitm;thisartnummer=thisgoartnummer;thistxtarttxt="";thistxtarttxt+=getaswtxt(gruppe);doasw(gruppe, thistxtarttxt);goanker="";if(thisgoitmval==1) goanker="#itmanchor"+thisartnummer;iselecturl=pfad+"items.htm"+goanker;parent.main.location.href=pfad+"aload.htm";if(doselinfo==1&&sinfo==1){doshowinfo=1;infotarget.location.href="../infos/"+gruppe+"_.htm";}}var vormygr="", ITMicon="ppfeil_.gif";function doaswimg(mygr){ITMicon="ppfeil_r.gif";var pbdi=parent.basket.document.images;if(pbdi["my_"+vormygr]) pbdi["my_"+vormygr].src="../images/ppfeil_.gif";if(pbdi["my_"+mygr]) pbdi["my_"+mygr].src="../images/"+ITMicon;vormygr=mygr;}var hinfo=0;function hselect(gruppe, thisartnummer, sinfo){hinfo=0;thisisok=false;if(safari>0) doform();var noda=typeof thisartnummer;var sida=typeof sinfo;issearch=false;pmloc=parent.main.location.href;hpfad="../etc/";thisisok=false;if(thisartnummer==0||thisartnummer==""||noda=="undefined") thisartnummer='', isthisartnummer=0;else isthisartnummer=1;grtxt=getaswtxt(gruppe);if(sida=="undefined") sinfo=hinfo;if(thisisok==true) iselect(gruppe, grtxt, hpfad, isthisartnummer, thisartnummer, sinfo);else parent.main.location.href="../etc/noitems.htm";}isgototxtsm="";function getaswtxt(gruppe){thisisok=false;thisgrtxt="";for(var i=0; i<iMenu.length; i++){if(gruppe==iMenu[i][3]) thisisok=true, thisgrtxt=iMenu[i][2], isgototxtsm=thisgrtxt, hinfo=iMenu[i][1];if(iMenu[i].length>4){for(var j=4; j<iMenu[i].length; j++){if(gruppe==iMenu[i][j][3]) thisisok=true, thisgrtxt=iMenu[i][2]+vargodiv+iMenu[i][j][2], isgototxtsm=iMenu[i][j][2], hinfo=iMenu[i][j][1];if(iMenu[i][j].length>4){for(var m=4; m<iMenu[i][j].length; m++){if(gruppe==iMenu[i][j][m][3]) thisisok=true, thisgrtxt=iMenu[i][2]+vargodiv+iMenu[i][j][2]+vargodiv+iMenu[i][j][m][2], isgototxtsm=iMenu[i][j][m][2], hinfo=iMenu[i][j][m][1];}}}}}var thisgrtxtArray=new Array();thisgrtxtArray=thisgrtxt.split(vargodiv);if(thisgrtxt.length>45){for(var m=0; m<thisgrtxtArray.length-2; m++){thisgrtxtArray[m]=shortentxt(14,thisgrtxtArray[m]);}}thisgrtxtArray[thisgrtxtArray.length-1]="<b>"+thisgrtxtArray[thisgrtxtArray.length-1]+"</b>";thisgrtxt=thisgrtxtArray.join(vargodiv);return thisgrtxt;}function ArtikelToArray(){var offset=0;var ArtikelArray=new Array();NosortArtArray=new Array();if(doshowNotes==true){data=document.cart.notesData.value;var counter=0;while (data.length>0){offset=data.indexOf("]");ArtikelArray[counter++]=data.substring(0, offset);data=data.substring(offset+1, data.length);}} else if(issearch==true&&extsearch==1){data=exsdata;var counter=0;while (data.length>0){offset=data.indexOf("]");ArtikelArray[counter++]=data.substring(0, offset);data=data.substring(offset+1, data.length);}} else{if(issearch==true){var ssearchvalue=new RegExp(searchvalue, "gi");var ssearchvalue2=new RegExp(searchvalue2, "gi");var ssearchitmnr=new RegExp(searchitmnr, "gi");}var offset=0;data=parent.main.artikeldaten;var counter=0;if(data==null){return ArtikelArray;} else{while (data.length>0){offset=data.indexOf("]");glangtext=data.substring(0, offset);if(issearch==false){ArtikelArray[counter++]=data.substring(0, offset);}else if(issearch==true){glangtext=data.substring(0, offset).toLowerCase();if(searchkind==0&&pluskindvalue==0){if(glangtext.search(ssearchvalue)!=-1){ArtikelArray[counter++]=data.substring(0, offset);}}else if(searchkind==0&&pluskindvalue==1){if(glangtext.search(ssearchvalue)!=-1&&glangtext.search(ssearchvalue2)!=-1){ArtikelArray[counter++]=data.substring(0, offset);}}else if(searchkind==0&&pluskindvalue==2){if(glangtext.search(ssearchvalue)!=-1||glangtext.search(ssearchvalue2)!=-1){ArtikelArray[counter++]=data.substring(0, offset);}}else if(searchkind==1){if(glangtext.search(ssearchitmnr)!=-1){ArtikelArray[counter++]=data.substring(0, offset);}}}data=data.substring(offset+1, data.length);}}}for(var i=0; i<ArtikelArray.length; i++){ NosortArtArray[i]=ArtikelArray[i]; }if(dosort==1) ArtikelArray.sort(compPrice);if(thisgoitmval==1) lookforCounter(ArtikelArray);return ArtikelArray;}function sortbyPrice(i){if(i==0){for(var j=0; j<ArtikelArray.length; j++){ArtikelArray[j]=NosortArtArray[j];}dosort=1, ArtikelArray.sort(compPrice);} else{for(var j=0; j<ArtikelArray.length; j++){ArtikelArray[j]=NosortArtArray[j];}dosort=0;}nextitems(1,ppage);}function lookforCounter(ArtikelArray){for(var i=0; i<ArtikelArray.length; i++){if(ArtikelArray[i].indexOf("|"+thisartnummer+"|")>-1) thisgoitmnr=i+1;}}function compPrice(a,b){aprice=0, bprice=0;var aArray=new Array(), bArray=new Array();if(a!=""){aArray=a.split("|");if(isNaN(aArray[3])!=true) aprice=parseFloat(aArray[3]);}if(b!=""){bArray=b.split("|");if(isNaN(bArray[3])!=true) bprice=parseFloat(bArray[3]);}return aprice - bprice;}function showArtikel(){if(donext==0) ArtikelArray=ArtikelToArray();if(ArtikelArray.length<1) {shownoArtikel();} else{if(issearch==true) parent.main.document.writeln(makeTableItems(ArtikelArray, true, false));else parent.main.document.writeln(makeTableItems(ArtikelArray, false, false));donext=1;parent.main.document.close();}}function shownoArtikel(error){if(issearch==true||error==1) parent.main.location.href="noresult.htm";else parent.main.location.href="noitems.htm";parent.main.document.close();}function itemSplit(input){var itemArray=new Array();itemArray=input.split("|");myAPrice=itemArray[3];if(!(isNaN(parseInt(myAPrice)))){myAPrice=myAPrice.replace(/ /g,"");if(myAPrice.indexOf(",")!=-1) myAPrice=myAPrice.replace(/,/g,".");}itemArray[3]=myAPrice;return itemArray;}function replaceval(rtxt,dosval){var data=rtxt.toLowerCase();var sval=dosval.toLowerCase();var repltxt="";var rpos=0;var reg=new RegExp(sval+"[^<]*>");while (data.length>0&&data.indexOf(sval)>-1){if(data.indexOf(sval)>-1){rpos=data.indexOf(sval);if(data.search(reg)==-1) repltxt+=rtxt.substring(0,rpos)+"<u>"+rtxt.substring(rpos, rpos+sval.length)+"<\/u>";else repltxt+=rtxt.substring(0,rpos)+rtxt.substring(rpos, rpos+sval.length);data=data.substring(rpos+sval.length, data.length);rtxt=rtxt.substring(rpos+sval.length, rtxt.length);}}repltxt+=rtxt;return repltxt;}var ppage=itemsperpage;function doppage(pval){ppage=pval;}function makeTableItems(ArtikelArray, search, highs){var j=0, Tcolor="", Bold="", SearchTopHead="";var ItemsFontface, ItemsHeadFontface;if(ItemsFont!="") ItemsFontface="face=\'"+ItemsFont+"\'";ITMFont="<font "+ItemsFontface+" size='"+ItemsFontSize+"' color='"+ItemsFontColor+"'>";if(ItemsHeadFont!="") ItemsHeadFontface="face=\'"+ItemsHeadFont+"\'";if(ItemsHeadFontSize=="") ItemsHeadFontSize=ItemsFontSize;if(ItemsHeadFontColor=="") ItemsHeadFontColor="#000000";if(ItemsFontColor=="") ItemsFontColor="#000000";ITMHeadFont="<font "+ItemsHeadFontface+" size='"+ItemsHeadFontSize+"' color='"+ItemsHeadFontColor+"'>";ITMNrFont="<font "+ItemsHeadFontface+" size='"+ItemsHeadFontSize+"' color='"+Tabletabline+"'>";var sizevalue=0, item, tabtitle="", Twidth=ItemsWidth;if(!(highs)&&itmdo2cols==1) Twidth=parseInt(ItemsWidth*0.66);txtspacer=" <img src=../images/leer.gif width="+parseInt(Twidth*0.33)+" height=1> ";if(nxtlend>ArtikelArray.length) nxtlend=ArtikelArray.length;if(highs&&dohigh2col==1) Twidth=parseInt(ItemsWidth*0.5);else if(highs) Twidth=hightabwidth;var tab="";vargotab=ITMFont;svargo=t000+"<tr>";ppvargo="";if(thisgoitmval==1){isnextfloat=format(thisgoitmnr/ppage, 2);isnextint=parseInt(isnextfloat);if(isnextfloat>isnextint) nxtlstart=isnextint * ppage+1;else nxtlstart=((isnextint - 1) * ppage)+1;if(nxtlstart <= ppage) nxtlstart=1;nxtlend=nxtlstart+ppage - 1;if(nxtlend>ArtikelArray.length) nxtlend=ArtikelArray.length;}ivar=ArtikelArray.length/ppage;ivarInt=parseInt(ArtikelArray.length/ppage);if(ivarInt<ivar) ivar=ivarInt+1;else ivar=ivarInt;trennung=" ";if(nxtlstart>1) vargotab+="&nbsp;<a href=\"javascript:parent.data.nextitems("+(nxtlstart-ppage)+","+(nxtlstart-1)+")\" title='"+(nxtlstart-ppage)+" - "+(nxtlstart-1)+"'>&lt;&lt;</a>"+trennung;else vargotab+="&nbsp;";sstart=1;ssende=ppage;for(var k=0; k<ivar; k++){if(ssende>ArtikelArray.length) ssende=ArtikelArray.length;if(nxtlstart!=sstart) vargotab+="<a href=\"javascript:parent.data.nextitems("+sstart+","+ssende+")\" title='"+sstart+" - "+ssende+"'>";if(nxtlstart!=sstart&&ivar<10) vargotab+=k+1;else if(nxtlstart!=sstart&&ivar>9&&ivar<20) vargotab+="&middot;";else if(nxtlstart==sstart) vargotab+="<u>"+(k+1)+"<\/u>";if(nxtlstart!=sstart) vargotab+="</a>";vargotab+=trennung;sstart+=ppage;if(ssende<ArtikelArray.length) ssende+=ppage;}ffend=nxtlstart+ppage+ppage-1;if(ffend>ArtikelArray.length) ffend=ArtikelArray.length;if(nxtlstart+ppage<ArtikelArray.length+1) vargotab+="<a href=\"javascript:parent.data.nextitems("+(nxtlstart+ppage)+","+ffend+")\" title='"+(nxtlstart+ppage)+" - "+ffend+"'>&gt;&gt;</a>&nbsp;";if(ArtikelArray.length<20) vargotab+="<a href=\"javascript:parent.data.nextitems(1,"+ArtikelArray.length+")\" title='1 - "+ArtikelArray.length+"'>&lt;&gt;</a>&nbsp;";vargotab+="</font>";isvargo=" "+nxtlstart+"-"+nxtlend+"&nbsp;/&nbsp;"+ ArtikelArray.length;if(ArtikelArray.length==0||nxtlstart==1&&nxtlend==ArtikelArray.length) vargotab=ITMFont+isvargo;tbcolor="";itmTHeadcolor="='"+ItemsHeadColor+"'";if(search){if(doshowNotes){svargo+="<td><a href=\"javascript\:parent.data.deleteNote(0)\" title='"+bdeletetxt+"'><img src=../images/notesdelete.gif border=0><\/a><\/td><td><img src=../images/divide.gif border=0><\/td>";if(dosaveNotes==1){cnotesok="";if(cnotes==document.cart.notesData.value) cnotesok="ok";svargo+="<td><a href=\"javascript\:parent.data.setnotes()\" title='"+ncookietxt+"'><img src=../images/notessave"+cnotesok+".gif name=notessave border=0><\/a><\/td><td><img src=../images/divide.gif border=0><\/td>";}} else{svargo+="<td><img src=../images/lupe_kl.gif align=top border=0><\/td>";}if(searchkind==0&&pluskindvalue==0) issearchvalue=searchvalue;else if(searchkind==0&&pluskindvalue>0) issearchvalue=searchvalue+" &amp; "+searchvalue2;else if(searchkind==1) issearchvalue=searchitmnr;if(doshowNotes) svargo+="<td>"+ITMFont+"&nbsp;"+searchclassname+"<b>"+issearchvalue+"</b><\/font><\/td>";else svargo+="<td>"+ITMFont+"&nbsp;"+searchclassname+vargodiv+"<b>"+issearchvalue+"</b><\/font><\/td>";} else{svargo+="<td><IMG SRC=../images/"+ITMicon+" border=0><\/td><td>"+ITMFont+"&nbsp;"+arttxt+"<\/td>";}svargo+="<td>"+ITMFont+"&nbsp;"+isvargo+"<\/font><\/td>";if(showimgicon==1||showlayouticon==1) svargo+="<td><IMG SRC=../images/divide.gif><\/td>";doitmdoimg=(itmdoimg-1)*(itmdoimg-1);if(showimgicon==1) svargo+="<td><a href=\"JavaScript:parent.data.doitmdesign(3,3,3,3,"+doitmdoimg+")\" title=\""+showimgtxt+"\"><IMG SRC=../images/imgmode_"+doitmdoimg+".gif border=0></a><\/td>";doitmdo2cols=(itmdo2cols-1)*(itmdo2cols-1);if(showlayouticon==1) svargo+="<td><a href=\"JavaScript:parent.data.doitmdesign(3,3,3,"+doitmdo2cols+",3)\" title=\""+showlayouttxt+"\"><IMG SRC=../images/colmode_"+doitmdo2cols+".gif border=0></a><\/td>";if(showpriceicon==1) svargo+="<td><a href=\"JavaScript:parent.data.sortbyPrice("+dosort+")\" title=\""+showpricetxt+"\"><IMG SRC=../images/pricemode_"+dosort+".gif border=0></a><\/td>";svargo+="<\/tr><\/table>";headwired=0;tabrandcol=itmTHeadcolor;if(itmtabsolid==1) tabrandcol="='"+Tabletabline+"'";topvargo=setuptabs(toptemp,ItemsWidth,itmTHeadcolor,tabrandcol,svargo,"");mydiv="<IMG SRC=../images/divide.gif>";botvargo=setuptabs(bottemp,ItemsWidth,itmTHeadcolor,tabrandcol,vargotab,mydiv);if(!(highs)) tab+=topvargo;if(!(highs)&&showppagevars==1){ppvargo+="<nobr>"+ITMFont;for(p=0;p<5;p++){myp=eval("itmpp_"+p);if(ppage!=myp) ppvargo+="<a href=\"JavaScript:parent.data.doppage("+myp+"),parent.data.nextitems(1,"+myp+")\" title=\""+myp+" "+showperpagetxt+"\">";else ppvargo+="<u>";ppvargo+=myp;if(ppage!=myp) ppvargo+="<\/a>";else ppvargo+="<\/u>";ppvargo+="&nbsp;";}ppvargo+="&nbsp;"+showperpagetxt+"&nbsp;<\/font>";}botvargo=botvargo.replace(/<replthis2>/, ppvargo);if(highs) nxtlstart=1, nxtlend=ArtikelArray.length;divline="<IMG SRC=../images/divideline.gif>";if(!(highs)&&itmdo2cols==1) tab+=divline+"<br><br>";if((highs&&dohigh2col==1)||!(highs)&&itmdo2cols==1) tab+="<table border=0 cellpadding=5 cellspacing=0>";myi=0;for(var i=nxtlstart-1; i<nxtlend; i++){myi++;item=itemSplit(ArtikelArray[i]);isCNote=item[0].indexOf(notestitle);var imagekind="gif";if(item[9].substring(1, 2)==1) imagekind="jpg";item[9]=item[9].substring(0, 1);var itemimg="", isitemimg=0, itemimgasw="", gruppe=item[10], sgotogroup="";var availval=item[8].substring(item[8].length - 1, item[8].length), artnummer=item[2];if(availval==""||availval>3||availval<1) availval=2;isgototxt="";if(showgotogroup==1){hpfad="";thisisok=false;isgototxt=getaswtxt(item[10]);if(thisisok==true) sgotogroup="<a href=\"JavaScript:parent.data.hselect('"+item[10]+"','"+artnummer+"')\" title='"+isgototxtsm+"'>";}if(item[0]=='') item[0]=shortentxt(36,item[1]);if(highs) item[1]=shortentxt(hightxtlaenge,item[1]);itmtext=ITMHeadFont;replheader=0;itmtext+="<b>";if(!(highs)&&thisgoitmval==1&&i==thisgoitmnr-1) itmtext+="<img src=../images/ishigh.gif align=bottom border=0>&nbsp;", thisgoitmval=0, replheader=1;itmtext+=item[0];itmtext+="</b>";itmtext+="</font>";itmtext+=ITMFont+"<br>"+item[1];if(!(highs)&&showitmnr==1) itmtext+=" ("+item[2]+")";itmtext+="</font>";if(search&&doshowNotes==false){itmtext=replaceval(itmtext,searchvalue);if(searchvalue2) itmtext=replaceval(itmtext,searchvalue2);if(searchitmnr) itmtext=replaceval(itmtext,searchitmnr);}if(!(highs)&&item[1].length<90) itmtext+=txtspacer+txtspacer+txtspacer;savailtx="";itmavailtxt="";savailtx+=eval("avail"+availval+"txt");if(showavailtxt!=0&&isCNote==-1) itmavailtxt="<font "+ItemsFontface+" size='"+ItemsFontSize+"' color='"+eval('AvailCol'+availval)+"'><br>"+savailtx+"<br><img src=../images/leer.gif width=2 height=6></font>";else itmavailtxt="<br>";tabbutt="<a href=\"javascript\:parent.data.buyItem("+(i+1)+")\">";tabbutt+="<img src=../images/inkorb_"+availval+".gif border=0></a>";myisda=0;myisda=checkNotes("|"+artnummer+"|");tabnote="";if(myisda==0&&!(doshowNotes)&&doNotesSel==1) tabnote="<a href=\"javascript\:parent.data.noteItem("+(i+1)+")\" title='"+toNoteStatustxt+"'><img src=../images/innotes.gif name=my_"+(i+1)+" border=0></a>";else if(!(doshowNotes)&&doNotesSel==1) tabnote="<a href=\"javascript\:parent.data.showNotes()\" title='"+notestitle+"'><img src=../images/isinnotes.gif border=0></a>";itmlink=sgotogroup; infolink=item[2]; imaglink=item[2];if(item[9]==5||item[9]==6||item[9]==8) infolink=gruppe;if(item[9]==2||item[9]==4||item[9]==6) imaglink=gruppe;itminfo="";itminfolink="";if(item[9]>0&&item[9]<7) isitemimg=1;if(item[9]>2) itminfolink="<a href=\"../infos/"+infolink+".htm\" onclick=\"parent.data.putthisitm('"+i+"')\">", itminfo=itminfolink+"<img src=../images/info.gif border=0></a>";if(isitemimg==1) itemimg="<img src=../itmimg/"+imaglink+"."+imagekind+" xxx border=0 name=mymimg"+(i+1)+" onerror=parent.data.handleErrorImg("+(i+1)+")>";imgArray[i+1]=itemimg;imgdefaultArray[i+1]="../itmimg/"+imaglink+"."+imagekind;if(!(highs)&&doimgPop==1&&bigimg==1&&isitemimg==1){imgArray[i+1]="<img src=../itmimg/"+imaglink+"_."+imagekind+" border=0 name=mymimg onerror=opener.parent.data.showdefault("+(i+1)+") onload=opener.parent.data.autoSize()>";}titleArray[i+1]=item[0];if(highs) itemimg=itmlink+itemimg+"</a>";else if(imgislink==1&&isitemimg==1) itemimg=itminfolink+itemimg+"</a>";if(!(highs)&&doimgPop==1&&isitemimg==1) itemimg+="<br><a href=javascript:parent.data.openimg("+(i+1)+")><img src=../images/imgshow.gif border=0 name=imgshow"+(i+1)+"></a>";if(highs&&highimgwidth>0) itemimgasw=itemimg.replace(/xxx/, "width="+highimgwidth+"");else if(!(highs)&&itmdo2cols==1&&do2colsimgwidth>0) itemimgasw=itemimg.replace(/xxx/, "width="+do2colsimgwidth+"");else itemimgasw=itemimg.replace(/xxx/, "");itempurimgasw=itemimg.replace(/xxx/, "");if(!(highs)&&itmdoimg==0) itemimgasw="<img src=../images/leer.gif height=6 width=6 border=0>";imgcol="";if(itemimgasw==''||(highs)) imgcol=" colspan=2";tabhidden="<input type=hidden name='item"+(i+1)+"size' value='0'>";tabhidden+="<input type=hidden name='item"+(i+1)+"plus' value='0'>";itmpreise="";itmpreise+=ITMFont+"<b>";if(!(highs)) itmpreise+="<nobr><font color='"+price1FontColor+"'>";if(isNaN(item[3])) mycurrency=priceNaming;else mycurrency=currency;itmpreise+=mycurrency+" "+format2(item[3],2)+"<font color='"+price2FontColor+"'>";if(isNaN(item[3])) EuroPrice=item[3];else EuroPrice=parseFloat(item[3]) / EUROrate;if(highs&&dohighprice==1) itmpreise=sgotogroup+dopriceimg(item[3])+"</a>";else if(highs) itmpreise+="<br><b>";else itmpreise+="&nbsp;&nbsp;";if(showPrice2==1) itmpreise+=currency2+" "+format2(EuroPrice, 2);itmpreise+="</b></font>";itmpreise+="";if(!(highs)) itmpreise+="</nobr>";ftype="text";if(showQuantField==0) ftype="hidden";qtab="<input type="+ftype+" name='item"+(i+1)+"quant' value=1 size=2>";itmpops="";if(item[8] >= 10){tabalign="";itmpops="<table border=0 cellpadding=1 cellspacing=0><tr>";sizevar=item[8].charAt(item[8].length - 2);plusvar=item[8].substring(0, item[8].length - 2);tabitemsize="";tabitemplus="";itemnr=item[2];if(sizevar>0){sizeclass=eval("size"+sizevar);tabitemsize+="<select name='itemspecial"+(i+1)+"' size='1' onchange=\"parent.data.dosize('"+(i+1)+"')\">\n";var sizeArray=new Array();sizeArray=sizeclass.split("|");tabitemsize+="<option value='0'>"+sizeArray[0]+"</option>\n";for(var m=1; m<sizeArray.length-1; m++){tabitemsize+="<option value='"+sizeArray[m]+"'>"+sizeArray[m]+"</option>\n";}tabitemsize+="</select>";}if(plusvar>0){plusclass=eval("plus"+plusvar);tabitemplus+="<select name='itemplus"+(i+1)+"' size='1' onchange=\"parent.data.doplus('"+(i+1)+"')\">\n";var plusArray=new Array();plusArray=plusclass.split("|");tabitemplus+="<option value='0'>"+plusArray[0]+"</option>\n";for(var m=1; m<plusArray.length-1; m++){tabitemplus+="<option value='"+plusArray[m]+"'>"+plusArray[m]+"</option>\n";}tabitemplus+="</select>";}itmpops+="<td>"+tabitemplus+"</td>";itmpops+="<td>"+tabitemsize+"</td>";itmpops+="</tr></table>";}itmposnr=ITMNrFont+(i+1)+"&nbsp;/&nbsp;"+ArtikelArray.length+"</font>";if(isCNote!=-1) itmpops="", itminfo="", qtab="", tabbutt=""; stabbutt=tabhidden+"<table border=0 cellpadding=1 cellspacing=0><tr><td align=right>"+itminfo+"</td><td align=right align=right>"+qtab+"</td><td>"+imgklleer+"</td><td align=right>"+tabbutt+"</td><td align=right>"+tabnote+"</td></tr></table>";putbutt="<a href=\"javascript\:parent.data.noteItem("+(i+1)+",1)\" title='"+toNoteStatustxt+"'><img src=..\/images\/notes.gif border=0><\/a>";delbutt="<a href=\"javascript\:parent.data.deleteNote("+(i+1)+")\" title='"+bdeletetxt+"'><img src=..\/images\/deletenotes.gif border=0><\/a>";itmsgotogroup="";if(!(highs)) itmsgotogroup=sgotogroup+"<IMG SRC='../images/artseite.gif' BORDER=0></a>";else if(highs&&doHighNotesSel==1&&doNotesSel==1) itmsgotogroup=putbutt;else itmsgotogroup=sgotogroup+"<IMG SRC='../images/ishigh.gif' BORDER='0' align='top'></a>";myitmcol=ItemsTableColor;myitmbordercol=Tabletabline;if(itmsolid==1&&itmfilled==1) myitmbordercol=myitmcol;itmTcolor="='"+myitmcol+"'";sitmtab=itmtabvorlage;if(highs&&dohigh2col==1) sitmtab=sitmtab.replace(/<imgheightleer>/g, imgleer+"1 height="+high2colhight+">");else sitmtab=sitmtab.replace(/<imgheightleer>/g, imgleer+"1 height=1>");sitmtab=sitmtab.replace(/<imgrleer>/g, imgleer+"4 height=4>");sitmtab=sitmtab.replace(/<itmspacer>/g, imgleer+Twidth+" height=1>");if(!(highs)) sitmtab=sitmtab.replace(/109/, Twidth);if(itmframed==1) sitmtab=sitmtab.replace(/=black/g, "="+myitmbordercol);else sitmtab=sitmtab.replace(/ bgcolor=black/g, "");if(itmfilled==1) sitmtab=sitmtab.replace(/=red/g, itmTcolor);else sitmtab=sitmtab.replace(/ bgcolor=red/g, "");if(highs) itmtext+="<br>"+itmpreise;sitmtab=sitmtab.replace(/<itmtext>/, itmtext);if(!(highs)) sitmtab=sitmtab.replace(/<searchnr>/, itmposnr);if(!(highs)&&showavailtxt!=0) sitmtab=sitmtab.replace(/<itmvbtxt>/, itmavailtxt);myhighgotolink=ITMFont+sgotogroup+isgototxtsm+"</a></font>";if(dodeeptopcol==1&&replheader==1&&(itmfilled==1||itmframed==1)) sitmtab=sitmtab.replace(/topred|top2red/g, DeepTopCol);if((highs)&&dohighstopcol==1) sitmtab=sitmtab.replace(/topred/, HighsTopColor), sitmtab=sitmtab.replace(/=top2red/, itmTcolor), sitmtab=sitmtab.replace(/<highheaderimg>/, "<IMG SRC=../images/ppfeil_.gif border=0>"), sitmtab=sitmtab.replace(/<highheader>/, myhighgotolink);if((highs)&&dohighstopcol==0) sitmtab=sitmtab.replace(/=topred/, itmTcolor), sitmtab=sitmtab.replace(/top2red/, HighsTopColor), sitmtab=sitmtab.replace(/<highheaderimg>/, "<IMG SRC=../images/ppfeil_.gif border=0>"), sitmtab=sitmtab.replace(/<highheader>/, myhighgotolink);else if(itmfilled==1&&doitmtopcol==1) sitmtab=sitmtab.replace(/topred|top2red/g, ItemsTopColor);else if(itmfilled==1&&doitmtopcol==0) sitmtab=sitmtab.replace(/=topred|=top2red/g, itmTcolor);else sitmtab=sitmtab.replace(/ bgcolor=topred| bgcolor=top2red/g, "");if(!(highs)&&doshowNotes) sitmtab=sitmtab.replace(/<delnotes>/, delbutt);sitmtab=sitmtab.replace(/<itmanchor>/, "<a name='itmanchor"+artnummer+"'>");if(itmpops=="") itmpops=imgklleer;if(!(highs)&&item[8] >= 10) sitmtab=sitmtab.replace(/<itmpops>/, "<br>&nbsp;"+itmpops);if(!(highs)) sitmtab=sitmtab.replace(/<cartbutton>/, stabbutt);if(!(highs)) sitmtab=sitmtab.replace(/<itmpreise>/, itmpreise+"<br>"+imgleer+"2 height=5>");sitmtab=sitmtab.replace(/<imgleer>/g, imgklleer);if(itmframed==1) sitmtab=sitmtab.replace(/<imgleer>/g, imgklleer);var thiswidth=new RegExp(Twidth, "g");ssitmtab=sitmtab.replace(thiswidth, ItemsWidth);ssitmtab=ssitmtab.replace(/<gotogroup>/, itmsgotogroup);ssitmtab=ssitmtab.replace(/<img src=..\/images\/info.gif border=0>/, "");sstabforArray="";if(item[9]>2){if(shortinfo==1){stabbutt=stabbutt.replace(/<img src=..\/images\/info.gif border=0>/, "");sstabforArray="<table border=0 cellpadding=3 cellspacing=0><tr><td colspan=2>"+itmpops+"</td></tr>";sstabforArray+="<tr><td>"+itmpreise+"</td><td>"+stabbutt+"</td></tr>";sstabforArray+="<tr><td colspan=2 align=right>"+itmsgotogroup+"</td></tr></table>";tabArray[i]=sstabforArray;}else tabArray[i]=ssitmtab.replace(/<itmimage>/, itempurimgasw);} else{tabArray[i]="";}sitmtab=sitmtab.replace(/<itmimage>/, itemimgasw);if(highs||search&&showgotogroup==1) sitmtab=sitmtab.replace(/<gotogroup>/, itmsgotogroup);if(!(highs)&&itmfilled==0&&itmframed==0&&itmdo2cols==0) tab+=divline;if((highs&&dohigh2col==1)&&(myi/2)!=parseInt((myi/2))||!(highs)&&itmdo2cols==1&&(myi/2)!=parseInt((myi/2))) tab+="<tr valign=top><td>";else if((highs&&dohigh2col==1)||!(highs)&&itmdo2cols==1) tab+="</td><td>";tab+=sitmtab;if(!(highs)&&itmdo2cols==1&&(myi/2)==parseInt((myi/2))&&itmfilled==0&&itmframed==0&&itmdo2cols==1&&i<nxtlend-1) tab+="<tr align=center><td colspan=2><img src=..\/images\/2coldivide.gif border=0></td><\/tr>";if((highs&&dohigh2col==1)&&i==nxtlend-1||!(highs)&&itmdo2cols==1&&i==nxtlend-1) tab+="</table>";if(i!=nxtlend-1&&((highs&&dohigh2col==0)||(!(highs)&&itmdo2cols==0))) tab+="<br>";else if(!(highs)&&itmfilled==0&&itmframed==0&&itmdo2cols==0) tab+=divline;}if(!(highs)){if(itmdo2cols==1) tab+="<br>"+divline;tab+=botvargo;}return tab;}function itemshigh(){parent.main.document.writeln(showhitmtable);parent.main.document.close();}var searchclassname="";function gruppenSplit(){var Wert=searchclass;var searchgroup=eval("parent.data.searchgroup"+Wert);var gruppenArray=new Array();var offset=0;offset=searchgroup.indexOf("[");searchgrouptxt=searchgroup.substring(0, offset);searchclassname=searchgrouptxt;searchgroup=searchgroup.substring(offset+1, searchgroup.length);for(var i=0; searchgroup.indexOf(",")!=-1; i++){offset=searchgroup.indexOf(",");gruppenArray[i]=searchgroup.substring(0, offset);searchgroup=searchgroup.substring(offset+1, searchgroup.length);if(donext==0){parent.main.document.writeln("<script src=../data/"+gruppenArray[i]+".js language=JavaScript><\/script>");}}return gruppenArray;}function makeTablebuy(cartArray){var pos, singleqty=0;var avail1="", avail2="", avail3="";var itm, extension, makeTotal=0, makeTotal1=0, makeTotal2=0, deltotal=0, itmsquant=0;var placer=imgleer+"'3' HEIGHT='3' BORDER='0'>";var placer2=imgleer+"";var innerwith=(BuyWidth - 85) - 2*BuyPriceWidth;var ITMSteuer=0, MWSteuer1=0, MWSteuer2=0;if(BuyFont!="") BuyFontface="Face=\'"+BuyFont+"\'";var bfont="<Font "+BuyFontface+" Size='"+BuyFontSize+"'>";var tab="";var ftab="<form action='"+sFormAction+"' name='buyform' method='post'";ftab+=">";if(sFormAction.indexOf("openmail")!=-1){ftab+=hifi+"'home' VALUE='"+parent.location.href+"'>";ftab+=hifi+"'tartikel' VALUE='"+itemNaming+"'>";ftab+=hifi+"'BuyTableHeadColor' VALUE='"+BuyTableHeadColor+"'>";ftab+=hifi+"'doBuyTableColor' VALUE='"+doBuyTableColor+"'>";ftab+=hifi+"'BuyTableColor' VALUE='"+BuyTableColor+"'>";ftab+=hifi+"'BuyHeadTextColor' VALUE='"+BuyHeadTextColor+"'>";ftab+=hifi+"'BuyItemFontColor' VALUE='"+BuyItemFontColor+"'>";ftab+=hifi+"'PositionColor' VALUE='"+PositionColor+"'>";ftab+=hifi+"'bordertxt' VALUE='"+bordertxt+"'>";ftab+=hifi+"'boffertxt' VALUE='"+boffertxt+"'>";ftab+=hifi+"'bchangetxt' VALUE='"+bchangetxt+"'>";ftab+=hifi+"'tmenge' VALUE='"+qtyNaming+"'>";ftab+=hifi+"'tpreis' VALUE='"+priceNaming+"'>";ftab+=hifi+"'tsumme' VALUE='"+BuyItemTotalNaming+"'>";ftab+=hifi+"'tplustxt' VALUE='"+Extratxt+"'>";ftab+=hifi+"'tminustxt' VALUE='"+Rabatttxt+"'>";ftab+=hifi+"'tdeliverytxt' VALUE='"+Buydeliverytxt+"'>";ftab+=hifi+"'tbuytotaltxt' VALUE='"+Buytotaltxt+"'>";ftab+=hifi+"'tgrandtotaltxt' VALUE='"+Buytotalplusdeliverytxt+"'>";ftab+=hifi+"'subject' VALUE='"+subjectkind+"'>";ftab+=hifi+"'sender' VALUE='"+sender+"'>";ftab+=hifi+"'cc' VALUE='"+cc+"'>";ftab+=hifi+"'mailserver' VALUE='"+mailserver+"'>";ftab+=hifi+"'sendmailCmd' VALUE='"+sendmailCmd+"'>";ftab+=hifi+"'usemailserver' VALUE='"+usemailserver+"'>";ftab+=hifi+"'doSaveDB' VALUE='"+doSaveDB+"'>";ftab+=hifi+"'required' VALUE='"+required+"'>";ftab+=hifi+"'reply_header' VALUE='"+sreply_header+"'>";ftab+=hifi+"'reply_footer' VALUE='"+sreply_footer+"'>";ftab+=hifi+"'confirmtxt' VALUE='"+confirmtxt+"'>";ftab+=hifi+"'confirmbgr' VALUE='"+confirmbgr+"'>";ftab+=hifi+"'BuyFont' VALUE='"+BuyFont+"'>";ftab+=hifi+"'BuyFontSize' VALUE='"+BuyFontSize+"'>";ftab+=hifi+"'BuyshowEURO' VALUE='"+BuyshowEURO+"'>";ftab+=hifi+"'BuyshowTAX' VALUE='"+BuyshowTAX+"'>";ftab+=hifi+"'BuyTaxtxt' VALUE='"+BuyTaxtxt+"'>";ftab+=hifi+"'BuyTaxtxt2' VALUE='"+BuyTaxtxt2+"'>";ftab+=hifi+"'currency' VALUE='"+currency+"'>";ftab+=hifi+"'currency2' VALUE='"+currency2+"'>";}ftab+=hifi+"'FormKind' VALUE='"+formkind+"'>";tab+=ftab+"<TABLE BORDER=0 cellpadding='1' cellspacing=0 width='"+BuyWidth+"'";if(doBuyTableColor==1) tab+=" bgcolor='"+BuyTableColor+"'";tab+=">";tab+="<tr bgcolor='"+BuyTableHeadColor+"'><td colspan=2>";if(doshortbuy==0) tab+="<a href=\"Javascript:parent.data.shortenbuy(1)\" title='Minimize'><img src=../images/maxibuy.gif border=0></a>";else tab+="<a href=\"Javascript:parent.data.shortenbuy(0)\" title='Maximize'><img src=../images/minibuy.gif border=0></a>";bheadtxtfont="<font "+BuyFontface+" color='"+BuyHeadTextColor+"' size=1>";tab+="</td><td>"+bheadtxtfont+BuyItemNaming+"</font></TD>"+tdc+">"+bheadtxtfont+BuyQtyNaming+"</font></TD><TD ALIGN=right>"+bheadtxtfont+BuyPriceNaming+"</font></TD><TD ALIGN=right>"+bheadtxtfont+BuyItemTotalNaming+"</font></TD><td>"+placer+"</td></TR>";for(var i=0; i<cartArray.length-1; i++){pos=i+1;itm=itmSplit(cartArray[i]);itm[3]=sPriceArray[i];availval=itm[8].substring(itm[8].length - 1, itm[8].length);if(availval=='1'&&avail1!="") avail1+=", "+pos;if(availval=='2'&&avail2!="") avail2+=", "+pos;if(availval=='3'&&avail3!="") avail3+=", "+pos;if(availval==''&&avail2!="") avail2+=", "+pos;if(availval=='1'&&avail1=="") avail1+=BuyPositiontxt+" "+pos;if(availval=='2'&&avail2=="") avail2+=BuyPositiontxt+" "+pos;if(availval=='3'&&avail3=="") avail3+=BuyPositiontxt+" "+pos;if(availval==''&&avail2=="") avail2+=BuyPositiontxt+" "+pos;if(parseFloat(itm[3])>0) extension=itm[14] * itm[3];else extension=itm[3];ITMSteuer=0;if(itm[11]!=BuyTAXpercent&&itm[11]!=BuyTAXpercent2||itm[11]=="") itm[11]=BuyTAXpercent;if(parseFloat(itm[3])>0){if(ItemsNettoPrice==1) ITMSteuer=extension * (itm[11]/100);else ITMSteuer=extension - extension / (1+itm[11]/100);if(itm[11]==BuyTAXpercent) makeTotal1+=extension;else if(itm[11]==BuyTAXpercent2) makeTotal2+=extension;if(itm[7]!="0") deltotal+=extension, itmsquant+=parseFloat(itm[14]);}tab+="<TR><TD valign=top><Font "+BuyFontface+" Size='"+BuyFontSize+"' color="+PositionColor+">"+pos+".<br></font></TD><TD valign=top colspan=2><Font "+BuyFontface+" Size='"+BuyFontSize+"' color='"+BuyItemFontColor+"'><b>"+itm[0]+"</b></TD><TD align=center>"+bfont+"<b>"+itm[14]+"</b></TD><TD align=right>"+bfont+format2(itm[3],2)+"</TD><TD align=right>";tab+=bfont+format2(extension,2)+"</TD><TD>"+placer+"</TD></TR>";var colval1=2, colval2=3;if(itm[9]!="") colval1=1, colval2=4;tab+="<TR><td colspan=1>"+placer+"</TD><TD align=left colspan=4>";if(doshortbuy==0){tab+=t000;tab+="<tr><td width=1% valign=top>";bitmimg=getitmimg(itm[9],itm[2],itm[10],showBuyItemImg,BuyItemImgWidth);if(itm[9]>0&&showBuyItemImg==1) tab+=bitmimg;tab+="<br></td><td width=99% valign=top>";}tab+=bfont;if(doshortbuy==0) tab+=itm[1]; tab+=" <nobr>("+itm[2];if(itm[13]!=0) tab+=", ";if(itm[13]!=0) tab+=itm[13];if(itm[12]!=0) tab+=", ";if(itm[12]!=0) tab+=itm[12]; tab+=")</nobr>";tab+=hifi+"'itm"+pos+"' VALUE='"+itm[0]+"'>";if(itm[12]!=0) tab+=hifi+"'itmsize"+pos+"' VALUE='"+itm[12]+"'>";if(itm[13]!=0) tab+=hifi+"'itmplus"+pos+"' VALUE='"+itm[13]+"'>";tab+=hifi+"'itmnumber"+pos+"' VALUE='"+itm[2]+"'>";tab+=hifi+"'quant"+pos+"' VALUE='"+itm[14]+"'>";tab+=hifi+"'price"+pos+"' VALUE='"+itm[3]+"'>";tab+=hifi+"'total"+pos+"' VALUE='"+format(extension, 2)+"'>";if(doshortbuy==0) tab+="</td></tr></table>";tab+="</TD><td colspan=2>"+placer+"</TD>";tab+="<tr><td>"+placer2+"=1 HEIGHT=8></td><td colspan=5 align=center>"+t100+"<tr><td bgcolor="+Tabletabline+">"+placer2+"=1 HEIGHT=1></TD></TR></table></TD><td>"+placer+"</td></TR>";}makeTotal=makeTotal1+makeTotal2;grandTotal=format(makeTotal, 2);thisRabatt=0,thisExtra=0,delivery=0,totalplusdelivery=0,MWSteuertotal=0,totalEURO=0;if(makeTotal>0){tab+="<TR><td colspan=2>"+placer+"</TD><TD COLSPAN=3>"+bfont+Buytotaltxt+"</font></TD><td align=right>"+bfont+format2(grandTotal,2)+"</font></td><td>"+placer+"</td></TR>";if(doRabatt==1){if(doRabattpercent==1&&makeTotal >= Rabattstart) thisRabatt=makeTotal * RabattpercentValue/100;else if(doRabattfixed==1&&makeTotal >= Rabattstart) thisRabatt=RabattfixedValue;thisRabatt=format(thisRabatt, 2);makeTotal1=makeTotal1 - thisRabatt*(makeTotal1/makeTotal);makeTotal2=makeTotal2 - thisRabatt*(makeTotal2/makeTotal);if(thisRabatt>0) tab+="<TR><td colspan=2>"+placer+"</TD><TD COLSPAN=3>"+bfont+Rabatttxt+"</font></TD><td align=right>"+bfont+"-"+format2(thisRabatt,2)+"</font></td><td>"+placer+"</td></TR>";}makeTotal=makeTotal1+makeTotal2;if(doExtra==1){if(doExtrapercent==1&&makeTotal >= Extrastart) thisExtra=makeTotal * ExtrapercentValue/100;else if(doExtrafixed==1&&makeTotal >= Extrastart) thisExtra=ExtrafixedValue;thisExtra=format(thisExtra, 2);makeTotal1=makeTotal1+thisExtra*(makeTotal1/makeTotal);makeTotal2=makeTotal2+thisExtra*(makeTotal2/makeTotal);if(thisExtra>0) tab+="<TR><td colspan=2>"+placer+"</TD><TD COLSPAN=3>"+bfont+Extratxt+"</font></TD><td align=right>"+bfont+format2(thisExtra,2)+"</font></td><td>"+placer+"</td></TR>";}makeTotal=makeTotal1+makeTotal2;delivercost=0;peritemval=1;if(deltotal>0&&doBuydelivery==1) delivercost=Buydelivery;if(doBuyfreedelivery==1&&makeTotal >= Buyfreedelivery) delivercost=0, peritemval=0;if(dodeliveryperITEM==1) delivery=delivercost+(peritemval*itmsquant*deliveryperITEM)+specialdel;else delivery=delivercost+specialdel;makeTotal1+=delivery;makeTotal=makeTotal1+makeTotal2;if(ItemsNettoPrice==1) MWSteuer1=makeTotal1 * (BuyTAXpercent/100), MWSteuer2=makeTotal2 * (BuyTAXpercent2/100);else MWSteuer1=makeTotal1 * (BuyTAXpercent/(100+BuyTAXpercent)), MWSteuer2=makeTotal2 * (BuyTAXpercent2/(100+BuyTAXpercent2));MWSteuertotal=MWSteuer1+MWSteuer2;tab+="<TR><td colspan=2>"+placer+"</TD><TD COLSPAN=3>"+bfont+Buydeliverytxt+"</font></TD><td align=right>"+bfont+format2(delivery,2)+"</font></td><td>"+placer+"</td></TR>";tab+="<tr><td>"+placer+"</td><td colspan=5 align=center>"+t100+"<tr><td bgcolor="+Tabletabline+">"+placer2+"=1 HEIGHT=1></TD></TR></table></TD><td>"+placer+"</td></TR>";mwsttab="<TR><td colspan=2>"+placer+"</TD><TD COLSPAN=3>"+bfont+BuyTaxtxt+currency+"</font></TD><td align=right>"+bfont+format2(MWSteuer1,2)+"</font></td><td>"+placer+"</td></TR>";mwst2tab="<TR><td colspan=2>"+placer+"</TD><TD COLSPAN=3>"+bfont+BuyTaxtxt2+currency+"</font></TD><td align=right>"+bfont+format2(MWSteuer2,2)+"</font></td><td>"+placer+"</td></TR>";if(NettoTotal==0&&ItemsNettoPrice==1&&BuyshowTAX==1){totalplusdelivery=makeTotal+MWSteuer1+MWSteuer2;totalEURO=makeTotal / EUROrate;if(MWSteuer1>0) tab+=mwsttab;if(MWSteuer2>0) tab+=mwst2tab;} else{totalplusdelivery=makeTotal;totalEURO=0;totalEURO=totalplusdelivery / EUROrate;}tab+="<TR><td>"+placer+"</TD><TD COLSPAN=4>"+bfont+"<b>"+Buytotalplusdeliverytxt+" "+currency+"</b></font>";tab+="</TD><td align=right>"+bfont+"<u>"+format2(totalplusdelivery,2)+"</u></font></td><td>"+placer+"</td></TR>";if(BuyshowEURO==1) tab+="<TR><td>"+placer+"</TD><TD COLSPAN=4>"+bfont+"<b>"+Buytotalplusdeliverytxt+" "+currency2+"</b></font></TD><td align=right>"+bfont+"<u>"+format2(totalEURO,2)+"</u></font></td></td><td>"+placer+"</td></TR>";if(ItemsNettoPrice!=1&&BuyshowTAX==1){if(MWSteuer1>0) tab+=mwsttab;if(MWSteuer2>0) tab+=mwst2tab;}}availalltxt="";if(avail1!="") availalltxt+=avail1+" "+avail1txt+". ";if(avail2!="") availalltxt+=avail2+" "+avail2txt+". ";if(avail3!="") availalltxt+=avail3+" "+avail3txt+". ";if(showPositiontxt==0) availalltxt="";tab+="<tr><td>"+placer+"</td><td colspan=5><font "+BuyFontface+" size='1' color="+PositionColor+"><br>";tab+=availalltxt+"</font>"+placer+"</td><td>";if(makeTotal <= 0) thisRabatt="-",thisExtra="-",delivery="-",totalplusdelivery="-",MWSteuertotal="-",totalEURO="-",grandTotal="-";tab+=hifi+"'grandTotal' SIZE=8 VALUE='"+grandTotal+"'>";tab+=hifi+"'thisRabatt' VALUE='"+thisRabatt+"'>";tab+=hifi+"'thisExtra' VALUE='"+thisExtra+"'>";tab+=hifi+"'delivery' VALUE='"+format(delivery, 2)+"'>";tab+=hifi+"'totalplusdelivery' VALUE='"+format(totalplusdelivery, 2)+"'>";if(BuyshowEURO==1) tab+=hifi+"'totalEURO' VALUE='"+format(totalEURO, 2)+"'>";tab+=hifi+"'Tax2' VALUE='"+format(MWSteuer2, 2)+"'>";tab+=hifi+"'Tax1' VALUE='"+format(MWSteuer1, 2)+"'>";tab+=hifi+"'Tax' VALUE='"+format(MWSteuertotal, 2)+"'>";tab+=hifi+"'itmCount' VALUE='"+i+"'>";tab+=hifi+"'showPositiontxt' VALUE='"+showPositiontxt+"'>";tab+=hifi+"'availalltxt' VALUE='"+availalltxt+"'>";tab+=placer+"</td></TR>";tab+="<tr><td>"+placer2+"'6' HEIGHT='1'></td><td>"+placer2+"'6' HEIGHT='1'></TD><td>"+placer2+innerwith+" HEIGHT='3'></TD><TD>"+placer2+"'38' HEIGHT='1' BORDER='0'></TD><TD>"+placer2+BuyPriceWidth+" HEIGHT='1'></TD><TD>"+placer2+BuyPriceWidth+" HEIGHT='1'></TD><td>"+placer2+"'6' HEIGHT='1'></td></TR>";tab+="</TABLE>";return tab;}function clearwhenorder(){document.cart.cartData.value="", showCart();}function dosize(selnr){var Sizename=eval("parent.main.document.itemsform.item"+selnr+"size");selSize=eval("parent.main.document.itemsform.itemspecial"+selnr+".options[parent.main.document.itemsform.itemspecial"+selnr+".selectedIndex].value");Sizename.value=selSize;}function doplus(selnr){var Plusname=eval("parent.main.document.itemsform.item"+selnr+"plus");selPlus=eval("parent.main.document.itemsform.itemplus"+selnr+".options[parent.main.document.itemsform.itemplus"+selnr+".selectedIndex].value");Plusname.value=selPlus;}thisgoitmnr=1;var tabArray=new Array();var thistabArray="";function putthisitm(itmi){pmloc=parent.main.location.href;if(pmloc.indexOf('/infos/')==-1) thistabArray="<form name='itemsform'>"+tabArray[itmi];}function dohl(){if(dohighlights==1){var offset=0;var counter=0;if(allhighs>""){while (allhighs.length>0){allhighs=allhighs.replace(/<[^<]*>/gi," ");offset=allhighs.indexOf("]");HArtikelArray[counter++]=allhighs.substring(0, offset);allhighs=allhighs.substring(offset+1, allhighs.length);}showhitmtable=makeTableItems(HArtikelArray, false, true);}}if(gotoitmpur.length>1&&urlsearchisover==false){gookarray=gotoitmpur.split(",");if(gookarray.length>0) hgruppe=gookarray[0], hartikel=gookarray[1];urlsearchisover=true;hselect(hgruppe,hartikel);} else{parent.main.location.href="../etc/front.htm";}}var namef="";setTimeout('dobottom()', 4500);function dobottom(){if(dobottomsearch==1) parent.bottom.location.href="../etc/quicks.htm";else parent.bottom.location.href="../etc/bottom.htm";}if(parent.mainmenu) parent.mainmenu.location.href="../etc/mmenu.htm";setTimeout('showCart()', 500);setTimeout('showCartstart()',3000);if(navversion=='N'&&bVer<5) setTimeout('showCartstart()',4000);var gookarray=new Array();var hgruppe, hartikel;var gotoitm=top.window.location.search;var gotoitmpur=gotoitm.substring(1, gotoitm.length);var urlsearchisover=new Boolean(false);setTimeout('dohl()',5500);setTimeout('isload()',6500);var issearch=new Boolean(false);var dopop=1;var isloadok=0;var infodefault="";function isload(){isloadok=1;infodefault=infotarget.location.href;}var Buydeliveryvar=0, Buysendvar=0, specialdel=0;var formarray=new Array();if(specialdefault==1) formarray["ModeOfPayment"]=0, specialdel+=Buyspecialdelivery, Buydeliveryvar=1;if(senddefault==1) formarray["ModeOfSend"]=0, specialdel+=Buysenddelivery, Buysendvar=1;function doitmdesign(ifill,iframed,isolid,colmode,imgmode){if(ifill!=3) itmtabfilled=ifill;if(iframed!=3) itmtabframed=iframed;if(isolid!=3) itmtabsolid=isolid;if(iframed!=3) itmframed=iframed;if(ifill!=3) itmfilled=ifill;if(isolid!=3) itmsolid=isolid;if(colmode!=3) itmdo2cols=colmode;if(imgmode!=3) itmdoimg=imgmode;pmloc=parent.main.location.href;if(pmloc.indexOf("items.htm")!=-1) parent.main.location.href="aload.htm";else setTimeout('hselect("2010")', 500);}function setuptabs(tabtemp,tabwidth,tabcol,tabrcol,repl,div){thisvargo="<table width=\""+ItemsWidth+"\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td align="+vargoalign+">";thisvargo+=tabtemp;thisvargo=thisvargo.replace(/400/g, tabwidth);thisvargo=thisvargo.replace(/<imgleer>/g, imgklleer);thisvargo=thisvargo.replace(/<imgrandleer>/g, imgleer+"4 height=4>");if(itmtabfilled==1) thisvargo=thisvargo.replace(/=red/g, tabcol);else thisvargo=thisvargo.replace(/ bgcolor=red/g, "");if(itmtabframed==0&&itmtabfilled==0) thisvargo=thisvargo.replace(/ bgcolor=black/g, "");else thisvargo=thisvargo.replace(/=black/g, tabrcol);thisvargo=thisvargo.replace(/<replthis>/, repl);thisvargo=thisvargo.replace(/<repldiv>/, div);thisvargo+="</td></tr></table>";return thisvargo;}function shortentxt(tlength,mytxt){myshorttxt=mytxt;isuml=myshorttxt.substring(tlength, tlength+5).indexOf(";");if(isuml!=-1) tlength=tlength+isuml+1;myshorttxt=myshorttxt.substring(0, tlength);if(mytxt.length>tlength) myshorttxt+=" ...";return myshorttxt;}function shortenbuy(sval){doshortbuy=sval;parent.main.document.location.href=parent.main.document.location.href;}function doform(){if(parent.main.document.buyform){var nobj=typeof formarray;if(nobj=="object"){for(var i=0; i< parent.main.document.buyform.length; i++){var dform=eval("parent.main.document.buyform.elements["+i+"]");if(dform.type!="hidden"&&dform.type!="submit"&&dform.type!="reset"){if(dform.type=="select-one") formarray[dform.name]=dform.selectedIndex;else if(dform.type=="checkbox") formarray[dform.name]=dform.checked;else formarray[dform.name]=dform.value.replace(/Øç/, "");}}}}}function dopriceimg(iprice){ip=0;imgprice="<br><img src=\"../images/currency.gif\" alt=\""+currency+"\" border=0>";while (ip<iprice.length){if(iprice.substring(ip,ip+1)==".") imgprice+="<img src=\"../images/pricedot.gif\" alt=\".\" border=0>";else imgprice+="<img src=\"../images/"+iprice.substring(ip,ip+1)+".gif\" alt=\""+iprice.substring(ip,ip+1)+"\" border=0>";ip++;}return imgprice;}function setnotes(){exp=new Date();today=exp.getDate()+"."+(exp.getMonth()+1)+"."+exp.getYear();var cnotesArray=new Array();cnotes=document.cart.notesData.value;if(cnotes.length>0) cnotesArray=cnotes.split("]");coutnotes="";for(var i=0; i<cnotesArray.length-1; i++){if(cnotesArray[i].indexOf(notestitle)==-1) coutnotes+="<font color="+AvailCol3+">"+notestitle+" "+today+":</font> <br>";coutnotes+=cnotesArray[i]+"]";}exp.setTime(exp.getTime()+(1000*60*60*24*cdays));document.cookie=".opstcookie="+escape(coutnotes)+"; expires="+exp.toGMTString();parent.main.document.images["notessave"].src="../images/notessaveok.gif";}var imgID=0;var imgWin;function openimg(mi){imgID=mi;imgWin=open("../etc/image.htm", "ImageWin", "toolbar=0,location=0,status=0,menubar=0,scrollbars=0,personalbar=0,resizable=0,width="+imgPopW+",height="+imgPopH+",screenX=100,screenY=100,left=100,top=100");}function showdefault(mi){imgWin.document.images["mymimg"].src=imgdefaultArray[mi];}function handleErrorImg(mi){if(parent.main.document.images["imgshow"+mi]){parent.main.document.images["imgshow"+mi].src="../images/leer.gif";parent.main.document.images["imgshow"+mi].width=2;}}function autoSize(){if(bigimg==1){imgWin.resizeBy(imgWin.document.images["mymimg"].width,imgWin.document.images["mymimg"].height);if(safari>0) setTimeout('autoSizeplus()', 500);}}function autoSizeplus(){imgWin.resizeTo(imgWin.outerWidth+1,imgWin.outerHeight+1);}
