// winkelwagentje.js

var aantal=0; 
var bedrag=0; 
var subtotaal=0; 
var totaal=0;
var totaal2=0;
var totaal3=0;
var transporte=0;
var transporte1=0;
var transporte2=0;
var transporte3=0;
var cobranca=0;
var subtotaal_aantal=0; 
var totaal_aantal=0;

// hier wordt het bestelformulier gemaakt

function BestelLijstPp() {
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes");
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write("") 
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0\/\/EN\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','html','>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','head','>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','title>','        ... Um momento, a sua conta será feito ...     ','<','/title>','\n') 
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','link href=\"styles.css\" rel=\"stylesheet\" type=\"text/css\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','script language=\"Javascript\">','\n')

// controle op een geldig email-adres

window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('function FControle','(formulier)',' {','\n') 
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('if','(formulier.Emailadres.value.length <= 6 ||')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('formulier.Emailadres.value.indexOf (\'@\'\, 0) == -1 ||','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('formulier.Emailadres.value.indexOf (\'.\'\, 0) == -1')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('){','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('alert(\"Se faz favor, preencha um adresso de e-mail válido\")','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('return false;','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('}','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('else {','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('formulier.action=\"comprasPp.php\"','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('return true;','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('}','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('}','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','/script>','<','/head>','\n')

window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','body>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','form name=\"formulier\" method=\"post\" onsubmit=\"return FControle(this);\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','div class=\"conta\" align=\"center\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','table width=\"600\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"  align=\"center\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<tr>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"600\" height=\"80\" colspan=\"7\" valign="\bottom\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<p align=\"center\"><img src=\"afb/encomenda.gif\" width=\"300\" height=\"58\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/p><\/td><\/tr>','\n')

for (i=0;i<=37;i++){ //5 aanpassen aan het aantal producten !

if (document.tel.aantaly[i].value >0){ 
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<tr valign=\"bottom\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"50\" height=\"20\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"285\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<p align=\"left\" class=\"style2\">','\n')
code= (i+1);
aantal= (document.tel.aantaly[i].value); 
bedrag= (document.tel.prijs[i].value);
product= (document.tel.producten[i].value);
subtotaal_aantal= parseInt(aantal);
totaal_aantal=totaal_aantal+subtotaal_aantal;
subtotaal= aantal*bedrag;
totaal+=subtotaal ;
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','input type=','\"','hidden','\"')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write(' name=','\"','Product[]','\"',' value=')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('\"',(document.tel.producten[i].value),'\"')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write(document.tel.producten[i].value); 
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write(" "); 
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/p><\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"60\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<p align=\"right\" class=\"style2\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','input type=','\"','hidden','\"')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write(' name=','\"','Aantal[]','\"',' value=')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('\"',(document.tel.aantaly[i].value),'\"')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('>')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write(document.tel.aantaly[i].value); 
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write(" x "); 
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write(" = &nbsp;"); 
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write(" € "); 
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/p><\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"45\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<p align=\"right\" class=\"style2\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write(subtotaal.toFixed(2)); 
subtotaal=0 ; 
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/p><\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"160\" colspan=\"3\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/tr>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<tr>','\n')
}

if (i==36) break ; //hier aanpassen !: 4 =( aantal producten - 1 )
}

if (totaal_aantal ==1){
	
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/tr>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<tr valign=\"bottom\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"50\" height=\"70\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"390\" colspan=\"3\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','input type=','\"','hidden','\"')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write(' name=','\"','Totaal','\"',' value=')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('\"',(totaal_aantal),'\"')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('>') 
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','input type=','\"','hidden','\"')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write(' name=','\"','Bedrag','\"',' value=')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('\"',(totaal.toFixed(2)),'\"')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('>')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<p align=\"left\" class=\"style4\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write(" "+" "); 
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write(totaal_aantal); 
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write(" artigo =");
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/p>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"40\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<p align=\"right\" class=\"style4\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write("€ ")
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/p>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"70\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<p align=\"right\" class=\"style4\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write(totaal.toFixed(2)); 
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/p>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"50\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/tr>','\n')
}
else if (totaal_aantal >1 && totaal_aantal <50){

window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/tr>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<tr valign=\"bottom\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"50\" height=\"40\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"390\" colspan=\"3\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','input type=','\"','hidden','\"')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write(' name=','\"','Totaal','\"',' value=')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('\"',(totaal_aantal),'\"')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('>') 
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','input type=','\"','hidden','\"')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write(' name=','\"','Bedrag','\"',' value=')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('\"',(totaal.toFixed(2)),'\"')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('>')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<p align=\"left\" class=\"style4\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write(" "+" "); 
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write(totaal_aantal); 
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write(" artigos =");
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/p>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"40\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<p align=\"right\" class=\"style4\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write("€ ")
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/p>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"70\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<p align=\"right\" class=\"style4\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write(totaal.toFixed(2)); 
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/p>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"50\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/tr>','\n')
}
else if (totaal_aantal >49){

window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/tr>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<tr>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"600\" height=\"30\" colspan=\"7\">','\n') 
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/tr>','\n')
}

if (totaal <27.00){

transporte1= 0.00;
transporte= transporte1;
totaal2= totaal+transporte;
}
else if (totaal >27.00 && totaal <50.00){

transporte2= 0.00;
transporte= transporte2;
totaal2= totaal+transporte;
}
else if (totaal >50.00 && totaal_aantal <50){

transporte3= 0.00;
transporte= transporte3;
totaal2= totaal+transporte;
}

if (totaal_aantal >0 && totaal_aantal <50){

window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<tr valign=\"bottom\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"50\" height=\"30\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"390\" colspan=\"3\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<p align=\"left\" class=\"style5\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write("Despesas de porte:")

window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/p>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"40\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<p align=\"right\" class=\"style5\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write("€ ")
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/p>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"70\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','input type=','\"','hidden','\"')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write(' name=','\"','Transport','\"',' value=')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('\"',(transporte.toFixed(2)),'\"')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('>')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<p align=\"right\" class=\"style5\">\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write(" "+" "); 
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write(transporte.toFixed(2)); 
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/p><\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"50\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/tr>','\n')

window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<tr>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"600\" colspan=\"7\" >','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/tr>','\n')

window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<tr valign=\"bottom\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"50\" height=\"20\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"390\" colspan=\"3\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<p align=\"left\" class=\"style4\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write("<u>Total para pagar:<\/u>")
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/p><\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"40\">','\n') 
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','input type=','\"','hidden','\"')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write(' name=','\"','Total','\"',' value=')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('\"',(totaal2.toFixed(2)),'\"')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('>')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<p align=\"right\" class=\"style4\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write("<u>€<\/u>")
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/p>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"70\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<p align=\"right\" class=\"style4\"><u>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write(totaal2.toFixed(2));
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/u><\/p>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"50\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td><\/tr>','\n')

window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<tr>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"600\" height=\"30\" colspan=\"7\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td><\/tr>','\n')

window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<tr valign=\"middle\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"600\" height=\"70\" colspan=\"7\" bgcolor=\"#693937\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<p align=\"center\"><img src=\"afb/dados2.gif\" width=\"450\" height=\"40\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/p><\/td><\/tr>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"600\" height=\"20\" colspan=\"7\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td><\/tr>','\n')

window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<tr>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"50\" height=\"60\" bgcolor=\"#E7DBDE\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"260\" valign=\"middle\" bgcolor=\"#E7DBDE\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<p align=\"left\" class=\"style3\">E-mail:*<\/p><\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"240\" valign=\"middle\" colspan=\"4\" bgcolor=\"#E7DBDE\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<p align=\"left\" class=\"style2\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','input type=\"text\" name=\"Emailadres\" maxlength=\"50\" size=\"50\"><\/p><\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"50\" bgcolor=\"#E7DBDE\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','input type=\"hidden\" name=\"Betaalwijze\" value=\"Paypal\"><\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/tr>','\n')


window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<tr>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"50\" bgcolor=\"#E7DBDE\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"260\" valign=\"middle\" bgcolor=\"#E7DBDE\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<p align=\"left\" class=\"style9\">Envia-me uma copia deste pedido:<\/p><\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"240\" valign=middle colspan=\"4\" bgcolor=\"#E7DBDE\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<p align=\"left\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','input type=\"checkbox\" name=\"stuurkopie\" value=\"1\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/p><\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"50\" bgcolor=\"#E7DBDE\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('</tr>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<tr>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"600\" height=\"20\" bgcolor=\"#E7DBDE\" colspan=\"7\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td><\/tr>','\n')



window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<tr>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"600\" height=\"20\" colspan=\"7\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td><\/tr>','\n')

window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<tr>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"50\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"260\" height=\"12\" align=\"center\" valign=\"middle\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<p align=\"left\">','\n') 
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','input type=\"submit\" name=\"Submit\" class=\"style3\" value=\"Confirmar\"> <\/p><\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"240\" height=\"12\" align=\"center\" valign=\"middle\" colspan=\"4\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<p align=\"right\">','\n') 
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','input type=\"reset\" name=\"Reset\" class=\"style3\" value=\"Limpar\"> <\/p><\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"50\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/tr>','\n')

window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<tr>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"600\" height=\"10\" align=\"center\" valign=\"middle\" colspan=\"7\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td><\/tr>','\n')

window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<tr>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"600\" height=\"10\" colspan=\"7\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td><\/tr>','\n')

window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<tr>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"600\" height=\"50\" colspan=\"7\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td><\/tr>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','\/table><\/div>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','\/form>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','\/body>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','\/html>','\n')
}

else if (totaal_aantal >49){

window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<tr>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"600\" height=\"50\" colspan=\"7\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/td><\/tr>','\n')

window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<tr>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"600\" height=\"120\" colspan=\"7\" bgcolor=\"#693937\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<p align=\"center\"><img src=\"afb/mais.gif\" width=\"500\" height=\"107\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/p><\/td><\/tr>','\n')

window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<tr>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<td width=\"600\" height=\"250\" align=\"center\" colspan=\"7\">','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<p align=\"center\">','\n') 
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','input type=\"button\" name=\"Fechar\" class=\"style5\" value=\"Fechar página\" onClick=\"window.close()\"> <\/p><\/td>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<\/tr>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','\/table><\/div>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','\/form>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','\/body>','\n')
window.open("","win","left=10,top=0,width=850,height=600,scrollbars=yes,resizable=yes").document.write('<','\/html>','\n')
}
}

