TextColor1 = "#ffffff";
BackColor1 = "#000000";
BackColor2 = "#ffffff";

Text1 = "Echt de hele winkelwagen leegmaken?";
Text2 = "Verwijder";
hrij=new Array(); arij=new Array(); trij=new Array(); var h = "1"; var a = ""; var t = ""; var verloop = new Date(); verloop.setTime(verloop.getTime() + 3600000);  
function order(a,p){ if (DD(a)) { if (Cl("h")) h=Cl("h")+";1"; else h=1+";"; if (Cl("a")) a=Cl("a")+";"+a; else a=a+";"; if (Cl("t")) t=Cl("t")+";"+p; else t=p+";"; C2("h", h, verloop); C2("a", a, verloop); C2("t", t, verloop)} ww=window.open("Windowshop.html","ww","width=387,height=460,fullscreen=yes,scrollbars=1,toolbar=0,directories=0,resizable=0,dependent=0,titlebar=0,personalbar=0,menubar=0,status=0,location=0")}
function DD(n) { KR(); for(var f = 0; f < arij.length; f++) if (n == arij[f]) return false; return true }
function KR() { if (Cl("h")) h=Cl("h"); if (Cl("a")) a=Cl("a"); if (Cl("t")) t=Cl("t"); hrij = h.split(";"); arij = a.split(";"); trij = t.split(";") }
function RK() { C3("h"); C3("a"); C3("t"); h=hrij.join(";"); a=arij.join(";"); t=trij.join(";"); C2("h", h, verloop); C2("a", a, verloop); C2("t", t, verloop) }
function Dl(n){ KR(); if (window.confirm(Text2 + "\n\n" + arij[n] + "?    \n\n")){ hrij[n] = 0; arij[n] = 0;trij[n] = 0;RK(); document.location.replace("Windowshop.html") }}
function X(n,n2){ KR(); dpl = eval(trij[n]); dp2 = eval(hrij[n]); dp3 = dpl/dp2; if (n2 > 0) hrij[n]=n2; if (hrij[n] > 0) { trij[n] = dp3 * hrij[n]; RK(); document.location.replace("Windowshop.html") }; if (n2 == 0) Dl(n) }
function DlAlle(){ KR(); if (window.confirm("   " + Text1 + "  \n")){ C3("h"); C3("a"); C3("t"); for(var f = 0; f < arij.length; f++) { hrij[f] = 0; arij[f] = 0; trij[f] = 0}; window.opener.document.location.reload() ; window.close() }}
function D2Alle(){ KR(); C3("h"); C3("a"); C3("t"); for(var f = 0; f < arij.length; f++) { hrij[f] = 0; arij[f] = 0; trij[f] = 0}; window.close() }
function K(n) { cent=n*100; cent=Math.round(cent); CS= "" + cent; len = CS.length; return CS.substring(0, len - 2) + "," + CS.substring(len -2,len); }
function FRMl() { KR(); SW= ""; FRM2 = ""; ST = 0; for(var f = 0; f < arij.length; f++) { if (arij[f] != "" && arij[f] != "0"){ if (BackColor2 == "#FFFFFF") { BackColor2="#EEEEEE"} else {BackColor2="#FFFFFF"}; SW = SW + "<tr><td align='right' valign='top' bgcolor='" + BackColor2 + "'><font FACE='Arial,Helvetica' SIZE=2 color='#8b0000'>" + hrij[f] + "&nbsp;x&nbsp;</td><td width=450 valign='top' bgcolor='" + BackColor2 + "'><font FACE='Arial,Helvetica' SIZE=2 color='#8b0000'>" + arij[f] + "</td><td valign='bottom' align='right' bgcolor='" + BackColor2 + "'><font FACE='Arial,Helvetica' SIZE=2 color='#8b0000'>" + K(trij[f]) + "</TD></tr>"; FRM2 = FRM2 + hrij[f] + " x " + arij[f] + " (" + K(trij[f]) + ")\n"; ST = ST + eval(trij[f])}}; schrijfEUR = ST; ST = K(ST) }
function Cl(n){ var cn = n + "="; var dc = document.cookie; if (dc.length > 0) { begin = dc.indexOf(cn); if (begin != -1) { begin += cn.length; end = dc.indexOf(";", begin); if (end == -1) end = dc.length; return unescape(dc.substring(begin, end)) }}; return null }
function C2(n,v,e) { document.cookie = n + "=" + escape(v) + ((e == null) ? "" : "; path=/ ; expires=" + e.toGMTString())}
function C3(n) { if (Cl(n)) document.cookie = n + "=" + "; path=/ ; expires=Thu, 01-Jan-70 00:00:01 GMT" }

function Schrijf(){
	KR();
	totaal = 0;
	for(var f = 0; f < arij.length; f++) { 
		if (trij[f] != "") totaal = eval(totaal) + eval(trij[f]);
	}

	document.writeln('<STYLE>');
	document.writeln('<!--');
	document.writeln('a:link {text-decoration: none;}');
	document.writeln('a:visited {text-decoration: none;}');
	document.writeln('a:hover {background-color: #eeeeee; text-decoration: none; color: #000000;}');
	document.writeln('-->');
	document.writeln('</STYLE>');

	document.writeln('<FONT size=4 face="Arial,Helvetica" color="#000000">');
	document.writeln('<br><b>Winkelwagen met bestelde artikelen</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<p>');
	document.writeln('</FONT>');

	document.writeln('<table width=550 border=0 cellspacing=0 cellpadding=2>');
	document.writeln('<tr><td colspan=2 bgcolor="'+BackColor1+'">');
	document.writeln('<FONT size=2 face="Arial,Helvetica" color="'+TextColor1+'">');
	document.writeln('&nbsp;<B>Aantal</B></FONT></td>');
	document.writeln('<td width=378 bgcolor="'+BackColor1+'">');
	document.writeln('<font size=2 face="Arial,Helvetica" color="'+TextColor1+'">');
	document.writeln('<B>Artikel</B></td><td align="right" bgcolor="'+BackColor1+'">');
	document.writeln('<font size=2 face="Arial,Helvetica" color="'+TextColor1+'"><B>Prijs</B>&nbsp;</td></tr>');

	for(var f = 0; f < arij.length; f++) {
		if (arij[f] != ""  && arij[f] != "0") {

	if (BackColor2 == "#FFFFFF") { BackColor2="#EEEEEE"}
			else {BackColor2="#FFFFFF"}

			document.writeln('<form onSubmit="X('+f+',textaantal.value)" >');
			document.writeln('<tr><td valign=top bgColor='+BackColor2+'>');
			document.writeln('<INPUT onChange="X('+f+',this.value)" TYPE="text" NAME="textaantal" SIZE=2 value="'+hrij[f]+'">');
			document.writeln('</td>');
			document.writeln('<td valign="center" align=left style="cursor:hand" TITLE="Klik op de prullenmand om dit artikel te verwijderen" bgColor='+BackColor2+'>');
			document.writeln('<a href="javascript:Dl('+f+')">');
			document.writeln('<IMG SRC="Windowshopweg.gif" width=14 height=17 BORDER=0 ALT="Artikel verwijderen"></a></td>');
			document.writeln('<td bgColor="'+BackColor2+'">');
			document.writeln('<font FACE="Arial,Helvetica" SIZE=2 color="#000000">'+arij[f]+'</font></td>');
			document.writeln('<td valign=bottom align=right bgColor="'+BackColor2+'">');
			document.writeln('<font FACE="Arial,Helvetica" SIZE=2  color="#000000">'+K(trij[f])+'</FONT></td></tr>');
			document.writeln('</form>');

		}
	}

	if (totaal == 0) {
	document.writeln('<tr><td valign=top align=center bgColor='+BackColor2+' colspan=4>');
	document.writeln('<font FACE="Arial,Helvetica" SIZE=2 color="#000000">');
	document.writeln('Uw winkelwagen is nog leeg.</td>') 
	document.writeln('</FONT><td></td></tr>');
	}

	document.write('<tr>');
	document.write('<td colspan="4" align="right" bgcolor="'+BackColor1+'">');
	document.write('<font size=2 face="Arial,Helvetica" color="'+TextColor1+'">&nbsp;');
	if (totaal != 0)  document.write('<B>Subtotaal € ') 
	if (totaal != 0)  document.write(K(totaal)) 
     document.write('</B></td></tr>');

document.write('<tr>');
document.write('<td colspan="4" align="right" bgcolor="'+BackColor1+'">');
document.write('<font size=2 face="Arial,Helvetica" color="'+TextColor1+'"> ');
if (totaal != 0) document.write(' <B>Totaalbedrag</B> inclusief € 7,50 verzendkosten <B> € ') 
if (totaal != 0) document.write(K(totaal + 7.50)) 








var message=" Sorry, deze functie is vanwege\n technische reden uitgeschakeld."; // Message for the alert box




// Don't edit below!

function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// -->






document.write('</B></td></tr>');
document.write('</table><p>');

	document.write('<br><a href="Windowshophelp.html">');
	document.write('<img src="Windowshop-help-button.jpg" border="0"></a>');

	


	if (totaal != 0) {
		document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:DlAlle()">');
		document.write('<img src="Windowshop-winkelwagen-leegmaken-button.jpg" border="0"></a>');


		document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="Windowshopform.html">');
		document.write('<img src="Windowshop-naar-de-kassa-button.jpg" border="0"></a>');


		document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:windowshop ();">');
		document.write('<img src="Windowshop-herbereken-button.jpg" border="0"></a><br><br><br>');


		document.write('<center><a href="javascript:window.close ();"><img src="Windowshop-verder-winkelen-button.jpg" border="0"></a><br></center>');
		

		document.write('');
		document.write('<br><br><br><font size=2 face="Arial,Helvetica" color="#8B0000"><b>Leveringsvoorwaarden:</FONT></b> <font size=2 face="Arial,Helvetica" color="#000000">betreffende glasafname.</FONT><br><br>');
		document.write('<font size=2 face="Arial,Helvetica" color="#000000">Per bestelling dient u minimaal 5 glasplaten af te nemen. Bestelt u minder dan 5 glasplaten dan<br> wordt u € 		3,50 extra toeslag berekend. Per verpakking geldt een maximum van 12 glasplaten.&nbsp;&nbsp;&nbsp;&nbsp;<br> Bestelt u meer dan 12 glasplaten dan wordt uw bestelling 		verdeeld over meerdere verpakkingen.<br> Uiteraard betaalt u als gevolg hiervan meer verzendkosten.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT>');


	}

}


































