/*
--------------------------------------------------
shop to date

Autor:    Thomas Müller
          MultiMüller GmbH
Datei:    shop2date.js
Funktion: JavaScript-Funktionen
--------------------------------------------------
*/

// Klassen

function classProduct() {
	this.uid="";
	this.id="";
	this.quantity=0;
	this.caption="";
	this.price=0;
	this.originalprice=-1;
	this.vat=0;
	this.url="";
	this.unit="";
	this.noship="";
	this.weight=0;
	this.actualpriceone=0;
	this.actualpriceall=0;
	this.rebatefrom=new Array;
	this.rebateprice=new Array;
	this.status=0;
	this.minimum=0;
	this.maximum=0;
	this.variationa="";
	this.variationb="";
}

function classVariation() {
	this.id="";
	this.price=0;
	this.originalprice=-1;
	this.weight=0;
	this.rebatefrom=new Array;
	this.rebateprice=new Array;
	this.status=0;
}

function classShippingMethod() {
	this.uid="";
	this.caption="";
	this.info="";
	this.vat=0;
	this.free=0;
	this.price=new Array;
	this.weight=new Array;
	this.actualprice=0;
}

function classPaymentMethod() {
	this.uid="";
	this.caption="";
	this.info="";
	this.pregateway="";
	this.postgateway="";
	this.email="";
	this.price=0;
	this.vat=0;
	this.free=0;
	this.actualprice=0;
	this.noship=0;
	this.parameter=new Array;
	this.version=0;
}
	

function classVat() {
	this.percent=0;
	this.amount=0;
}

// Funktionen

function sortVat(a,b) {	
// Sortier-Funktion für Prozent
	
	return a.percent-b.percent;
}

function toInt(value) {
// Einen Strin in Null umwandel, NaN umgehen

	if (isNaN(value)) {
		return 0;
	}
	else {
		return parseInt(value);
	}
}

function format(num) {
// Als Währung formatieren
	
	num = Math.round(num*100);
	cents = num%100;
	num = Math.floor(num/100).toString();
	if(cents<10)
	cents = "0" + cents;
	for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
		num = num.substring(0,num.length-(4*i+3))+"."+num.substring(num.length-(4*i+3));
	return (num + "," + cents);
}

function formatweight(num) {
// Als Gewicht formatieren
	
	num = Math.round(num*1000);
	cents = num%1000;
	num = Math.floor(num/1000).toString();
	cents="000"+cents.toString();
	cents=cents.substr(cents.length-3,cents.length);
	for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
		num = num.substring(0,num.length-(4*i+3))+"."+num.substring(num.length-(4*i+3));
	return (num + "," + cents);
}

function htmlChars(myText) {
// Entfernt böse HTML-Zeichen

	myText=myText.replace(/&/g,"&amp;");
	myText=myText.replace(/"/g,"&quot;");
	myText=myText.replace(/'/g,"&#039;");
	myText=myText.replace(/</g,"&lt;");
	myText=myText.replace(/>/g,"&gt;");
	return myText;
}

function iclearChars(myText) {
// Entfernt böse Zeichen für iClear

	myText=myText.replace(/&/g," ");
	myText=myText.replace(/"/g," ");
	myText=myText.replace(/'/g," ");
	myText=myText.replace(/:/g," ");
	myText=myText.replace(/#/g," ");
	myText=myText.replace(/%/g," ");
	return myText;
}


function setCookie(myvalue) {
// Einen Cookie setzen
	var expires= new Date();
	expires.setFullYear(expires.getFullYear()+1);
	document.cookie="s2dm="+escape(myvalue)+"; expires="+expires.toGMTString()+"; path=/";
}

function getCookie() {
// Einen Cookie lesen
	var pos=document.cookie.indexOf("s2dm=");
		
	if (pos != -1) {
		var start=pos+5;
		var ende=document.cookie.indexOf(";", start);

		if (ende == -1) ende = document.cookie.length;
		var myvalue=document.cookie.substring(start, ende);
	
		myvalue=unescape(myvalue)
		return myvalue;
	} 
}

function setMemo(mycaption, myurl) {
// Dem Merkzetteln einen Eintrag hinzufügen
	
	var myvalue=new String();
	var mymemo=getMemo();
	var mymax;
		
	myvalue=myurl+"|||"+mycaption;
	
	mymax=mymemo.length;
	if (mymax>9) mymax=9;
	
	for (i=0;i<mymax;i++) {
		if (mymemo[i][0]!=myurl) {
			myvalue+="||||"+mymemo[i][0]+"|||";
			myvalue+=mymemo[i][1];
		}
	}
			
	setCookie(myvalue);
}

function getMemo() {
// Den Array mit dem Merkzettel liefern

	var mymemo = new Array();
	var myvalue = getCookie();
		
	if (myvalue != null && myvalue !="") {
		mymemo=myvalue.split("||||");
		for (i=0;i<mymemo.length;i++) {
			mymemo[i]=mymemo[i].split("|||");
		}
	}
	return mymemo;
}

function clearCookie() {
	
	if (confirm("Wilt u uw verlanglijstje echt wissen?")) {
		setCookie("");
		location.reload()
	}

}

function memoShow() {
// Den Merkzetteln anzeigen

	var mymemo=getMemo();
	
	if (mymemo.length==0) {
		document.write("<p>Uw verlanglijstje is leeg.</p>");
	} else {
		document.write("<table width='100%' cellpadding='2'>");
		for (i=0;i<mymemo.length;i++) {
			document.write("<tr><td align='left' class='s2d'>");
			document.write("<a class='s2d' href='"+mymemo[i][0]+"'>");
			document.write(mymemo[i][1]);
			document.write("</td></tr>");
		}
		document.write("<tr>");		
		document.write("<td class='s2d' align='right'><br><a href='#' onclick='clearCookie();return false;'><img src='images/pbclmemo.gif' width='150' height='25' alt='' border='0'></a></td>");
		document.write("</table>");	
		document.write("<p><br>U kunt op uw verlanglijstje vrijblijvend artikelen zetten, om ze bij een volgend bezoek aan deze online shop opnieuw te kunnen bekijken. Klik op een artikel om het te bekijken. Het verlanglijstje werkt alleen als uw Cookies accepteert.</p>");	
	}
}

function addMemo(myproduct, myurl) {
// Merken

	var mymessage="Het artikel \"[c]\" is op uw verlanglijstje gezet.";
	mymessage=mymessage.replace(/\[c\]/g,myproduct);
	alert(mymessage);
	setMemo(myproduct, myurl);
}

function basketPut(myproduct, myquantity) {
// Ins Körbchen legen
	
	var found;
	var i;
	var message;
	
	myquantity=toInt(myquantity);
	
	// Lieferbar?
	
	if (myproduct.status==0) {
		alert("De door u gekozen variant is niet leverbaar. Kies een andere combinatie eigenschappen.");
	}
	else {
		// Nicht null!
		if (myquantity<=0) {
			alert("Typ een geldig aantal.");
		}
		else {
			message="Wilt u het artikel [n] [u] \"[c]\" aan uw winkelmandje toevoegen?";
			message=message.replace(/\[n\]/,myquantity);
			message=message.replace(/\[u\]/,myproduct.unit);
			message=message.replace(/\[c\]/,myproduct.caption);
	
			if (confirm(message)) {
				found=-1
				for (var i=0; i<parent.basket.length; i++) {
					if ((parent.basket[i].uid==myproduct.uid) && (parent.basket[i].variationa==myproduct.variationa) && (parent.basket[i].variationb==myproduct.variationb)) {
						found=i;
					}
				}
				if (found==-1) {
					found=parent.basket.length;
					parent.basket[found]=new classProduct;
				}
				parent.basket[found].quantity+=parseFloat(myquantity);
				parent.basket[found].uid=myproduct.uid;
				parent.basket[found].id=myproduct.id;
				parent.basket[found].unit=myproduct.unit;
				parent.basket[found].caption=myproduct.caption;
				parent.basket[found].price=myproduct.price;
				parent.basket[found].vat=myproduct.vat;
				parent.basket[found].weight=myproduct.weight;
				parent.basket[found].url=myproduct.url;
				parent.basket[found].noship=myproduct.noship;
				parent.basket[found].minimum=myproduct.minimum;
				parent.basket[found].maximum=myproduct.maximum;
				parent.basket[found].variationa=myproduct.variationa;
				parent.basket[found].variationb=myproduct.variationb;
			
				for (var i=1;i<=5;i++) {
					parent.basket[found].rebatefrom[i]=myproduct.rebatefrom[i];
					parent.basket[found].rebateprice[i]=myproduct.rebateprice[i];
				}
			
				// Maximum und Minumum checken
				if ((parent.basket[found].quantity>parent.basket[found].maximum) && (parent.basket[found].maximum!=0)) {
					message="Het maximale bestelaantal voor het artikel  \"[c]\" bedraagt [n] [u] - het bestelaantal wordt automatisch aangepast.";
					message=message.replace(/\[n\]/,parent.basket[found].maximum);
					message=message.replace(/\[u\]/,parent.basket[found].unit);
					message=message.replace(/\[c\]/,parent.basket[found].caption);
					alert(message);
					parent.basket[found].quantity=parent.basket[found].maximum;
				}
				if ((parent.basket[found].quantity<parent.basket[found].minimum) && (parent.basket[found].minimum!=0)) {
					message="Het minimale bestelaantal voor het artikel  \"[c]\" bedraagt [n] [u] - het bestelaantal wordt automatisch aangepast.";
					message=message.replace(/\[n\]/,parent.basket[found].minimum);
					message=message.replace(/\[u\]/,parent.basket[found].unit);
					message=message.replace(/\[c\]/,parent.basket[found].caption);
					alert(message);
					parent.basket[found].quantity=parent.basket[found].minimum;
				}
			}
		}
	}
}
	
function basketShow() {
// Körbchen anzeigen

	var sum,i,j,found,vatsum;
	var vat = new Array;
	
	sum=0;
	vatsum=0;
		
	for (i=0;i<parent.basket.length;i++) {
		sum+=parent.basket[i].quantity;
	}
	
	updateActualPrice();
	
	if (sum==0)	{
		// leer
		
		document.write("<p>Uw winkelmandje is leeg</p>");
	}
	else {
		// Überschrift zeigen
	
		sum=0;
		document.write("<form name='basketform' onsubmit='reCalc();location.reload();return false;'>");
		document.write("<table width='100%' cellpadding='2'>");
		document.write("<tr>");
		document.write("<td align='left' colspan='3' class='s2d'><strong>Aantal</strong></td>");
		document.write("<td width='100%' class='s2d'><strong>Beschrijving</strong></td>");
				document.write("<td nowrap align='right' class='s2d'><strong>Stukprijs</strong></td>");
		document.write("<td nowrap align='right' class='s2d'><strong>Totaalbedrag</strong></td>");
		document.write("</tr>");
		document.write("<tr>");
		
		// Positionen
		
		for (i=0;i<parent.basket.length;i++) {
			if (parent.basket[i].quantity!=0) {
				document.write("<tr>");
				document.write("<td><a href='#' onclick='deleteItem("+i+");return false;'><img src='images/ptrsh.gif' width='12' height='16' alt='' border='0'></a></td>");
				document.write("<td><input type='text' class='s2d' size='3' maxlength='5' value='"+parent.basket[i].quantity+"' name="+i+"></td>");
				document.write("<td class='s2d'>"+htmlChars(parent.basket[i].unit)+"&nbsp;</td>");
				document.write("<td width='100%' class='s2d'><a class='s2d' href='"+parent.basket[i].url+"'>"+htmlChars(parent.basket[i].caption)+"</a></td>");
								document.write("<td nowrap align='right' class='s2d'>"+format(parent.basket[i].actualpriceone)+" EUR</td>");
				document.write("<td nowrap align='right' class='s2d'>"+format(parent.basket[i].actualpriceall)+" EUR</td>");
				document.write("</tr>");
				sum+=parent.basket[i].actualpriceall;
				
				// Ust rechnen
				
				addVat(vat,parent.basket[i].vat,parent.basket[i].actualpriceall);
				
			}
		}
		
		// Abstand
		document.write("<tr>");
					document.write("<td colspan='6' align='left' class='s2d'></td>");		
				document.write("</tr>");
		
		// USt. ausgeben
		vat.sort(sortVat);
		
					
			// Ust
		
			for (i=0;i<vat.length;i++) {
				document.write("<tr>");
				document.write("<td colspan='5' align='right' class='s2d'>"+vat[i].percent+"% BTW:</td>");
				document.write("<td nowrap align='right' class='s2d'>"+format(vat[i].amount)+" EUR</td>");
				document.write("</tr>");
			}	
			
			// Endbetrag
			
			document.write("<tr>");
			document.write("<td colspan='4' align='left' class='s2d'><input type='image' name='calc' src='images/prcb.gif' border='0' onclick='reCalc();location.reload();return false;'></td>");
			document.write("<td align='right' class='s2d'><strong>Eindbedrag:</strong></td>");
			document.write("<td nowrap align='right' class='s2d'><strong>"+format(sum)+" EUR</strong></td>");
			document.write("</tr>");
				
		// Navigation
		
		document.write("</table>");
		document.write("</form>");
	
		document.write("<table width='100%' cellpadding='2'>");
		document.write("<tr>");		
		document.write("<td align='left'><a href='./index.html'><img src='images/psmb.gif' width='150' height='25' alt='' border='0'></a></td>");
		document.write("<td align='right'><a onclick='reCalc();return true;' href='s2dship.html'><img src='images/pcob.gif' width='150' height='25' alt='' border='0'></a></td>");
		document.write("</tr>");		
		document.write("</table>");	
	}
}

function addVat(vat,rate,price) {
// USt addieren
	
	var j,found;
	
	if ((rate!=0) && (price!=0)) {

		found=-1;
		for (j=0;j<vat.length;j++) {
			if (vat[j].percent==rate) {
				found=j;
			}
		}
					
		if (found==-1) {
			found=vat.length;
			vat[found]=new classVat;
			vat[found].percent=rate;
			vat[found].amount=0;
		}				
					vat[found].amount+=price/(100+rate)*rate;
			}
}

function updateActualPrice() {
// Tatsächliche Preise im Korb aktualisieren

	for (var i=0;i<parent.basket.length;i++) {
		parent.basket[i].actualpriceone=parent.basket[i].price;
		
		// Rabattstaffel erreicht?
		
		for (var j=0;j<=5;j++) {
			if (parent.basket[i].rebatefrom[j]!=0) {
				if ((parent.basket[i].quantity)>=(parent.basket[i].rebatefrom[j])) {
					parent.basket[i].actualpriceone=parent.basket[i].rebateprice[j];
				}
			}
		}
		
		parent.basket[i].actualpriceall=parent.basket[i].actualpriceone*parent.basket[i].quantity;
	}
	
}

function reCalc() {
// Korb anhand Formular aktualisieren

	var j,i,message;

	for (i=0;i<document.basketform.elements.length;i++) {
		if (document.basketform.elements[i].type=="text") {
			j=parseInt(document.basketform.elements[i].name);
			parent.basket[j].quantity=Math.abs(toInt(document.basketform.elements[i].value));
			
			// Minumum und Maximum
			if ((parent.basket[j].quantity>parent.basket[j].maximum) && (parent.basket[j].maximum!=0) && (parent.basket[j].qunatity!=0)) {
				message="Het maximale bestelaantal voor het artikel  \"[c]\" bedraagt [n] [u] - het bestelaantal wordt automatisch aangepast.";
				message=message.replace(/\[n\]/,parent.basket[j].maximum);
				message=message.replace(/\[u\]/,parent.basket[j].unit);
				message=message.replace(/\[c\]/,parent.basket[j].caption);
				alert(message);
				parent.basket[j].quantity=parent.basket[j].maximum;
			}
			if ((parent.basket[j].quantity<parent.basket[j].minimum) && (parent.basket[j].minimum!=0) && (parent.basket[j].qunatity!=0)) {
				message="Het minimale bestelaantal voor het artikel  \"[c]\" bedraagt [n] [u] - het bestelaantal wordt automatisch aangepast.";
				message=message.replace(/\[n\]/,parent.basket[j].minimum);
				message=message.replace(/\[u\]/,parent.basket[j].unit);
				message=message.replace(/\[c\]/,parent.basket[j].caption);
				alert(message);
				parent.basket[j].quantity=parent.basket[j].minimum;
			}

		}
	}
}

function deleteItem(id) {
// Element aus Korb entfernen

	var message;
	
	message="Wilt u het artikel \"[c]\" echt uit het winkelmandje verwijderen?";
	message=message.replace(/\[c\]/,parent.basket[id].caption);

	if (confirm(message)) { 
		parent.basket[id].quantity=0;
		location.reload();
	}
}

function defineShippingMethods() {
// Versand-Methoden definieren

	if (parent.shippingmethod.length==0)
	{
			parent.shippingmethod[1] = new classShippingMethod;
		parent.shippingmethod[1].caption="Verzending in Nederland";
		parent.shippingmethod[1].info="Het maximale gewicht per pakket bedraagt 30 kilo. bv maximaal 5 beertender of 3 Perfect Draft vaatjes. (Vanaf 60 kilo wordt een gemiddelde palletprijs berekent. Neem voor de exacte prijs contact met ons op)";
		parent.shippingmethod[1].uid="000000948114d6c01";
		parent.shippingmethod[1].free=0;
		parent.shippingmethod[1].vat=19;
					parent.shippingmethod[1].price[1]=6.95;				
			parent.shippingmethod[1].weight[1]=9.99;				
					parent.shippingmethod[1].price[2]=7.45;				
			parent.shippingmethod[1].weight[2]=19.99;				
					parent.shippingmethod[1].price[3]=7.95;				
			parent.shippingmethod[1].weight[3]=29.99;				
					parent.shippingmethod[1].price[4]=15.9;				
			parent.shippingmethod[1].weight[4]=59.99;				
					parent.shippingmethod[1].price[5]=49.95;				
			parent.shippingmethod[1].weight[5]=499.99;				
					parent.shippingmethod[2] = new classShippingMethod;
		parent.shippingmethod[2].caption="Afhalen Almelo - Westerhuis";
		parent.shippingmethod[2].info="Slijterij Wijnhandel Westerhuis                                    Bornsestraat 57                                                          7607 KK  Almelo";
		parent.shippingmethod[2].uid="000000948b11f290a";
		parent.shippingmethod[2].free=0;
		parent.shippingmethod[2].vat=19;
					parent.shippingmethod[2].price[1]=0;				
			parent.shippingmethod[2].weight[1]=0;				
					parent.shippingmethod[2].price[2]=0;				
			parent.shippingmethod[2].weight[2]=0;				
					parent.shippingmethod[2].price[3]=0;				
			parent.shippingmethod[2].weight[3]=0;				
					parent.shippingmethod[2].price[4]=0;				
			parent.shippingmethod[2].weight[4]=0;				
					parent.shippingmethod[2].price[5]=0;				
			parent.shippingmethod[2].weight[5]=0;				
					parent.shippingmethod[3] = new classShippingMethod;
		parent.shippingmethod[3].caption="Afhalen Borne - de Barrique";
		parent.shippingmethod[3].info="Slijterij Wijnhandel de Barrique                                    Azelosestraat 72                                                         7621 BB  Borne";
		parent.shippingmethod[3].uid="000000948b1212e14";
		parent.shippingmethod[3].free=0;
		parent.shippingmethod[3].vat=19;
					parent.shippingmethod[3].price[1]=0;				
			parent.shippingmethod[3].weight[1]=0;				
					parent.shippingmethod[3].price[2]=0;				
			parent.shippingmethod[3].weight[2]=0;				
					parent.shippingmethod[3].price[3]=0;				
			parent.shippingmethod[3].weight[3]=0;				
					parent.shippingmethod[3].price[4]=0;				
			parent.shippingmethod[3].weight[4]=0;				
					parent.shippingmethod[3].price[5]=0;				
			parent.shippingmethod[3].weight[5]=0;				
					parent.shippingmethod[4] = new classShippingMethod;
		parent.shippingmethod[4].caption="Afhalen Denekamp - 't Grösmaeijerke";
		parent.shippingmethod[4].info="Slijterij 't Grösmaeijerke                                               Brinkstraat 2/4                                                            7591 DP  Denekamp";
		parent.shippingmethod[4].uid="10000094bf09e1a01";
		parent.shippingmethod[4].free=0;
		parent.shippingmethod[4].vat=19;
					parent.shippingmethod[4].price[1]=0;				
			parent.shippingmethod[4].weight[1]=0;				
					parent.shippingmethod[4].price[2]=0;				
			parent.shippingmethod[4].weight[2]=0;				
					parent.shippingmethod[4].price[3]=0;				
			parent.shippingmethod[4].weight[3]=0;				
					parent.shippingmethod[4].price[4]=0;				
			parent.shippingmethod[4].weight[4]=0;				
					parent.shippingmethod[4].price[5]=0;				
			parent.shippingmethod[4].weight[5]=0;				
					parent.shippingmethod[5] = new classShippingMethod;
		parent.shippingmethod[5].caption="Afhalen Enschede - Breukers Boekelo";
		parent.shippingmethod[5].info="Slijterij Wijnhandel Breukers                                        Beckumerstraat 173                                                    7648 BE  Boekelo";
		parent.shippingmethod[5].uid="000000948b11bdc03";
		parent.shippingmethod[5].free=0;
		parent.shippingmethod[5].vat=19;
					parent.shippingmethod[5].price[1]=0;				
			parent.shippingmethod[5].weight[1]=0;				
					parent.shippingmethod[5].price[2]=0;				
			parent.shippingmethod[5].weight[2]=0;				
					parent.shippingmethod[5].price[3]=0;				
			parent.shippingmethod[5].weight[3]=0;				
					parent.shippingmethod[5].price[4]=0;				
			parent.shippingmethod[5].weight[4]=0;				
					parent.shippingmethod[5].price[5]=0;				
			parent.shippingmethod[5].weight[5]=0;				
					parent.shippingmethod[6] = new classShippingMethod;
		parent.shippingmethod[6].caption="Afhalen Enschede - La Piquette";
		parent.shippingmethod[6].info="Slijterij La Piquette                                                       Burg. van Veenlaan 102                                              7543 AB  Enschede";
		parent.shippingmethod[6].uid="10000094ed0776101";
		parent.shippingmethod[6].free=0;
		parent.shippingmethod[6].vat=19;
					parent.shippingmethod[6].price[1]=0;				
			parent.shippingmethod[6].weight[1]=0;				
					parent.shippingmethod[6].price[2]=0;				
			parent.shippingmethod[6].weight[2]=0;				
					parent.shippingmethod[6].price[3]=0;				
			parent.shippingmethod[6].weight[3]=0;				
					parent.shippingmethod[6].price[4]=0;				
			parent.shippingmethod[6].weight[4]=0;				
					parent.shippingmethod[6].price[5]=0;				
			parent.shippingmethod[6].weight[5]=0;				
					parent.shippingmethod[7] = new classShippingMethod;
		parent.shippingmethod[7].caption="Afhalen Gaanderen - Pompke";
		parent.shippingmethod[7].info="Pömpke Verhuur                                                          Slakweg 6a                                                                 7011 EW Gaanderen";
		parent.shippingmethod[7].uid="10000098910b29c01";
		parent.shippingmethod[7].free=0;
		parent.shippingmethod[7].vat=19;
					parent.shippingmethod[7].price[1]=0;				
			parent.shippingmethod[7].weight[1]=0;				
					parent.shippingmethod[7].price[2]=0;				
			parent.shippingmethod[7].weight[2]=0;				
					parent.shippingmethod[7].price[3]=0;				
			parent.shippingmethod[7].weight[3]=0;				
					parent.shippingmethod[7].price[4]=0;				
			parent.shippingmethod[7].weight[4]=0;				
					parent.shippingmethod[7].price[5]=0;				
			parent.shippingmethod[7].weight[5]=0;				
					parent.shippingmethod[8] = new classShippingMethod;
		parent.shippingmethod[8].caption="Afhalen Groenlo - Marcellino";
		parent.shippingmethod[8].info="Slijterij Wijnhandel Marcelino                                       Lievelderstraat 37                                                       7141 BK  Groenlo";
		parent.shippingmethod[8].uid="000000948b11e4307";
		parent.shippingmethod[8].free=0;
		parent.shippingmethod[8].vat=19;
					parent.shippingmethod[8].price[1]=0;				
			parent.shippingmethod[8].weight[1]=0;				
					parent.shippingmethod[8].price[2]=0;				
			parent.shippingmethod[8].weight[2]=0;				
					parent.shippingmethod[8].price[3]=0;				
			parent.shippingmethod[8].weight[3]=0;				
					parent.shippingmethod[8].price[4]=0;				
			parent.shippingmethod[8].weight[4]=0;				
					parent.shippingmethod[8].price[5]=0;				
			parent.shippingmethod[8].weight[5]=0;				
					parent.shippingmethod[9] = new classShippingMethod;
		parent.shippingmethod[9].caption="Afhalen Hardenberg - Hendry Vos";
		parent.shippingmethod[9].info="Partyservice Hendry Vos                                             Roeterskamp 4                                                            7772 MB  Hardenberg";
		parent.shippingmethod[9].uid="000000948b11d7006";
		parent.shippingmethod[9].free=0;
		parent.shippingmethod[9].vat=19;
					parent.shippingmethod[9].price[1]=0;				
			parent.shippingmethod[9].weight[1]=0;				
					parent.shippingmethod[9].price[2]=0;				
			parent.shippingmethod[9].weight[2]=0;				
					parent.shippingmethod[9].price[3]=0;				
			parent.shippingmethod[9].weight[3]=0;				
					parent.shippingmethod[9].price[4]=0;				
			parent.shippingmethod[9].weight[4]=0;				
					parent.shippingmethod[9].price[5]=0;				
			parent.shippingmethod[9].weight[5]=0;				
					parent.shippingmethod[10] = new classShippingMethod;
		parent.shippingmethod[10].caption="Afhalen 's Heerenberg - Bosch";
		parent.shippingmethod[10].info="Slijterij Bosch                                                              Stadsplein 2                                                                7041 JA 's Heerenberg";
		parent.shippingmethod[10].uid="10000095e2089e802";
		parent.shippingmethod[10].free=0;
		parent.shippingmethod[10].vat=19;
					parent.shippingmethod[10].price[1]=0;				
			parent.shippingmethod[10].weight[1]=0;				
					parent.shippingmethod[10].price[2]=0;				
			parent.shippingmethod[10].weight[2]=0;				
					parent.shippingmethod[10].price[3]=0;				
			parent.shippingmethod[10].weight[3]=0;				
					parent.shippingmethod[10].price[4]=0;				
			parent.shippingmethod[10].weight[4]=0;				
					parent.shippingmethod[10].price[5]=0;				
			parent.shippingmethod[10].weight[5]=0;				
					parent.shippingmethod[11] = new classShippingMethod;
		parent.shippingmethod[11].caption="Afhalen Heino - van Dam";
		parent.shippingmethod[11].info="Slijterij Wijnhandel van Dam                                        Dorpsstraat 10                                                            8141 AL  Heino";
		parent.shippingmethod[11].uid="000000948b11ede09";
		parent.shippingmethod[11].free=0;
		parent.shippingmethod[11].vat=19;
					parent.shippingmethod[11].price[1]=0;				
			parent.shippingmethod[11].weight[1]=0;				
					parent.shippingmethod[11].price[2]=0;				
			parent.shippingmethod[11].weight[2]=0;				
					parent.shippingmethod[11].price[3]=0;				
			parent.shippingmethod[11].weight[3]=0;				
					parent.shippingmethod[11].price[4]=0;				
			parent.shippingmethod[11].weight[4]=0;				
					parent.shippingmethod[11].price[5]=0;				
			parent.shippingmethod[11].weight[5]=0;				
					parent.shippingmethod[12] = new classShippingMethod;
		parent.shippingmethod[12].caption="Afhalen Hengelo - Twentetap";
		parent.shippingmethod[12].info="Twentetap Partyverhuur                                             Lijsterweg 91                                                               7557 PM  Hengelo";
		parent.shippingmethod[12].uid="10000099a20d7a401";
		parent.shippingmethod[12].free=0;
		parent.shippingmethod[12].vat=19;
					parent.shippingmethod[12].price[1]=0;				
			parent.shippingmethod[12].weight[1]=0;				
					parent.shippingmethod[12].price[2]=0;				
			parent.shippingmethod[12].weight[2]=0;				
					parent.shippingmethod[12].price[3]=0;				
			parent.shippingmethod[12].weight[3]=0;				
					parent.shippingmethod[12].price[4]=0;				
			parent.shippingmethod[12].weight[4]=0;				
					parent.shippingmethod[12].price[5]=0;				
			parent.shippingmethod[12].weight[5]=0;				
					parent.shippingmethod[13] = new classShippingMethod;
		parent.shippingmethod[13].caption="Afhalen Losser - Slijterij 't Raedhuys";
		parent.shippingmethod[13].info="Slijterij t Raedthuys                                                     St. Maartenstraat 57                                                   7581 AK  Losser";
		parent.shippingmethod[13].uid="1000009f260c59a01";
		parent.shippingmethod[13].free=0;
		parent.shippingmethod[13].vat=19;
					parent.shippingmethod[13].price[1]=0;				
			parent.shippingmethod[13].weight[1]=0;				
					parent.shippingmethod[13].price[2]=0;				
			parent.shippingmethod[13].weight[2]=0;				
					parent.shippingmethod[13].price[3]=0;				
			parent.shippingmethod[13].weight[3]=0;				
					parent.shippingmethod[13].price[4]=0;				
			parent.shippingmethod[13].weight[4]=0;				
					parent.shippingmethod[13].price[5]=0;				
			parent.shippingmethod[13].weight[5]=0;				
					parent.shippingmethod[14] = new classShippingMethod;
		parent.shippingmethod[14].caption="Afhalen Nijverdal - Hegeman Hulsen";
		parent.shippingmethod[14].info="Hegeman Catering en verhuur                                    Mr.Werkmanstraat 5                                                   7443 SB  Nijverdal (gem.Hellendoorn)";
		parent.shippingmethod[14].uid="10000094b00ee8e02";
		parent.shippingmethod[14].free=0;
		parent.shippingmethod[14].vat=19;
					parent.shippingmethod[14].price[1]=0;				
			parent.shippingmethod[14].weight[1]=0;				
					parent.shippingmethod[14].price[2]=0;				
			parent.shippingmethod[14].weight[2]=0;				
					parent.shippingmethod[14].price[3]=0;				
			parent.shippingmethod[14].weight[3]=0;				
					parent.shippingmethod[14].price[4]=0;				
			parent.shippingmethod[14].weight[4]=0;				
					parent.shippingmethod[14].price[5]=0;				
			parent.shippingmethod[14].weight[5]=0;				
					parent.shippingmethod[15] = new classShippingMethod;
		parent.shippingmethod[15].caption="Afhalen Oldenzaal - de Smorre";
		parent.shippingmethod[15].info="Slijterij Wijnhandel de Smörre                                      Burgemeester Wallerstraat 119                                  7574 AL  Oldenzaal";
		parent.shippingmethod[15].uid="000000948b11c5704";
		parent.shippingmethod[15].free=0;
		parent.shippingmethod[15].vat=19;
					parent.shippingmethod[15].price[1]=0;				
			parent.shippingmethod[15].weight[1]=0;				
					parent.shippingmethod[15].price[2]=0;				
			parent.shippingmethod[15].weight[2]=0;				
					parent.shippingmethod[15].price[3]=0;				
			parent.shippingmethod[15].weight[3]=0;				
					parent.shippingmethod[15].price[4]=0;				
			parent.shippingmethod[15].weight[4]=0;				
					parent.shippingmethod[15].price[5]=0;				
			parent.shippingmethod[15].weight[5]=0;				
					parent.shippingmethod[16] = new classShippingMethod;
		parent.shippingmethod[16].caption="Afhalen Ommen - vd Beek";
		parent.shippingmethod[16].info="Slijterij van der Beek                                                    Schurinkhof 4-6                                                           7731 EX  Ommen";
		parent.shippingmethod[16].uid="10000094ae08bdb03";
		parent.shippingmethod[16].free=0;
		parent.shippingmethod[16].vat=19;
					parent.shippingmethod[16].price[1]=0;				
			parent.shippingmethod[16].weight[1]=0;				
					parent.shippingmethod[16].price[2]=0;				
			parent.shippingmethod[16].weight[2]=0;				
					parent.shippingmethod[16].price[3]=0;				
			parent.shippingmethod[16].weight[3]=0;				
					parent.shippingmethod[16].price[4]=0;				
			parent.shippingmethod[16].weight[4]=0;				
					parent.shippingmethod[16].price[5]=0;				
			parent.shippingmethod[16].weight[5]=0;				
					parent.shippingmethod[17] = new classShippingMethod;
		parent.shippingmethod[17].caption="Afhalen Rijssen - Spekhorst";
		parent.shippingmethod[17].info="Slijterij Spekhorst                                                         Grotestraat 26                                                            7461 KG  Rijssen";
		parent.shippingmethod[17].uid="000000948b1463115";
		parent.shippingmethod[17].free=0;
		parent.shippingmethod[17].vat=19;
					parent.shippingmethod[17].price[1]=0;				
			parent.shippingmethod[17].weight[1]=0;				
					parent.shippingmethod[17].price[2]=0;				
			parent.shippingmethod[17].weight[2]=0;				
					parent.shippingmethod[17].price[3]=0;				
			parent.shippingmethod[17].weight[3]=0;				
					parent.shippingmethod[17].price[4]=0;				
			parent.shippingmethod[17].weight[4]=0;				
					parent.shippingmethod[17].price[5]=0;				
			parent.shippingmethod[17].weight[5]=0;				
					parent.shippingmethod[18] = new classShippingMethod;
		parent.shippingmethod[18].caption="Afhalen Schalkhaar - Swartjes";
		parent.shippingmethod[18].info="Slijterij Swartjes                                                          Pastoorsdijk 26                                                            7433 DK  Schalkhaar                                                          ";
		parent.shippingmethod[18].uid="10000094b00e33201";
		parent.shippingmethod[18].free=0;
		parent.shippingmethod[18].vat=19;
					parent.shippingmethod[18].price[1]=0;				
			parent.shippingmethod[18].weight[1]=0;				
					parent.shippingmethod[18].price[2]=0;				
			parent.shippingmethod[18].weight[2]=0;				
					parent.shippingmethod[18].price[3]=0;				
			parent.shippingmethod[18].weight[3]=0;				
					parent.shippingmethod[18].price[4]=0;				
			parent.shippingmethod[18].weight[4]=0;				
					parent.shippingmethod[18].price[5]=0;				
			parent.shippingmethod[18].weight[5]=0;				
					parent.shippingmethod[19] = new classShippingMethod;
		parent.shippingmethod[19].caption="Afhalen Tubbergen - Raedhuis Tubbergen";
		parent.shippingmethod[19].info="Raedhuis Tubbergen                                                   Molenstraat 1                                                              7651 AS Tubbergen";
		parent.shippingmethod[19].uid="1000009f5a0b82f01";
		parent.shippingmethod[19].free=0;
		parent.shippingmethod[19].vat=19;
					parent.shippingmethod[19].price[1]=0;				
			parent.shippingmethod[19].weight[1]=0;				
					parent.shippingmethod[19].price[2]=0;				
			parent.shippingmethod[19].weight[2]=0;				
					parent.shippingmethod[19].price[3]=0;				
			parent.shippingmethod[19].weight[3]=0;				
					parent.shippingmethod[19].price[4]=0;				
			parent.shippingmethod[19].weight[4]=0;				
					parent.shippingmethod[19].price[5]=0;				
			parent.shippingmethod[19].weight[5]=0;				
					parent.shippingmethod[20] = new classShippingMethod;
		parent.shippingmethod[20].caption="Afhalen Vriezenveen - Peddemors";
		parent.shippingmethod[20].info="Partyservice Peddemors                                              Oude Hoevenweg 90a                                                 7671 PK  Vriezenveen";
		parent.shippingmethod[20].uid="000000948b11ec608";
		parent.shippingmethod[20].free=0;
		parent.shippingmethod[20].vat=19;
					parent.shippingmethod[20].price[1]=0;				
			parent.shippingmethod[20].weight[1]=0;				
					parent.shippingmethod[20].price[2]=0;				
			parent.shippingmethod[20].weight[2]=0;				
					parent.shippingmethod[20].price[3]=0;				
			parent.shippingmethod[20].weight[3]=0;				
					parent.shippingmethod[20].price[4]=0;				
			parent.shippingmethod[20].weight[4]=0;				
					parent.shippingmethod[20].price[5]=0;				
			parent.shippingmethod[20].weight[5]=0;				
					parent.shippingmethod[21] = new classShippingMethod;
		parent.shippingmethod[21].caption="Afhalen Zeeland (NB) - v/d Ven";
		parent.shippingmethod[21].info="Slijterij vd Ven                                                             Kerkstraat 65a                                                           5411 EC Zeeland  ";
		parent.shippingmethod[21].uid="10000095e208a9403";
		parent.shippingmethod[21].free=0;
		parent.shippingmethod[21].vat=19;
					parent.shippingmethod[21].price[1]=0;				
			parent.shippingmethod[21].weight[1]=0;				
					parent.shippingmethod[21].price[2]=0;				
			parent.shippingmethod[21].weight[2]=0;				
					parent.shippingmethod[21].price[3]=0;				
			parent.shippingmethod[21].weight[3]=0;				
					parent.shippingmethod[21].price[4]=0;				
			parent.shippingmethod[21].weight[4]=0;				
					parent.shippingmethod[21].price[5]=0;				
			parent.shippingmethod[21].weight[5]=0;				
					parent.shippingmethod[22] = new classShippingMethod;
		parent.shippingmethod[22].caption="Afhalen Zwolle - Stroomberg Brink";
		parent.shippingmethod[22].info="Slijterij Stroomberg                                                      Brink 1                                                                         8021 AP  Zwolle";
		parent.shippingmethod[22].uid="100000950908f1702";
		parent.shippingmethod[22].free=0;
		parent.shippingmethod[22].vat=19;
					parent.shippingmethod[22].price[1]=0;				
			parent.shippingmethod[22].weight[1]=0;				
					parent.shippingmethod[22].price[2]=0;				
			parent.shippingmethod[22].weight[2]=0;				
					parent.shippingmethod[22].price[3]=0;				
			parent.shippingmethod[22].weight[3]=0;				
					parent.shippingmethod[22].price[4]=0;				
			parent.shippingmethod[22].weight[4]=0;				
					parent.shippingmethod[22].price[5]=0;				
			parent.shippingmethod[22].weight[5]=0;				
					parent.shippingmethod[23] = new classShippingMethod;
		parent.shippingmethod[23].caption="Verzending Tap/Koel pallet Nederland";
		parent.shippingmethod[23].info="Voor zwaardere palletzendingen en zendingen naar het buitenland: vinkt u deze optie aan en wij nemen contact met u op voor de correcte prijs! ";
		parent.shippingmethod[23].uid="10000097c90779604";
		parent.shippingmethod[23].free=0;
		parent.shippingmethod[23].vat=19;
					parent.shippingmethod[23].price[1]=.01;				
			parent.shippingmethod[23].weight[1]=999;				
					parent.shippingmethod[23].price[2]=0;				
			parent.shippingmethod[23].weight[2]=0;				
					parent.shippingmethod[23].price[3]=0;				
			parent.shippingmethod[23].weight[3]=0;				
					parent.shippingmethod[23].price[4]=0;				
			parent.shippingmethod[23].weight[4]=0;				
					parent.shippingmethod[23].price[5]=0;				
			parent.shippingmethod[23].weight[5]=0;				
					parent.shippingmethod[24] = new classShippingMethod;
		parent.shippingmethod[24].caption="Verzending Belgie";
		parent.shippingmethod[24].info="Het maximale gewicht per pakket bedraagt 30 kilo. bv maximaal 5 beertender of 3 Perfect Draft vaatjes.";
		parent.shippingmethod[24].uid="100000978e090b601";
		parent.shippingmethod[24].free=0;
		parent.shippingmethod[24].vat=19;
					parent.shippingmethod[24].price[1]=8.95;				
			parent.shippingmethod[24].weight[1]=9.99;				
					parent.shippingmethod[24].price[2]=9.45;				
			parent.shippingmethod[24].weight[2]=19.99;				
					parent.shippingmethod[24].price[3]=9.95;				
			parent.shippingmethod[24].weight[3]=29.99;				
					parent.shippingmethod[24].price[4]=19.9;				
			parent.shippingmethod[24].weight[4]=59.99;				
					parent.shippingmethod[24].price[5]=29.85;				
			parent.shippingmethod[24].weight[5]=89.99;				
					parent.shippingmethod[25] = new classShippingMethod;
		parent.shippingmethod[25].caption="Shipment Austria";
		parent.shippingmethod[25].info="Shipment only in combination with forward paying or PayPal. One package contains a maximum of 30kg. (for example 5 beertender or 3 Perfect Drafts)   ";
		parent.shippingmethod[25].uid="10000097980aaf509";
		parent.shippingmethod[25].free=0;
		parent.shippingmethod[25].vat=19;
					parent.shippingmethod[25].price[1]=16.95;				
			parent.shippingmethod[25].weight[1]=9.99;				
					parent.shippingmethod[25].price[2]=17.45;				
			parent.shippingmethod[25].weight[2]=19.99;				
					parent.shippingmethod[25].price[3]=17.95;				
			parent.shippingmethod[25].weight[3]=29.99;				
					parent.shippingmethod[25].price[4]=35.9;				
			parent.shippingmethod[25].weight[4]=59.99;				
					parent.shippingmethod[25].price[5]=53.85;				
			parent.shippingmethod[25].weight[5]=89.99;				
					parent.shippingmethod[26] = new classShippingMethod;
		parent.shippingmethod[26].caption="Shipment Canada";
		parent.shippingmethod[26].info="Shipment only in combination with forward paying or PayPal. One package contains a maximum of 30kg. (for example 5 beertender or 3 Perfect Drafts) <Fakt.4x+waarde>";
		parent.shippingmethod[26].uid="1000009fba0adbb0e";
		parent.shippingmethod[26].free=0;
		parent.shippingmethod[26].vat=19;
					parent.shippingmethod[26].price[1]=54.95;				
			parent.shippingmethod[26].weight[1]=9.99;				
					parent.shippingmethod[26].price[2]=76.95;				
			parent.shippingmethod[26].weight[2]=19.99;				
					parent.shippingmethod[26].price[3]=103.95;				
			parent.shippingmethod[26].weight[3]=29.99;				
					parent.shippingmethod[26].price[4]=207.9;				
			parent.shippingmethod[26].weight[4]=59.99;				
					parent.shippingmethod[26].price[5]=311.85;				
			parent.shippingmethod[26].weight[5]=89.99;				
					parent.shippingmethod[27] = new classShippingMethod;
		parent.shippingmethod[27].caption="Shipment Denmark";
		parent.shippingmethod[27].info="Shipment only in combination with forward paying or PayPal. One package contains a maximum of 30kg. (for example 5 beertender or 3 Perfect Drafts)   ";
		parent.shippingmethod[27].uid="100000978e094f403";
		parent.shippingmethod[27].free=0;
		parent.shippingmethod[27].vat=19;
					parent.shippingmethod[27].price[1]=18.95;				
			parent.shippingmethod[27].weight[1]=9.99;				
					parent.shippingmethod[27].price[2]=23.95;				
			parent.shippingmethod[27].weight[2]=19.99;				
					parent.shippingmethod[27].price[3]=30.95;				
			parent.shippingmethod[27].weight[3]=29.99;				
					parent.shippingmethod[27].price[4]=61.9;				
			parent.shippingmethod[27].weight[4]=59.99;				
					parent.shippingmethod[27].price[5]=92.85;				
			parent.shippingmethod[27].weight[5]=89.99;				
					parent.shippingmethod[28] = new classShippingMethod;
		parent.shippingmethod[28].caption="Shipment England";
		parent.shippingmethod[28].info="Shipment only in combination with forward paying or PayPal. One package contains a maximum of 30kg. (for example 5 beertender or 3 Perfect Drafts)   ";
		parent.shippingmethod[28].uid="100000978e092a602";
		parent.shippingmethod[28].free=0;
		parent.shippingmethod[28].vat=19;
					parent.shippingmethod[28].price[1]=20.95;				
			parent.shippingmethod[28].weight[1]=9.99;				
					parent.shippingmethod[28].price[2]=21.45;				
			parent.shippingmethod[28].weight[2]=19.99;				
					parent.shippingmethod[28].price[3]=21.95;				
			parent.shippingmethod[28].weight[3]=29.99;				
					parent.shippingmethod[28].price[4]=43.9;				
			parent.shippingmethod[28].weight[4]=59.99;				
					parent.shippingmethod[28].price[5]=65.85;				
			parent.shippingmethod[28].weight[5]=89.99;				
					parent.shippingmethod[29] = new classShippingMethod;
		parent.shippingmethod[29].caption="Shipment Finland";
		parent.shippingmethod[29].info="Shipment only in combination with forward paying or PayPal. One package contains a maximum of 30kg. (for example 5 beertender or 3 Perfect Drafts) ";
		parent.shippingmethod[29].uid="1000009fba0acce0c";
		parent.shippingmethod[29].free=0;
		parent.shippingmethod[29].vat=19;
					parent.shippingmethod[29].price[1]=36.95;				
			parent.shippingmethod[29].weight[1]=9.99;				
					parent.shippingmethod[29].price[2]=47.95;				
			parent.shippingmethod[29].weight[2]=19.99;				
					parent.shippingmethod[29].price[3]=52.95;				
			parent.shippingmethod[29].weight[3]=29.99;				
					parent.shippingmethod[29].price[4]=105.9;				
			parent.shippingmethod[29].weight[4]=59.99;				
					parent.shippingmethod[29].price[5]=158.85;				
			parent.shippingmethod[29].weight[5]=89.99;				
					parent.shippingmethod[30] = new classShippingMethod;
		parent.shippingmethod[30].caption="Shipment France";
		parent.shippingmethod[30].info="Shipment only in combination with forward paying or PayPal. One package contains a maximum of 30kg. (for example 5 beertender or 3 Perfect Drafts)   ";
		parent.shippingmethod[30].uid="10000097980ac8f0a";
		parent.shippingmethod[30].free=0;
		parent.shippingmethod[30].vat=19;
					parent.shippingmethod[30].price[1]=21.95;				
			parent.shippingmethod[30].weight[1]=9.99;				
					parent.shippingmethod[30].price[2]=22.95;				
			parent.shippingmethod[30].weight[2]=19.99;				
					parent.shippingmethod[30].price[3]=23.95;				
			parent.shippingmethod[30].weight[3]=29.99;				
					parent.shippingmethod[30].price[4]=45.9;				
			parent.shippingmethod[30].weight[4]=59.99;				
					parent.shippingmethod[30].price[5]=67.85;				
			parent.shippingmethod[30].weight[5]=89.99;				
					parent.shippingmethod[31] = new classShippingMethod;
		parent.shippingmethod[31].caption="Shipment Germany";
		parent.shippingmethod[31].info="Shipment only in combination with forward paying or PayPal. One package contains a maximum of 30kg. (for example 5 beertender or 3 Perfect Drafts)                                                 ";
		parent.shippingmethod[31].uid="100000972108cc601";
		parent.shippingmethod[31].free=0;
		parent.shippingmethod[31].vat=19;
					parent.shippingmethod[31].price[1]=9.95;				
			parent.shippingmethod[31].weight[1]=9.99;				
					parent.shippingmethod[31].price[2]=10.45;				
			parent.shippingmethod[31].weight[2]=19.99;				
					parent.shippingmethod[31].price[3]=10.95;				
			parent.shippingmethod[31].weight[3]=29.99;				
					parent.shippingmethod[31].price[4]=21.9;				
			parent.shippingmethod[31].weight[4]=59.99;				
					parent.shippingmethod[31].price[5]=32.85;				
			parent.shippingmethod[31].weight[5]=89.99;				
					parent.shippingmethod[32] = new classShippingMethod;
		parent.shippingmethod[32].caption="Shipment Greece";
		parent.shippingmethod[32].info="Shipment only in combination with forward paying or PayPal. One package contains a maximum of 30kg. (for example 5 beertender or 3 Perfect Drafts) ";
		parent.shippingmethod[32].uid="1000009fba0ae090f";
		parent.shippingmethod[32].free=0;
		parent.shippingmethod[32].vat=19;
					parent.shippingmethod[32].price[1]=35.95;				
			parent.shippingmethod[32].weight[1]=9.99;				
					parent.shippingmethod[32].price[2]=47.95;				
			parent.shippingmethod[32].weight[2]=19.99;				
					parent.shippingmethod[32].price[3]=53.95;				
			parent.shippingmethod[32].weight[3]=29.99;				
					parent.shippingmethod[32].price[4]=107.9;				
			parent.shippingmethod[32].weight[4]=59.99;				
					parent.shippingmethod[32].price[5]=161.85;				
			parent.shippingmethod[32].weight[5]=89.99;				
					parent.shippingmethod[33] = new classShippingMethod;
		parent.shippingmethod[33].caption="Shipment Ireland";
		parent.shippingmethod[33].info="Shipment only in combination with forward paying or PayPal. One package contains a maximum of 30kg. (for example 5 beertender or 3 Perfect Drafts)                                          ";
		parent.shippingmethod[33].uid="100000986f0c03c01";
		parent.shippingmethod[33].free=0;
		parent.shippingmethod[33].vat=19;
					parent.shippingmethod[33].price[1]=33.95;				
			parent.shippingmethod[33].weight[1]=9.99;				
					parent.shippingmethod[33].price[2]=34.45;				
			parent.shippingmethod[33].weight[2]=19.99;				
					parent.shippingmethod[33].price[3]=34.95;				
			parent.shippingmethod[33].weight[3]=29.99;				
					parent.shippingmethod[33].price[4]=69.9;				
			parent.shippingmethod[33].weight[4]=59.99;				
					parent.shippingmethod[33].price[5]=104.85;				
			parent.shippingmethod[33].weight[5]=89.99;				
					parent.shippingmethod[34] = new classShippingMethod;
		parent.shippingmethod[34].caption="Shipment Italie";
		parent.shippingmethod[34].info="Shipment only in combination with forward paying or PayPal. One package contains a maximum of 30kg. (for example 5 beertender or 3 Perfect Drafts)                                                           ";
		parent.shippingmethod[34].uid="10000098770abb201";
		parent.shippingmethod[34].free=0;
		parent.shippingmethod[34].vat=19;
					parent.shippingmethod[34].price[1]=22.95;				
			parent.shippingmethod[34].weight[1]=9.99;				
					parent.shippingmethod[34].price[2]=23.45;				
			parent.shippingmethod[34].weight[2]=19.99;				
					parent.shippingmethod[34].price[3]=23.95;				
			parent.shippingmethod[34].weight[3]=29.99;				
					parent.shippingmethod[34].price[4]=47.9;				
			parent.shippingmethod[34].weight[4]=59.99;				
					parent.shippingmethod[34].price[5]=71.85;				
			parent.shippingmethod[34].weight[5]=89.99;				
					parent.shippingmethod[35] = new classShippingMethod;
		parent.shippingmethod[35].caption="Shipment Luxembourg";
		parent.shippingmethod[35].info="Shipment only in combination with forward paying or PayPal. One package contains a maximum of 30kg. (for example 5 beertender or 3 Perfect Drafts) ";
		parent.shippingmethod[35].uid="1000009fba0ad2f0d";
		parent.shippingmethod[35].free=0;
		parent.shippingmethod[35].vat=19;
					parent.shippingmethod[35].price[1]=16.95;				
			parent.shippingmethod[35].weight[1]=9.99;				
					parent.shippingmethod[35].price[2]=19.95;				
			parent.shippingmethod[35].weight[2]=19.99;				
					parent.shippingmethod[35].price[3]=23.95;				
			parent.shippingmethod[35].weight[3]=29.99;				
					parent.shippingmethod[35].price[4]=47.9;				
			parent.shippingmethod[35].weight[4]=59.99;				
					parent.shippingmethod[35].price[5]=71.85;				
			parent.shippingmethod[35].weight[5]=89.99;				
					parent.shippingmethod[36] = new classShippingMethod;
		parent.shippingmethod[36].caption="Shipment Norway";
		parent.shippingmethod[36].info="Shipment only in combination with forward paying or PayPal. One package contains a maximum of 30kg. (for example 5 beertender or 3 Perfect Drafts)  <fakt.4x+waarde>";
		parent.shippingmethod[36].uid="1000009fba0ac040b";
		parent.shippingmethod[36].free=0;
		parent.shippingmethod[36].vat=19;
					parent.shippingmethod[36].price[1]=41.95;				
			parent.shippingmethod[36].weight[1]=9.99;				
					parent.shippingmethod[36].price[2]=51.95;				
			parent.shippingmethod[36].weight[2]=19.99;				
					parent.shippingmethod[36].price[3]=67.95;				
			parent.shippingmethod[36].weight[3]=29.99;				
					parent.shippingmethod[36].price[4]=135.9;				
			parent.shippingmethod[36].weight[4]=59.99;				
					parent.shippingmethod[36].price[5]=203.85;				
			parent.shippingmethod[36].weight[5]=89.99;				
					parent.shippingmethod[37] = new classShippingMethod;
		parent.shippingmethod[37].caption="Shipment Portugal";
		parent.shippingmethod[37].info="Shipment only in combination with forward paying or PayPal. One package contains a maximum of 30kg. (for example 5 beertender or 3 Perfect Drafts) ";
		parent.shippingmethod[37].uid="1000009fba0aece11";
		parent.shippingmethod[37].free=0;
		parent.shippingmethod[37].vat=19;
					parent.shippingmethod[37].price[1]=35.95;				
			parent.shippingmethod[37].weight[1]=9.99;				
					parent.shippingmethod[37].price[2]=46.95;				
			parent.shippingmethod[37].weight[2]=19.99;				
					parent.shippingmethod[37].price[3]=58.95;				
			parent.shippingmethod[37].weight[3]=29.99;				
					parent.shippingmethod[37].price[4]=117.9;				
			parent.shippingmethod[37].weight[4]=59.99;				
					parent.shippingmethod[37].price[5]=176.85;				
			parent.shippingmethod[37].weight[5]=89.99;				
					parent.shippingmethod[38] = new classShippingMethod;
		parent.shippingmethod[38].caption="Shipment Spain";
		parent.shippingmethod[38].info="Shipment only in combination with forward paying or PayPal. One package contains a maximum of 30kg. (for example 5 beertender or 3 Perfect Drafts) ";
		parent.shippingmethod[38].uid="1000009fba0ae7d10";
		parent.shippingmethod[38].free=0;
		parent.shippingmethod[38].vat=19;
					parent.shippingmethod[38].price[1]=29.95;				
			parent.shippingmethod[38].weight[1]=9.99;				
					parent.shippingmethod[38].price[2]=39.95;				
			parent.shippingmethod[38].weight[2]=19.99;				
					parent.shippingmethod[38].price[3]=55.95;				
			parent.shippingmethod[38].weight[3]=29.99;				
					parent.shippingmethod[38].price[4]=111.9;				
			parent.shippingmethod[38].weight[4]=59.99;				
					parent.shippingmethod[38].price[5]=167.85;				
			parent.shippingmethod[38].weight[5]=89.99;				
					parent.shippingmethod[39] = new classShippingMethod;
		parent.shippingmethod[39].caption="Shipment Sweden";
		parent.shippingmethod[39].info="Shipment only in combination with forward paying or PayPal. One package contains a maximum of 30kg. (for example 5 beertender or 3 Perfect Drafts)   ";
		parent.shippingmethod[39].uid="1000009940078ef01";
		parent.shippingmethod[39].free=0;
		parent.shippingmethod[39].vat=19;
					parent.shippingmethod[39].price[1]=22.95;				
			parent.shippingmethod[39].weight[1]=9.99;				
					parent.shippingmethod[39].price[2]=23.45;				
			parent.shippingmethod[39].weight[2]=19.99;				
					parent.shippingmethod[39].price[3]=23.95;				
			parent.shippingmethod[39].weight[3]=29.99;				
					parent.shippingmethod[39].price[4]=47.9;				
			parent.shippingmethod[39].weight[4]=59.99;				
					parent.shippingmethod[39].price[5]=71.85;				
			parent.shippingmethod[39].weight[5]=89.99;				
					parent.shippingmethod[40] = new classShippingMethod;
		parent.shippingmethod[40].caption="Shipment Switzerland";
		parent.shippingmethod[40].info="Shipment only in combination with forward paying or PayPal. One package contains a maximum of 30kg. (for example 5 beertender or 3 Perfect Drafts)   <fakt.4x+waarde>";
		parent.shippingmethod[40].uid="100000994108c1b01";
		parent.shippingmethod[40].free=0;
		parent.shippingmethod[40].vat=19;
					parent.shippingmethod[40].price[1]=36.95;				
			parent.shippingmethod[40].weight[1]=9.99;				
					parent.shippingmethod[40].price[2]=49.95;				
			parent.shippingmethod[40].weight[2]=19.99;				
					parent.shippingmethod[40].price[3]=60.95;				
			parent.shippingmethod[40].weight[3]=29.99;				
					parent.shippingmethod[40].price[4]=121.9;				
			parent.shippingmethod[40].weight[4]=59.99;				
					parent.shippingmethod[40].price[5]=182.85;				
			parent.shippingmethod[40].weight[5]=89.99;				
				}
}

function shippingShow() {
// Versand-Methoden anzeigen

	var i,j,sum,totalweight, totalprice;
	
	defineShippingMethods();
	updateActualPrice();
	
	sum=0;
	totalweight=0;
	totalprice=0;
	
	for (i=0;i<parent.basket.length;i++) {
		sum+=parent.basket[i].quantity;
		totalweight+=parent.basket[i].weight*parent.basket[i].quantity;
		totalprice+=parent.basket[i].actualpriceall;
	}	
	
	if (sum==0)	{
		document.write("<p>Uw winkelmandje is leeg</p>");
	}
	else {
		document.write("<form name='shippingform'>");
		document.write("<table width='100%' cellpadding='2'>");
		for (i=1;i<parent.shippingmethod.length;i++) {
			
			parent.shippingmethod[i].actualprice=-1;
						
			if (parent.shippingmethod[i].weight[1]==0) {
				// Nur ein Preis
				parent.shippingmethod[i].actualprice=parent.shippingmethod[i].price[1];
			}
			else {
				// Preis nach Gewicht
				for (j=parent.shippingmethod[i].weight.length;j>0;j--) {
					if (parent.shippingmethod[i].weight[j]!=0) {
						if (totalweight<=parent.shippingmethod[i].weight[j]) {
							parent.shippingmethod[i].actualprice=parent.shippingmethod[i].price[j];
						}
					}
				}
			}
			// Versandkostenfrei?
			if ((totalprice>=parent.shippingmethod[i].free) && (parent.shippingmethod[i].free!=0) && (parent.shippingmethod[i].actualprice!=-1)) {
				parent.shippingmethod[i].actualprice=0;
			}
			
			// Nicht erlaubte Methode?			
			for (j=0;j<parent.basket.length;j++) {
				if (parent.basket[j].quantity!=0) {
					if (parent.basket[j].noship.indexOf(parent.shippingmethod[i].uid)!=-1)
  					parent.shippingmethod[i].actualprice=-1;
				}
			}
			// GGf Auswahl löschen
			if ((parent.shippingmethod[i].actualprice==-1) && (i==parent.selectedshippingmethod)) {
				parent.selectedshippingmethod=-1;
			}
		}
		for (i=1;i<parent.shippingmethod.length;i++) {		
			// Anzeigen
			if (parent.shippingmethod[i].actualprice!=-1) {
				// Wenn nichts gewählt, erstes wählen
				if (parent.selectedshippingmethod==-1) {
					parent.selectedshippingmethod=i
				}
				document.write("<tr>");
				document.write("<td class='s2d'><input type='radio' ")
				if (i==parent.selectedshippingmethod) {
					document.write("checked ");
				}
				document.write("onclick='setShipping();' name='method' value='"+i+"'></td>");
				document.write("<td class='s2d' width='100%'><strong>"+parent.shippingmethod[i].caption+"</strong><br></td>");
				document.write("<td align='right' nowrap class='s2d'><strong>")
				if (parent.shippingmethod[i].actualprice!=0) {
					document.write(format(parent.shippingmethod[i].actualprice)+" EUR");
				} else {
					document.write("gratis");
				} 
				document.write("</strong></td>");
				document.write("</tr>");
				if (parent.shippingmethod[i].info!="") {
					document.write("<tr>");
					document.write("<td></td>");
					document.write("<td class='s2d' width='100%'>"+parent.shippingmethod[i].info+"<br><br></td>");
					document.write("<td></td>");
					document.write("</tr>");
				}
			}
		}
		
		// Gewicht zeigen
		
		if (totalweight>0) {
			document.write("<tr>");
			document.write("<td></td>");
			document.write("<td class='s2d'><br>Totaalgewicht: "+formatweight(totalweight)+" kg<br><br></td>");
			document.write("<td></td>");
			document.write("</tr>");
		}
		
		// Navigation unten
		document.write("</table>");
		document.write("</form>");		
	
		document.write("<table width='100%' cellpadding='2'>");
		document.write("<tr>");		
		document.write("<td align='left'><a href='s2dbskt.html'><img src='images/pbskt.gif' width='150' height='25' alt='' border='0'></a></td>");
		document.write("<td align='right'><a href='s2dpayment.html'><img src='images/pcob.gif' width='150' height='25' alt='' border='0'></a></td>");
		document.write("</tr>");		
		document.write("</table>");
	}
}

function setShipping() {
// Versand-Methode einstellen

	var i;
	parent.selectedshippingmethod=-1;
	for (i=0;i<document.shippingform.method.length;i++) {
		if (document.shippingform.method[i].checked) {
			parent.selectedshippingmethod=document.shippingform.method[i].value;
		}
	}
}

function definePaymentMethods() {
// Bezahl-Methoden definieren

	if (parent.paymentmethod.length==0)
	{
			parent.paymentmethod[1] = new classPaymentMethod;
		parent.paymentmethod[1].caption="Eenmalige incasso";
		parent.paymentmethod[1].info="Betaal door middel van een eenmalige incasso van uw bankrekening. Let op: het totaalbedrag van uw bestelling bevat geen eventuele statiegelden! (deze worden apart in rekening gebracht). Levering van tapinstallaties gaan altijd op basis van vooruitbetaling.";
		parent.paymentmethod[1].pregateway="Wij hebben uw bestelling ontvangen. Ter beveiliging van uw gegevens wordt een gecodeerd venster geopend waarin u uw adres en uw betalingsgegevens kunt opgeven. Zodra u alle gegevens hebt ingevoerd en bevestigd, is de bestelling definitief. Hartelijk dank voor uw bezoek aan onze winkel.";
		parent.paymentmethod[1].postgateway="Hartelijk dank voor uw bestelling op Biertap.com. U ontvangt van ons een bevestigingsbericht. Het bedrag wordt binnenkort van uw bankrekening afgeschreven.";
		parent.paymentmethod[1].email="Let op: voeg info@biertap.com toe aan veilige afzenders ivm uw spamfilter!";
		parent.paymentmethod[1].noship="000000948b11f290a 000000948b1212e14 10000094bf09e1a01 000000948b11bdc03 10000094ed0776101 10000098910b29c01 000000948b11e4307 000000948b11d7006 10000095e2089e802 000000948b11ede09 10000099a20d7a401 1000009f260c59a01 10000094b00ee8e02 000000948b11c5704 10000094ae08bdb03 000000948b1463115 10000094b00e33201 1000009f5a0b82f01 000000948b11ec608 10000095e208a9403 100000950908f1702 10000097c90779604 100000978e090b601 10000097980aaf509 1000009fba0adbb0e 100000978e094f403 100000978e092a602 1000009fba0acce0c 10000097980ac8f0a 100000972108cc601 1000009fba0ae090f 100000986f0c03c01 10000098770abb201 1000009fba0ad2f0d 1000009fba0ac040b 1000009fba0aece11 1000009fba0ae7d10 1000009940078ef01 100000994108c1b01";
		parent.paymentmethod[1].uid="000000948114d7320";
		parent.paymentmethod[1].price=0;
		parent.paymentmethod[1].vat=19;
		parent.paymentmethod[1].free=0;
		parent.paymentmethod[1].parameter[0]="debit";
		parent.paymentmethod[1].parameter[1]="";
		parent.paymentmethod[1].parameter[2]="";
		parent.paymentmethod[1].parameter[3]="";
		parent.paymentmethod[1].parameter[4]="";
		parent.paymentmethod[1].parameter[5]="";
		parent.paymentmethod[1].version="shop2dateversion10";
			parent.paymentmethod[2] = new classPaymentMethod;
		parent.paymentmethod[2].caption="PayPal";
		parent.paymentmethod[2].info="U wordt niet doorverwezen naar de PayPal site. Eerst ontvangt u van ons z.s.m. een e-mail met daarin het totaalbedrag. Let op: het totaalbedrag van uw bestelling bevat geen eventuele statiegelden! (deze worden apart in rekening gebracht). (PayPal account:  info@biertap.com)";
		parent.paymentmethod[2].pregateway="Wij hebben uw bestelling ontvangen. Ter beveiliging van uw gegevens wordt een gecodeerd venster geopend waarin u uw adres kunt opgeven. Zodra u alle gegevens hebt ingevoerd en bevestigd, is de bestelling definitief. Hartelijk dank voor uw bezoek aan onze winkel.";
		parent.paymentmethod[2].postgateway="Hartelijk dank voor uw bestelling op Biertap.com. U ontvangt van ons een bevestigingsbericht en z.s.m. een extra e-mail voor uw PayPal betaling.";
		parent.paymentmethod[2].email="Let op: voeg info@biertap.com toe aan veilige afzenders ivm uw spamfilter!";
		parent.paymentmethod[2].noship="000000948b11f290a 000000948b1212e14 10000094bf09e1a01 000000948b11bdc03 10000094ed0776101 10000098910b29c01 000000948b11e4307 000000948b11d7006 10000095e2089e802 000000948b11ede09 10000099a20d7a401 1000009f260c59a01 10000094b00ee8e02 000000948b11c5704 10000094ae08bdb03 000000948b1463115 10000094b00e33201 1000009f5a0b82f01 000000948b11ec608 10000095e208a9403 100000950908f1702";
		parent.paymentmethod[2].uid="10000097a40c84e01";
		parent.paymentmethod[2].price=0;
		parent.paymentmethod[2].vat=19;
		parent.paymentmethod[2].free=0;
		parent.paymentmethod[2].parameter[0]="";
		parent.paymentmethod[2].parameter[1]="";
		parent.paymentmethod[2].parameter[2]="";
		parent.paymentmethod[2].parameter[3]="";
		parent.paymentmethod[2].parameter[4]="";
		parent.paymentmethod[2].parameter[5]="";
		parent.paymentmethod[2].version="shop2dateversion10";
			parent.paymentmethod[3] = new classPaymentMethod;
		parent.paymentmethod[3].caption="PayPal (English)";
		parent.paymentmethod[3].info="You will not be re-directed to the PayPal website. At first we send you a.s.a.p. an e-mail with the total amount. Please note that in some cases you have to pay extra deposit. (PayPal account: info@biertap.com)";
		parent.paymentmethod[3].pregateway="We have received your order. For security a screen pops up where you can enter your data encrypted. When you send the form the sale is done. Thank you for visiting our store.";
		parent.paymentmethod[3].postgateway="Thank you for your order on Biertap.com. You will receive a confirmation e-mail and a.s.a.p. an extra e-mail for your PayPal payment.";
		parent.paymentmethod[3].email="Note: please add info@biertap.com to your save sender list because of your spamfilter!";
		parent.paymentmethod[3].noship="000000948114d6c01 000000948b11f290a 000000948b1212e14 10000094bf09e1a01 000000948b11bdc03 10000094ed0776101 10000098910b29c01 000000948b11e4307 000000948b11d7006 10000095e2089e802 000000948b11ede09 10000099a20d7a401 1000009f260c59a01 10000094b00ee8e02 000000948b11c5704 10000094ae08bdb03 000000948b1463115 10000094b00e33201 1000009f5a0b82f01 000000948b11ec608 10000095e208a9403 100000950908f1702 10000097c90779604";
		parent.paymentmethod[3].uid="1000009f1a0805301";
		parent.paymentmethod[3].price=0;
		parent.paymentmethod[3].vat=19;
		parent.paymentmethod[3].free=0;
		parent.paymentmethod[3].parameter[0]="";
		parent.paymentmethod[3].parameter[1]="";
		parent.paymentmethod[3].parameter[2]="";
		parent.paymentmethod[3].parameter[3]="";
		parent.paymentmethod[3].parameter[4]="";
		parent.paymentmethod[3].parameter[5]="";
		parent.paymentmethod[3].version="shop2dateversion10";
			parent.paymentmethod[4] = new classPaymentMethod;
		parent.paymentmethod[4].caption="Contante betaling";
		parent.paymentmethod[4].info="Bestel de producten via internet, haal de producten op in de winkel en betaal contant. Let op: het totaalbedrag van uw bestelling bevat geen eventuele statiegelden! (deze worden apart in rekening gebracht)";
		parent.paymentmethod[4].pregateway="Wij hebben uw bestelling ontvangen. Ter beveiliging van uw gegevens wordt een gecodeerd venster geopend waarin u uw adres kunt opgeven. Zodra u alle gegevens hebt ingevoerd en bevestigd, is de bestelling definitief. Hartelijk dank voor uw bezoek aan onze winkel.";
		parent.paymentmethod[4].postgateway="Hartelijk dank voor uw bestelling op Biertap.com. U ontvangt van ons een bevestigingsbericht en een bericht wanneer u uw bestelling kunt afhalen bij de gekozen Biertap.com dealer";
		parent.paymentmethod[4].email="Let op: voeg info@biertap.com toe aan veilige afzenders ivm uw spamfilter!";
		parent.paymentmethod[4].noship="000000948114d6c01 10000097c90779604 100000978e090b601 10000097980aaf509 1000009fba0adbb0e 100000978e094f403 100000978e092a602 1000009fba0acce0c 10000097980ac8f0a 100000972108cc601 1000009fba0ae090f 100000986f0c03c01 10000098770abb201 1000009fba0ad2f0d 1000009fba0ac040b 1000009fba0aece11 1000009fba0ae7d10 1000009940078ef01 100000994108c1b01";
		parent.paymentmethod[4].uid="10000094e91052b02";
		parent.paymentmethod[4].price=0;
		parent.paymentmethod[4].vat=19;
		parent.paymentmethod[4].free=0;
		parent.paymentmethod[4].parameter[0]="";
		parent.paymentmethod[4].parameter[1]="";
		parent.paymentmethod[4].parameter[2]="";
		parent.paymentmethod[4].parameter[3]="";
		parent.paymentmethod[4].parameter[4]="";
		parent.paymentmethod[4].parameter[5]="";
		parent.paymentmethod[4].version="shop2dateversion10";
			parent.paymentmethod[5] = new classPaymentMethod;
		parent.paymentmethod[5].caption="Vooruit betaling";
		parent.paymentmethod[5].info="Bij vooruit betaling nemen wij contact met u op. Let op: het totaalbedrag van uw bestelling bevat geen eventuele statiegelden! (deze worden apart in rekening gebracht)                                                                                                               ";
		parent.paymentmethod[5].pregateway="Wij hebben uw bestelling ontvangen. Ter beveiliging van uw gegevens wordt een gecodeerd venster geopend waarin u uw adres kunt opgeven. Zodra u alle gegevens hebt ingevoerd en bevestigd, is de bestelling definitief. Hartelijk dank voor uw bezoek aan onze winkel.                                                                ";
		parent.paymentmethod[5].postgateway="Hartelijk dank voor uw bestelling op Biertap.com. U ontvangt van ons een bevestigingsbericht.";
		parent.paymentmethod[5].email="Let op: voeg info@biertap.com toe aan veilige afzenders ivm uw spamfilter!";
		parent.paymentmethod[5].noship="000000948b11f290a 000000948b1212e14 10000094bf09e1a01 000000948b11bdc03 10000094ed0776101 10000098910b29c01 000000948b11e4307 000000948b11d7006 10000095e2089e802 000000948b11ede09 10000099a20d7a401 1000009f260c59a01 10000094b00ee8e02 000000948b11c5704 10000094ae08bdb03 000000948b1463115 10000094b00e33201 1000009f5a0b82f01 000000948b11ec608 10000095e208a9403 100000950908f1702";
		parent.paymentmethod[5].uid="10000098940abc001";
		parent.paymentmethod[5].price=0;
		parent.paymentmethod[5].vat=19;
		parent.paymentmethod[5].free=0;
		parent.paymentmethod[5].parameter[0]="";
		parent.paymentmethod[5].parameter[1]="";
		parent.paymentmethod[5].parameter[2]="";
		parent.paymentmethod[5].parameter[3]="";
		parent.paymentmethod[5].parameter[4]="";
		parent.paymentmethod[5].parameter[5]="";
		parent.paymentmethod[5].version="shop2dateversion10";
			parent.paymentmethod[6] = new classPaymentMethod;
		parent.paymentmethod[6].caption="Forward paying";
		parent.paymentmethod[6].info="With forward paying we will contact you. Please note that in some cases you have to pay extra deposit.";
		parent.paymentmethod[6].pregateway="We have received your order. For security a screen pops up where you can enter your data encrypted. When you send the form the sale is done. Thank you for visiting our store.";
		parent.paymentmethod[6].postgateway="Thank you for your order on Biertap.com. You will receive a confirmation e-mail.";
		parent.paymentmethod[6].email="Note: please add info@biertap.com to your save sender list because of your spamfilter!";
		parent.paymentmethod[6].noship="000000948114d6c01 000000948b11f290a 000000948b1212e14 10000094bf09e1a01 000000948b11bdc03 10000094ed0776101 10000098910b29c01 000000948b11e4307 000000948b11d7006 10000095e2089e802 000000948b11ede09 10000099a20d7a401 1000009f260c59a01 10000094b00ee8e02 000000948b11c5704 10000094ae08bdb03 000000948b1463115 10000094b00e33201 1000009f5a0b82f01 000000948b11ec608 10000095e208a9403 100000950908f1702";
		parent.paymentmethod[6].uid="1000009f1a0830a02";
		parent.paymentmethod[6].price=0;
		parent.paymentmethod[6].vat=19;
		parent.paymentmethod[6].free=0;
		parent.paymentmethod[6].parameter[0]="";
		parent.paymentmethod[6].parameter[1]="";
		parent.paymentmethod[6].parameter[2]="";
		parent.paymentmethod[6].parameter[3]="";
		parent.paymentmethod[6].parameter[4]="";
		parent.paymentmethod[6].parameter[5]="";
		parent.paymentmethod[6].version="shop2dateversion10";
			parent.paymentmethod[7] = new classPaymentMethod;
		parent.paymentmethod[7].caption="Onder rembours";
		parent.paymentmethod[7].info="Betaal gemakkelijk en veilig onder rembours bij ontvangst van de producten.  Let op: het totaalbedrag van uw bestelling bevat geen eventuele statiegelden! (deze worden apart in rekening gebracht)";
		parent.paymentmethod[7].pregateway="Wij hebben uw bestelling ontvangen. Ter beveiliging van uw gegevens wordt een gecodeerd venster geopend waarin u uw adres kunt opgeven. Zodra u alle gegevens hebt ingevoerd en bevestigd, is de bestelling definitief. Hartelijk dank voor uw bezoek aan onze winkel.";
		parent.paymentmethod[7].postgateway="Hartelijk dank voor uw bestelling op Biertap.com. Binnenkort ontvangt u van ons een bevestigingsbericht.  Houd er rekening mee dat u naast het factuurbedrag soms ook rembourskosten bent verschuldigd aan de expediteur.";
		parent.paymentmethod[7].email="Let op: voeg info@biertap.com toe aan veilige afzenders ivm uw spamfilter!";
		parent.paymentmethod[7].noship="000000948b11f290a 000000948b1212e14 10000094bf09e1a01 000000948b11bdc03 10000094ed0776101 10000098910b29c01 000000948b11e4307 000000948b11d7006 10000095e2089e802 000000948b11ede09 10000099a20d7a401 1000009f260c59a01 10000094b00ee8e02 000000948b11c5704 10000094ae08bdb03 000000948b1463115 10000094b00e33201 1000009f5a0b82f01 000000948b11ec608 10000095e208a9403 100000950908f1702 10000097c90779604 100000978e090b601 10000097980aaf509 1000009fba0adbb0e 100000978e094f403 100000978e092a602 1000009fba0acce0c 10000097980ac8f0a 100000972108cc601 1000009fba0ae090f 100000986f0c03c01 10000098770abb201 1000009fba0ad2f0d 1000009fba0ac040b 1000009fba0aece11 1000009fba0ae7d10 1000009940078ef01 100000994108c1b01";
		parent.paymentmethod[7].uid="10000094e91047c01";
		parent.paymentmethod[7].price=10;
		parent.paymentmethod[7].vat=19;
		parent.paymentmethod[7].free=0;
		parent.paymentmethod[7].parameter[0]="";
		parent.paymentmethod[7].parameter[1]="";
		parent.paymentmethod[7].parameter[2]="";
		parent.paymentmethod[7].parameter[3]="";
		parent.paymentmethod[7].parameter[4]="";
		parent.paymentmethod[7].parameter[5]="";
		parent.paymentmethod[7].version="shop2dateversion10";
		}
}


function paymentShow() {
// Bezahl-Methoden anzeigen

	var i,j, totalprice;
	
	definePaymentMethods();
	updateActualPrice();
	
	sum=0;
	totalprice=0;
	
	for (i=0;i<parent.basket.length;i++) {
		sum+=parent.basket[i].quantity;
		totalprice+=parent.basket[i].actualpriceall;
	}	
	
	if (sum==0)	{
		document.write("<p>Uw winkelmandje is leeg</p>");
	}
	else {
		document.write("<form name='paymentform'>");
		document.write("<table width='100%' cellpadding='2'>");
		for (i=1;i<parent.paymentmethod.length;i++) {
			
			parent.paymentmethod[i].actualprice=parent.paymentmethod[i].price;
						
			// Versandkostenfrei?
			if ((totalprice>=parent.paymentmethod[i].free) && (parent.paymentmethod[i].free!=0)) {
				parent.paymentmethod[i].actualprice=0;
			}
			
			// Nicht erlaubte Methode?			
			if (parent.selectedshippingmethod!=-1) {
				if (parent.paymentmethod[i].noship.indexOf(parent.shippingmethod[parent.selectedshippingmethod].uid)!=-1) {
  					parent.paymentmethod[i].actualprice=-1;
				}
			}
			
			// GGf Auswahl löschen
			if ((parent.paymentmethod[i].actualprice==-1) && (i==parent.selectedpaymentmethod)) {
				parent.selectedpaymentmethod=-1;
			}
		}
		for (i=1;i<parent.paymentmethod.length;i++) {		
			// Anzeigen
			if (parent.paymentmethod[i].actualprice!=-1) {
				// Wenn nichts gewählt, erstes wählen
				if (parent.selectedpaymentmethod==-1) {
					parent.selectedpaymentmethod=i;
				}
				document.write("<tr>");
				document.write("<td class='s2d'><input type='radio' ")
				if (i==parent.selectedpaymentmethod) {
					document.write("checked ");
				}
				document.write("onclick='setPayment();' name='method' value='"+i+"'></td>");
				document.write("<td class='s2d' width='100%'><strong>"+parent.paymentmethod[i].caption+"</strong><br></td>");
				document.write("<td align='right' nowrap class='s2d'><strong>");
				if (parent.paymentmethod[i].actualprice!=0) {
					document.write(format(parent.paymentmethod[i].actualprice)+" EUR");
				} else {
					document.write("gratis");
				}
				document.write("</strong></td>");
				document.write("</tr>");
				if (parent.paymentmethod[i].info!="") {
					document.write("<tr>");
					document.write("<td></td>");
					document.write("<td class='s2d' width='100%'>"+parent.paymentmethod[i].info+"<br><br></td>");
					document.write("<td></td>");
					document.write("</tr>");
				}
			}
		}
		
		// Navigation unten
		document.write("</table>");
		document.write("</form>");		
	
		document.write("<table width='100%' cellpadding='2'>");
		document.write("<tr>");		
		document.write("<td align='left'><a href='s2dship.html'><img src='images/pbskt.gif' width='150' height='25' alt='' border='0'></a></td>");
		document.write("<td align='right'><a href='s2dsummary.html'><img src='images/pcob.gif' width='150' height='25' alt='' border='0'></a></td>");
		document.write("</tr>");		
		document.write("</table>");		
	}
}

function setPayment() {
// Bezahl-Methode einstellen

	var i;
	parent.selectedpaymentmethod=-1;
	for (i=0;i<document.paymentform.method.length;i++) {
		if (document.paymentform.method[i].checked) {
			parent.selectedpaymentmethod=document.paymentform.method[i].value;
		}
	}
}

function summaryShow() {
// Zusammenfassung zeigen
	summaryShowEx(false);
}

function summaryShowEx(newwindow) {
// Zusammenfassung oder Bestellformular zeigen

	var sum, i, j, found, vatsum, shippingcost, totalweight;
	var vat = new Array;

	var shippingcaption="";
	var paymentcaption="";
	
	var shopaddress="Biertap.com<br>Het bruisende middelpunt van ieder feest!<br>Verkooporganisatie voor biertaps, vaten bier en meer<br><br>www.biertap.com<br>+31 (0)6 - 44068949<br>E-mail: info@biertap.com<br><br>Overige produkten nodig?<br>Kijk ook eens op onze website www.kantineenzo.nl";
	
	sum=0;
	vatsum=0;
	shippingcost=0;
	totalweight=0;
	
	if (newwindow) {
		// Neues Fenster zum Ausdrucken
	
		mywindow=open("","printwindow","left=10,top=10,width=600,height=550,status=yes,scrollbars=yes,menubar=yes,toolbar=yes,resizable=yes");
		mydoc=mywindow.document;
		
		mydoc.write("<html><head><title>Bestelformulier</title></head></html>");
		mydoc.write("<body>");

		mydoc.write("<style>");
		mydoc.write("td.s2d {font-size:10pt; font-family : Arial, Helvetica, sans-serif;} ");
		mydoc.write("h1.s2d {font-family: Arial, Helvetica, sans-serif; font-size: 20pt; font-weight : bold; margin-top : 0pt; margin-bottom : 0pt;} ");
		mydoc.write("</style>");
		
		mydoc.write("<table width='100%' cellpadding='5' cellspacing='3' border='0'>");
		mydoc.write("<tr><td class='s2d'><h1 class='s2d'>Bestelformulier</h1></td></tr>");
		mydoc.write("<tr><td class='s2d'>"+parent.paymentmethod[parent.selectedpaymentmethod].email+"<br></td></tr>");

		mydoc.write("<tr><td class='s2d'><br></td></tr>");
		mydoc.write("<tr><td class='s2d' style='border-bottom: 1px solid #000000;' solid;'><strong>Naam:</strong><br></td></tr>");
		mydoc.write("<tr><td class='s2d' style='border-bottom: 1px solid #000000;' solid;'><strong>Adres:</strong><br></td></tr>");
		mydoc.write("<tr><td class='s2d' style='border-bottom: 1px solid #000000;' solid;'><strong>Postcode en woonplaats:</strong><br></td></tr>");
		mydoc.write("<tr><td class='s2d' style='border-bottom: 1px solid #000000;' solid;'><strong>Telefoonnummer:</strong><br></td></tr>");

		mydoc.write("<tr><td class='s2d'><br></td></tr>");
		
		switch (parent.paymentmethod[parent.selectedpaymentmethod].parameter[0]) {
			case "printdebit":
				mydoc.write("<tr><td class='s2d' style='border-bottom: 1px solid #000000;' solid;'><strong>Rekeningnummer:</strong><br></td></tr>");
				mydoc.write("<tr><td class='s2d' style='border-bottom: 1px solid #000000;' solid;'><strong>Banknummer:</strong><br></td></tr>");
				mydoc.write("<tr><td class='s2d' style='border-bottom: 1px solid #000000;' solid;'><strong>Bank:</strong><br></td></tr>");
				mydoc.write("<tr><td class='s2d' style='border-bottom: 1px solid #000000;' solid;'><strong>Rekeninghouder:</strong><br></td></tr>");
				mydoc.write("<tr><td class='s2d'><br></td></tr>");
				break;
			case "printcreditcard":
				mydoc.write("<tr><td class='s2d' style='border-bottom: 1px solid #000000;' solid;'><strong>Kaarttype (selecteer): "+parent.paymentmethod[parent.selectedpaymentmethod].parameter[1]+"</strong><br></td></tr>");
				mydoc.write("<tr><td class='s2d' style='border-bottom: 1px solid #000000;' solid;'><strong>Kaartnummer:</strong><br></td></tr>");
				mydoc.write("<tr><td class='s2d' style='border-bottom: 1px solid #000000;' solid;'><strong>Kaarthouder:</strong><br></td></tr>");
				mydoc.write("<tr><td class='s2d' style='border-bottom: 1px solid #000000;' solid;'><strong>Geldig tot:</strong><br></td></tr>");
				mydoc.write("<tr><td class='s2d'><br></td></tr>");
				break;
		}

		mydoc.write("<tr><td class='s2d' style='border-bottom: 1px solid #000000;' solid;'><strong>Datum, plaats, handtekening:</strong><br></td></tr>");		
		mydoc.write("<tr><td class='s2d'><br></td></tr>");

		mydoc.write("</table>");
	}
	else {
		mydoc=document;
	}
	
	// Überschrift

	mydoc.write("<table width='100%' cellpadding='2'>");
	mydoc.write("<tr>");
	mydoc.write("<td align='left' colspan='2' class='s2d'><strong>Aantal</strong></td>");
	mydoc.write("<td width='100%' class='s2d'><strong>Beschrijving</strong></td>");
		mydoc.write("<td nowrap align='right' class='s2d'><strong>Stukprijs</strong></td>");
	mydoc.write("<td nowrap align='right' class='s2d'><strong>Totaalbedrag</strong></td>");
	mydoc.write("</tr>");
	mydoc.write("<tr>");
	
	// Positionen
	
	for (i=0;i<parent.basket.length;i++) {
		if (parent.basket[i].quantity!=0) {
			mydoc.write("<tr>");
			mydoc.write("<td class='s2d'>"+parent.basket[i].quantity+"</td>");
			mydoc.write("<td class='s2d'>"+htmlChars(parent.basket[i].unit)+"&nbsp;</td>");
			mydoc.write("<td width='100%' class='s2d'>"+htmlChars(parent.basket[i].caption)+"</td>");
						mydoc.write("<td nowrap align='right' class='s2d'>"+format(parent.basket[i].actualpriceone)+" EUR</td>");
			mydoc.write("<td nowrap align='right' class='s2d'>"+format(parent.basket[i].actualpriceall)+" EUR</td>");
			mydoc.write("</tr>");
			
			sum+=parent.basket[i].actualpriceall;
			totalweight+=parent.basket[i].weight*parent.basket[i].quantity;

			// Ust rechnen
			addVat(vat,parent.basket[i].vat,parent.basket[i].actualpriceall);
		}
	}
	
	// Abstand

	mydoc.write("<tr>");
			mydoc.write("<td colspan='5' align='left' class='s2d'></td>");		
		mydoc.write("</tr>");
	
	// Versandkosten
	
	i=parent.selectedshippingmethod;
	if (i!=-1) {
		shippingcaption=parent.shippingmethod[i].caption;
		if (parent.shippingmethod[i].actualprice!=0) {
			shippingcost=parent.shippingmethod[i].actualprice;
			addVat(vat, parent.shippingmethod[i].vat, parent.shippingmethod[i].actualprice);
		}
	}	

	i=parent.selectedpaymentmethod;
	if (i!=-1) {
		paymentcaption=parent.paymentmethod[i].caption;
		if (parent.paymentmethod[i].price!=0) {
			shippingcost+=parent.paymentmethod[i].actualprice;
			addVat(vat, parent.paymentmethod[i].vat, parent.paymentmethod[i].actualprice);
		}
	}	
	
	sum+=shippingcost;
		
	mydoc.write("<tr>");
			mydoc.write("<td colspan='4' align='right' class='s2d'>Verzendkosten:</td>");
		mydoc.write("<td nowrap align='right' class='s2d'>"+format(shippingcost)+" EUR</td>");
	mydoc.write("</tr>");

	// Abstand

	mydoc.write("<tr>");
			mydoc.write("<td colspan='5' align='left'></td>");		
		mydoc.write("</tr>");
	
	
	// Ust zeigen	
	vat.sort(sortVat);

			for (i=0;i<vat.length;i++) {
			mydoc.write("<tr>");
			mydoc.write("<td colspan='4' align='right' class='s2d'>"+vat[i].percent+"% BTW:</td>");
			mydoc.write("<td nowrap align='right' class='s2d'>"+format(vat[i].amount)+" EUR</td>");
			mydoc.write("</tr>");
		}	

		mydoc.write("<tr>");
		mydoc.write("<td colspan='6' align='left'></td>");		
		mydoc.write("</tr>");

		mydoc.write("<tr>");
		mydoc.write("<td colspan='4' align='right' class='s2d'><strong>Eindbedrag:</strong></td>");
		mydoc.write("<td nowrap align='right' class='s2d'><strong>"+format(sum)+" EUR</strong></td>");
		mydoc.write("</tr>");
			
	mydoc.write("</table>");
	mydoc.write("</form>");
	
	mydoc.write("<table cellpadding='2'>");

	mydoc.write("<tr>");
	mydoc.write("<td nowrap class='s2d'>Gewenste verzendwijze - shipment: </td>");
	mydoc.write("<td nowrap class='s2d'>"+shippingcaption+"</td>");
	mydoc.write("</tr>");
	
	if (totalweight>0) {
		mydoc.write("<tr>");
		mydoc.write("<td nowrap class='s2d'>Totaalgewicht: </td>");
		mydoc.write("<td nowrap class='s2d'>"+formatweight(totalweight)+" kg</td>");
		mydoc.write("</tr>");
	}

	mydoc.write("<tr>");
	mydoc.write("<td nowrap class='s2d'>Gewenste betalingswijze: </td>");
	mydoc.write("<td nowrap class='s2d'>"+paymentcaption+"</td>");
	mydoc.write("</tr>");
	
	mydoc.write("<tr>");
	mydoc.write("<td nowrap class='s2d' colspan='2'><br></td>");
	mydoc.write("</tr>");

	mydoc.write("</table>");	
		
	if (newwindow) {
		mydoc.write("<table cellpadding='2' width='100%'><tr><td class='s2d' align='center'><br>"+shopaddress+"</td></tr></table>");
		mydoc.write("</body>");
		mydoc.write("</html>");
		mydoc.close();
	}
	else {
		mydoc.write("<table cellpadding='2' width='100%'>");
		mydoc.write("<tr><td class='s2d'><p>Controleer hier eerst alle gegevens. U kunt wijzigingen aanbrengen door te klikken op \"Terug\". Indien alle gegevens juist zijn, klik dan op \"Verder\".</p>");
					mydoc.write("<p>U bent als eindgebruiker niet meer gebonden aan uw bestelling als u binnen twee weken na ontvangst de artikelen terugstuurt. Meer informatie over het retourneren van artikelen vindt u onder het menu <a class=s2d href=\"consumer.html\">Bepalingen</a>. Bij bestellingen vanaf EUR 40,00 nemen wij de kosten voor rekening van een eventuele retourzending.</p>");
							mydoc.write("<p>Onze algemene voorwaarden zijn van toepassing. U kunt deze bekijken onder het menu <a class=s2d href=\"agb.html\">Algemene voorwaarden</a>.</p>");
				mydoc.write("</td></tr>");		
		mydoc.write("<form name='formagb'><tr><td class='s2d'><input type='checkbox' name='checkagb' value='1'><strong>Ik heb de algemene voorwaarden gelezen en ter kennis aangenomen.</strong><br><br></td></tr></form>");
		mydoc.write("</table>");

		// Jetzt das versteckte Transfer-Formular
		
		switch (parent.paymentmethod[parent.selectedpaymentmethod].parameter[0]) {
			case "iclear":
				// iClear-Modus
		
				mydoc.write("<form name='orderform' action='https://www.iclear.de/servlets/GenBuyTool' method='post' target='orderwindow'>");
				mydoc.write("<input type='hidden' name='ShopID' value='"+parent.paymentmethod[parent.selectedpaymentmethod].parameter[1]+"'>");
				mydoc.write("<input type='hidden' name='BasketID' value='shop to date order'>");
				mydoc.write("<input type='hidden' name='Currency' value='EUR'>");
				j=0;
				
				var products="";
			
				// Produkt-Schleife
			
				for (i=0;i<parent.basket.length;i++) {
					if (parent.basket[i].quantity!=0) {
						j++;
						products+=iclearChars(parent.basket[i].caption)+"::";
						products+=iclearChars(parent.basket[i].id)+"::";
						products+=parent.basket[i].quantity+"::";
													products+=parent.basket[i].actualpriceone/(parent.basket[i].vat/100+1)+"::";
 							products+=parent.basket[i].actualpriceone+"::";
												products+=parent.basket[i].vat+":::";
					}
				}
			
				// Versandart als Produkt

				j++;
				products+=iclearChars("Gewenste verzendwijze - shipment "+shippingcaption)+"::";
				products+="::";
				products+="1::";
									products+=shippingcost/(parent.shippingmethod[parent.selectedshippingmethod].vat/100+1)+"::";
					products+=shippingcost+"::";
								products+=parent.shippingmethod[parent.selectedshippingmethod].vat+":::";

				mydoc.write("<input type='hidden' name='Products' value='"+products+"'>");
				mydoc.write("<input type='hidden' name='ProductIndex' value='"+j+"'>");
				mydoc.write("</form>");
				break;

			default:
				// Normal-Modus
		
				mydoc.write("<form name='orderform' action='http://www.biertap.com/gateway.php' method='post' target='orderwindow'>");
				j=0;
				for (i=0;i<parent.basket.length;i++) {
					if (parent.basket[i].quantity!=0) {
						j++;
						mydoc.write("<input type='hidden' name='PUID"+j+"' value='"+parent.basket[i].uid+"'>");
						mydoc.write("<input type='hidden' name='PPID"+j+"' value='"+htmlChars(parent.basket[i].id)+"'>");
						mydoc.write("<input type='hidden' name='PQNT"+j+"' value='"+parent.basket[i].quantity+"'>");
						mydoc.write("<input type='hidden' name='PUNT"+j+"' value='"+htmlChars(parent.basket[i].unit)+"'>");
						mydoc.write("<input type='hidden' name='PCAP"+j+"' value='"+htmlChars(parent.basket[i].caption)+"'>");
						mydoc.write("<input type='hidden' name='PPRI"+j+"' value='"+parent.basket[i].actualpriceone+"'>");
						mydoc.write("<input type='hidden' name='PVAT"+j+"' value='"+parent.basket[i].vat+"'>");
						mydoc.write("<input type='hidden' name='PRVA"+j+"' value='"+parent.basket[i].variationa+"'>");
						mydoc.write("<input type='hidden' name='PRVB"+j+"' value='"+parent.basket[i].variationb+"'>");
					}
				}
				mydoc.write("<input type='hidden' name='OPAY' value='"+htmlChars(paymentcaption)+"'>");
				mydoc.write("<input type='hidden' name='OSHP' value='"+htmlChars(shippingcaption)+"'>");
				mydoc.write("<input type='hidden' name='OCUR' value='EUR'>");
				mydoc.write("<input type='hidden' name='OB2B' value=''>");
				mydoc.write("<input type='hidden' name='OSPR' value='"+shippingcost+"'>");
				mydoc.write("<input type='hidden' name='OSPV' value='"+parent.shippingmethod[parent.selectedshippingmethod].vat+"'>");
				mydoc.write("<input type='hidden' name='OWGT' value='"+totalweight+"'>");
				mydoc.write("<input type='hidden' name='OTOT' value='"+sum+"'>");
				mydoc.write("<input type='hidden' name='GVER' value='"+parent.paymentmethod[parent.selectedpaymentmethod].version+"'>");
				mydoc.write("<input type='hidden' name='GPR0' value='"+parent.paymentmethod[parent.selectedpaymentmethod].parameter[0]+"'>");
				mydoc.write("<input type='hidden' name='GPR1' value='"+parent.paymentmethod[parent.selectedpaymentmethod].parameter[1]+"'>");
				mydoc.write("<input type='hidden' name='GPR2' value='"+parent.paymentmethod[parent.selectedpaymentmethod].parameter[2]+"'>");
				mydoc.write("<input type='hidden' name='GPR3' value='"+parent.paymentmethod[parent.selectedpaymentmethod].parameter[3]+"'>");
				mydoc.write("<input type='hidden' name='GPR4' value='"+parent.paymentmethod[parent.selectedpaymentmethod].parameter[4]+"'>");
				mydoc.write("<input type='hidden' name='GPR5' value='"+parent.paymentmethod[parent.selectedpaymentmethod].parameter[5]+"'>");
				mydoc.write("<input type='hidden' name='GMSP' value='"+htmlChars(parent.paymentmethod[parent.selectedpaymentmethod].postgateway)+"'>");
				mydoc.write("<input type='hidden' name='GMSE' value='"+htmlChars(parent.paymentmethod[parent.selectedpaymentmethod].email)+"'>");
				mydoc.write("<input type='hidden' name='GSAD' value='"+htmlChars(shopaddress)+"'>");
				mydoc.write("<input type='hidden' name='GNEW' value='1'>");
				mydoc.write("<input type='hidden' name='GTSI' value=''>");
				mydoc.write("</form>");
		}
		mydoc.write("<table width='100%' cellpadding='2'>");
		mydoc.write("<tr>");		
		mydoc.write("<td align='left'><a href='s2dpayment.html'><img src='images/pbskt.gif' width='150' height='25' alt='' border='0'></a></td>");
		mydoc.write("<td align='right'><a href='' onclick='submitOrder();return false;'><img src='images/pcob.gif' width='150' height='25' alt='' border='0'></a></td>");
		mydoc.write("</tr>");		
		mydoc.write("</table>");

	}
}

function completeShow() {
	
	// Abschlußscreen zeigen

	document.write("<p>"+parent.paymentmethod[parent.selectedpaymentmethod].pregateway+"<br><br><br></p>");
	document.write("<table width='100%' border='0' cellpadding='0' cellspacing='0'>");
	document.write("<tr>");
	document.write("<td align='left'><a href='s2dsummary.html'><img src='images/pbskt.gif' width='150' height='25' alt='' border='0'></a></td>");
	document.write("<td align='right'><a onclick='parent.basket.length=0;return true;' href='./index.html'><img src='images/psmb.gif' width='150' height='25' alt='' border='0'></a></td>");
	document.write("<tr>");
	document.write("</table>");
}

function submitOrder() {

	// Bestellung absenden
	
	if (!document.formagb.checkagb.checked) {
		alert("Lees onze algemene voorwaarden en selecteer het veld \"Ik heb de algemene voorwaarden gelezen en ter kennis aangenomen\", voordat u verdergaat.")
	}
	else {

		switch (parent.paymentmethod[parent.selectedpaymentmethod].parameter[0]) {
		case "printdebit":
		case "printcod":
		case "printcheque":
		case "printremittance":
		case "printcreditcard":
		case "printinvoice":
			summaryShowEx(true);	
			self.location="s2dcomplete.html";
			break;
		default:
			var mywindow=window.open("","orderwindow","left=10,top=10,width=600,height=550,status=yes,scrollbars=yes");
			mywindow.focus();
			document.orderform.submit();
			self.location="s2dcomplete.html";
		}
	}
}


