subt = 0; 
addtax = 0;  
tot = 0; 
vattot = 0; 
var aQuant = new Array();
var aPrice = new Array();
var aDescr = new Array();
var aTax = new Array();
var aDiscount = new Array();
var timeOutId = 0;
//-------------------------------------
function AddDecimal(number)
{
  var withdecimal = "";
  var num = "" + number;
  if (num.length == 0)
  {
      withdecimal += "0";
  }
  else if (num.length == 1)
  {
      withdecimal += "0.0" + num;
  }
  else if (num.length == 2)
  {
      withdecimal += "0." + num;
  }
  else
  {
	  withdecimal += num.substring(0, num.length - 2);
	  withdecimal += "."
	  withdecimal += num.substring(num.length - 2, num.length);
  }
  return withdecimal;
}
//-------------------------------------
function updateLeft()
{
	shipnl = "0000"
	shipeu = "4500"
              addtax = Math.round(addtax);
	addtaxportonl = "000"
	addtaxportoeu = "855"
	addtaxnl = (eval(addtax) + eval(addtaxportonl));
	addtaxeu = (eval(addtax) + eval(addtaxportoeu));
	subt = Math.round(subt);
	totnl = (eval(subt) + eval(shipnl));
	toteu = (eval(subt) + eval(shipeu));
	vattotnl = (eval(subt) + eval(shipnl) + eval(addtaxnl));
	vattoteu = (eval(subt) + eval(shipeu) + eval(addtaxeu));
	p = aQuant.length * 0.5;
	top.frames[1].document.forms[0].subtotal.value = AddDecimal(subt);
	if (top.frames[1].document.forms[0].subtotal.value == 0.00)
	{
	top.frames[1].document.forms[0].shipping.value = "0.00";
  	top.frames[1].document.forms[0].total.value ="0.00";
  	top.frames[1].document.forms[0].vattotal.value ="0.00";
	}
	else if ((top.frames[1].document.forms[0].country_hidden.value == "Nederland") || (top.frames[1].document.forms[0].country_hidden.value == ""))
	{
	top.frames[1].document.forms[0].shipping.value = AddDecimal(shipnl);
	top.frames[1].document.forms[0].total.value = AddDecimal(totnl);
	top.frames[1].document.forms[0].vattotal.value = AddDecimal(vattotnl);
	top.frames[1].document.forms[0].addedtax.value = AddDecimal(addtaxnl);
	}
	else 
	{
	top.frames[1].document.forms[0].shipping.value = AddDecimal(shipeu);
	top.frames[1].document.forms[0].total.value = AddDecimal(toteu);
	top.frames[1].document.forms[0].vattotal.value = AddDecimal(vattoteu);
	top.frames[1].document.forms[0].addedtax.value = AddDecimal(addtaxeu);
	}
	top.frames[1].document.forms[0].num_order_hidden.value = p;
}
//-------------------------------------
function updatefieldLeft()
{
	bedrijfsnaam = top.frames[2].document.forms[0].bedrijfsnaam.value;
	titlei = top.frames[2].document.forms[0].title.selectedIndex;
	title = top.frames[2].document.forms[0].title.options[titlei].value;
	last_name = top.frames[2].document.forms[0].last_name.value;
	Email = top.frames[2].document.forms[0].Email.value;
	phone = top.frames[2].document.forms[0].phone.value;

	invoice_company = top.frames[2].document.forms[0].invoice_company.value;
	invoice_afdeling = top.frames[2].document.forms[0].invoice_afdeling.value;
	invoice_kenmerk = top.frames[2].document.forms[0].invoice_kenmerk.value;
	invoice_address1 = top.frames[2].document.forms[0].invoice_address1.value;
	invoice_address2 = top.frames[2].document.forms[0].invoice_address2.value;
	invoice_zipcode = top.frames[2].document.forms[0].invoice_zipcode.value;
	invoice_city = top.frames[2].document.forms[0].invoice_city.value;

	aflevertijdstipi = top.frames[2].document.forms[0].aflevertijdstip.selectedIndex;
	aflevertijdstip = top.frames[2].document.forms[0].aflevertijdstip.options[aflevertijdstipi].value;
	wensen = top.frames[2].document.forms[0].wensen.value;
	actiecode = top.frames[2].document.forms[0].actiecode.value;
	message = top.frames[2].document.forms[0].message.value;

	top.frames[1].document.forms[0].bedrijfsnaam_hidden.value = bedrijfsnaam;
	top.frames[1].document.forms[0].title_hidden.value = title;
	top.frames[1].document.forms[0].last_name_hidden.value = last_name;
	top.frames[1].document.forms[0].Email_hidden.value = Email;
	top.frames[1].document.forms[0].phone_hidden.value = phone;

	top.frames[1].document.forms[0].invoice_company_hidden.value = invoice_company;
	top.frames[1].document.forms[0].invoice_afdeling_hidden.value = invoice_afdeling;
	top.frames[1].document.forms[0].invoice_kenmerk_hidden.value = invoice_kenmerk;
	top.frames[1].document.forms[0].invoice_address1_hidden.value = invoice_address1;
	top.frames[1].document.forms[0].invoice_address2_hidden.value = invoice_address2;
	top.frames[1].document.forms[0].invoice_zipcode_hidden.value = invoice_zipcode;
	top.frames[1].document.forms[0].invoice_city_hidden.value = invoice_city;

	top.frames[1].document.forms[0].aflevertijdstip_hidden.value = aflevertijdstip;
	top.frames[1].document.forms[0].wensen_hidden.value = wensen;
	top.frames[1].document.forms[0].actiecode_hidden.value = actiecode;
	top.frames[1].document.forms[0].message_hidden.value = message;
}
//-------------------------------------
function refreshCheckout()
{
	if(top.frames[2].document.title == "CheckOut_fax")
	{
	top.frames[2].document.location="checkout_fax.htm";
	}
	else if(top.frames[2].document.title == "CheckOut_bank")
	{
	top.frames[2].document.location="checkout_bank.htm";
	}
	else if(top.frames[2].document.title == "CheckOut_cc")
	{
	top.frames[2].document.location="checkout_cc.htm";
	}
	else if(top.frames[2].document.title == "CheckOut_factuur")
	{
	top.frames[2].document.location="checkout_factuur.htm";
	}
}
//-------------------------------------
function compute(list_index,price,descr,tax,discount)
{
  sindex = top.frames[2].document.forms[0].elements[list_index].value;

  aQuant.length = aQuant.length + 1;

  if (sindex == 0)
  {
	  alert("Vul de gewenste hoeveelheid in en voeg het produkt nogmaals toe.");
	  top.frames[2].document.forms[0].elements[list_index].focus();
  }
  else
  {
	  m = aQuant.length - 1;
	  n = m + 1; 
	  aQuant[n] = sindex;
	  aPrice[n] = price;
	  aDescr[n] = descr;
	  aTax[n] = tax;
	  aDiscount[n] = discount;
	  subt = (eval(subt) + (eval(price) * eval(sindex)));
	  addtax = (eval(addtax) + (eval(price) * eval(sindex) * eval(tax) * 0.01));
	  updateLeft();	
  }
}
//-------------------------------------
function uncompute2(quant,price,descr,tax,discount)
{	
	  var undescr = unescape(descr); 

	  if((subt != 0)&&(confirm(" " + quant + " " + undescr + " verwijderen uit uw winkelwagen?")))
	  {
	  subt = (eval(subt) - (eval(price) * eval(quant)));		
	  addtax = (eval(addtax) - (eval(price) * eval(sindex) * eval(tax) * 0.01));	
			//-------------------------------------
			for(i=0; i < aQuant.length; i++)
			{
				if((aDescr[i]== undescr)&&(aQuant[i]==quant))
				{
					aQuant[i]=0;
					break;
				}
			}
			timeOutId = setTimeout("updateLeft()",100); 
			timeOutId = setTimeout("showCart()",100); 			  		
	    }				
}	
//--------------------------------------------------------------------- 
function checkOutCart()
{
	if(top.frames[0].subt <= 7499)
	{
		alert("Het subtotaal moet minstens EUR 75.00 bedragen. Voeg extra produkten toe svp.");
	}
	else
	{
		top.frames[2].document.forms[0].submit();
	}
}
//--------------------------------------------------------------------- 
function checkOutInfo()
{
	if(top.frames[2].document.forms[0].Email.value == "")
	{
		alert("Vul uw emailadres in svp.");
		top.frames[2].document.forms[0].Email.focus();
		top.frames[2].document.forms[0].Email.select();
	}
	else if(top.frames[2].document.forms[0].Email.value.indexOf('@') == -1)
	{
		alert("Uw emailadres is niet correct ingevuld. (bijvoorbeeld: naam@domein.com)");
		top.frames[2].document.forms[0].Email.focus();
		top.frames[2].document.forms[0].Email.select();
	}
	else if(top.frames[2].document.forms[0].phone.value == "")
	{
		alert("Vul een telefoonnummer in waarop wij u kunnen bereiken svp.");
		top.frames[2].document.forms[0].phone.focus();
		top.frames[2].document.forms[0].phone.select();
	}
	else if(top.frames[2].document.forms[0].invoice_address1.value == "")
	{
		alert("Vul het factuuradres in svp.");
		top.frames[2].document.forms[0].invoice_address1.focus();
		top.frames[2].document.forms[0].invoice_address1.select();
	}
	else if(top.frames[2].document.forms[0].invoice_zipcode.value == "")
	{
		alert("Vul de postcode in svp.");
		top.frames[2].document.forms[0].invoice_zipcode.focus();
		top.frames[2].document.forms[0].invoice_zipcode.select();
	}
	else if(top.frames[2].document.forms[0].invoice_city.value == "")
	{
		alert("Vul de plaats in svp.");
		top.frames[2].document.forms[0].invoice_city.focus();
		top.frames[2].document.forms[0].invoice_city.select();
	}
	else
	{
	top.frames[2].document.forms[0].submit();
	}
}
//-------------------------------------
function showCart()
{
  var doc = top.frames[2].window.document;
  doc.clear();
  doc.write("<title>Shopping cart</title>");
  doc.write("<link REL='stylesheet' HREF='style/style.css' TYPE='text/css'>");
  doc.write("<base target='_self'>");
  doc.write("<body bgcolor='#fffcf8' topmargin=0 leftmargin=0>");
  doc.write("<form action='info.htm' target=bottom>");
  doc.write("<table width=609 border=0 cellspacing=0 cellpadding=0 height=100%><tr><td valign=top>");
  doc.write("<table width=100% border=0 cellspacing=1 cellpadding=0 class=left><tr><td bgcolor=#FFFCF8>");
  doc.write("<table width=100% border=0 cellspacing=20 cellpadding=0>");
  doc.write("<tr><td width=100%>");
  doc.write("<table width=100% border=0 cellpadding=3 cellspacing=2 class=shop>");
  doc.write("<tr><td colspan=5 class=blauwheadersmall>Inhoud winkelwagen</td></tr>");
   doc.write("<tr bgcolor=#FFFCF8><td width=46%><B>Produkt</B></td> <td width=15% align=right><B>Prijs/stuk</B></td><td align=center width=12%><B>Aantal</B></td><td align=right width=20%><B>Totaal (EUR)</B></td><td align=center width=7%><B></B></td></tr>");
  //-------------------------------------
  m = aQuant.length - 1;
  n = m + 1; 

  if(subt == 0)
  {
  	tot = 0;
  }	
  //-------------------------------------
  for (i=0 ; i < n; i++)
  {
	  	if((aQuant[i] != null)&&(aQuant[i] != 0)&&(aDiscount[i] == 0))
		{
		cost = eval(aPrice[i])*eval(aQuant[i]);
		var description = escape(aDescr[i]);
		x = (i+1) * 0.5;
		p = aQuant.length * 0.5;
		doc.write("<tr bgcolor=#FFFCF8>");
  		doc.write("<td>" + aDescr[i] + "</td><td align=right>" + AddDecimal(aPrice[i]) + "</td><td align=center>" +  aQuant[i] + "</td><td align=right>" + AddDecimal(cost) + "</td>");
		doc.write("<td align=center><A HREF=javascript:top.frames[0].uncompute2(" + aQuant[i] + "," + aPrice[i] + ",'" + description + "'," + aTax[i] + "," + aDiscount[i] + ")><img src='images/remove_cart.gif' border=0 width=16 height=9 alt='verwijder uit winkelwagen'></A></td>");
		doc.write("</tr>");
		}
  }	
  //-------------------------------------
  doc.write("<tr bgcolor=#FFFCF8><td colspan=3><B>Het subtotaal is: </B></td><td align=right><B>EUR " +  AddDecimal(subt) + "</B></td><td>&nbsp;</td></tr>")
  //-------------------------------------
  doc.write("<tr height=10 bgcolor=#FFFCF8><td colspan=5>--<a href='javascript:top.frames[1].refresh();'>alles verwijderen</a>--</td></tr></table></td></tr>")
  doc.write("<tr bgcolor=#FFFCF8><td align=right colspan=5><a href='javascript:top.frames[0].checkOutCart();'><img src='images/continue_button.gif' border=0 width=42 height=28></a></td></tr>")

    doc.write("</table></td></tr></table></td>");
    doc.write("<td></td><td bgcolor=#C0C0C0 rowspan=3><img src='images/trans.gif' width=1 height=1></td></tr>");
    doc.write("<tr><td><table border=0 width=100% cellspacing=20 cellpadding=0>")

  //-------------------------------------
  doc.write("<tr><td colspan=5 align=right><br>")
	
	doc.write("<table border=0 width=75% cellpadding=0 cellspacing=1 class=left>")
	doc.write("<tr><td width=25% class=step><img src='images/trans.gif' width=1 height=5></td><td width=25% bgcolor=#FFFCF8></td><td width=25% bgcolor=#FFFCF8></td><td width=25% bgcolor=#FFFCF8></td></tr>")
	doc.write("</table>")

	doc.write("<table border=0 width=75% cellpadding=0 cellspacing=1>")
	doc.write("<tr><td width=25% align=center>Winkelwagen</td><td width=25% align=center>Adres</td><td width=25% align=center>Betaling</td><td width=25% align=center>Kassa</td>")

     doc.write("</tr></table></td></tr></table></td><td><img src='images/trans.gif' width=19 height=19></td></tr>");

    doc.write("<tr><td></td><td><img src='images/trans.gif' width=19 height=19></td></tr>");
   doc.write("<tr><td colspan=2 bgcolor=#C0C0C0><img src='images/trans.gif' width=1 height=1></td></tr>");
  doc.write("</table>")
  //-------------------------------------
  doc.write("</form>")
  doc.write("</body>");
  doc.close();
}
//-------------------------------------
function checkPayment()
{
if(top.frames[2].pay == "rembours")
	{
	top.frames[2].document.location='checkout_fax.htm';
	}
else if(top.frames[2].pay == "cc")
	{
	top.frames[2].document.location='checkout_cc.htm';
	}
else if(top.frames[2].pay == "bank")
	{
	top.frames[2].document.location='checkout_bank.htm';
	}
else
	{
	top.frames[2].document.location='checkout_factuur.htm';
	}
}
//-------------------------------------
function showCheckout()
{
  var doc = top.frames[2].window.document;
  doc.clear();
var ref= new Date();
month = ref.getMonth() + 1;
ref = ref.getYear()+"."+month+"."+ref.getDate()+"."+ref.getHours()+"."+ref.getMinutes();

  doc.write("&nbsp;Referentie: " + ref +"");
  doc.write("<table width=100% border=0 cellpadding=3 cellspacing=2 class=shop>");
  doc.write("<tr><td colspan=4 class=blauwheadersmall>Inhoud winkelwagen</td></tr>");
   doc.write("<tr bgcolor=#FFFCF8><td width=50%><B>Produkt</B></td><td width=15% align=right><B>Prijs/stuk</B></td><td align=center width=15%><B>Aantal</B></td><td align=right width=20%><B>Totaal (EUR)</B></td></tr>");
  //-------------------------------------
  m = aQuant.length - 1;
  n = m + 1; 
  if(subt == 0)
  {
  	tot = 0;
  }
  updateLeft();	
  //-------------------------------------
  for (i=0 ; i < n; i++)
  {
	  	if((aQuant[i] != null)&&(aQuant[i] != 0)&&(aDiscount[i] == 0))
		{
		cost = eval(aPrice[i])*eval(aQuant[i]);
		var description = escape(aDescr[i]);
		x = (i+1) * 0.5;
		p = aQuant.length * 0.5;
		doc.write("<tr bgcolor=#FFFCF8>");
  		doc.write("<td>" + aDescr[i] + "</td><td align=right>" + AddDecimal(aPrice[i]) + "</td><td align=center>" +  aQuant[i] + "</td><td align=right>" + AddDecimal(cost) + "</td></tr>");
		}	
  }	
  //-------------------------------------
  doc.write("<tr colspan=4 height=3><td></td></tr>")
  doc.write("<tr bgcolor=#FFFCF8><td colspan=3><B>Subtotaal: </B></td><td align=right><B>EUR " +  AddDecimal(subt) + "</B></td></tr>");
  doc.write("<tr bgcolor=#FFFCF8><td colspan=3>BTW: </td><td align=right>EUR " +  AddDecimal(addtax) + "</td></tr>");
  doc.write("<tr bgcolor=#FFFCF8><td colspan=3><B>Totaal (incl. BTW): </B></td><td align=right><B>EUR " +  AddDecimal(vattotnl) + "</B></td></tr></table>")

  //-------------------------------------
  for (i=0 ; i < n; i++)
  {
	  	if((aQuant[i] != null)&&(aQuant[i] != 0))
		{
		var description = escape(aDescr[i]);
		x = (i+1) * 0.5;
		p = aQuant.length * 0.5;

		doc.write("<input type=hidden name='descr" + (x) + "' value=" + description + ">");
		doc.write("<input type=hidden name='quant" + (x) + "' value=" + aQuant[i] + ">");
		}
  }
  doc.write("<input type=hidden name='valuta' value=EUR>");
  doc.write("<input type=hidden name='subt' value=" + AddDecimal(subt) + ">");
if (top.frames[1].document.forms[0].country_hidden.value == "Nederland")
  doc.write("<input type=hidden name='addtax' value=" + AddDecimal(addtax) + ">");
  doc.write("<input type=hidden name='tot' value=" + AddDecimal(vattotnl) + ">");

var orderdate= new Date();
month = orderdate.getMonth() + 1;
orderdate = orderdate.getDate()+"-"+month+"-"+orderdate.getYear();

  doc.write("<input type=hidden name='num_order' value=" + top.frames[1].document.forms[0].num_order_hidden.value + ">");
  doc.write("<input type=hidden name='ref' value=" + ref + ">");
  doc.write("<input type=hidden name='orderdate' value=" + orderdate + ">");

doc.close();
} 
//-------------------------------------
function showInfo()
{
  var doc = top.frames[2].window.document;
  doc.clear();

	doc.write("<table width=100% border=0 cellpadding=3 cellspacing=2 class=shop>")
	doc.write("<tr><td colspan=2 class=blauwheadersmall>Uw wensen, adressenbestand en aflevermoment</td></tr>");
	doc.write("<td colspan=2><b>Uw wensen en adressenbestand</b></td>")
	doc.write("</tr>")
	doc.write("<tr>")
	doc.write("<td colspan=2>De evt. specificatie van de letters/adres, de persoonlijke boodschap en het adressenbestand worden niet in dit overzicht getoond. <a href='javascript:history.go(-2)'>Klik hier</a> indien u wijzigingen wilt aanbrengen.</td>")
	doc.write("</tr>")
	doc.write("<tr colspan=2 height=10><td></td></tr>")
	doc.write("<tr>")
	doc.write("<tr>")
	doc.write("<td colspan=2><b>Tijdstip van bezorging</b></td>")
	doc.write("</tr>")
	doc.write("<tr>")
	doc.write("<td width=30%>In week:</td>")
	doc.write("<td width=70%>&nbsp;" + top.frames[1].document.forms[0].aflevertijdstip_hidden.value + "</td>")
	doc.write("</tr>")
	doc.write("</table><br>");
	doc.write("<table width=100% border=0 cellpadding=3 cellspacing=2 class=shop>")
	doc.write("<tr><td colspan=2 class=blauwheadersmall>Contactpersoon en factuuradres</td></tr>");
	doc.write("<tr><td colspan=2><b>Contactpersoon</b></td></tr>")
	doc.write("<tr>")
	doc.write("<td width=30%>Bedrijf</td>")
	doc.write("<td width=70%>&nbsp;" + top.frames[1].document.forms[0].bedrijfsnaam_hidden.value + "</td>")
	doc.write("</tr>")

	doc.write("<tr>")
	doc.write("<td width=30%>Naam</td>")
if (top.frames[1].document.forms[0].last_name_hidden.value == "")
	{
	doc.write("<td width=70%>&nbsp;</td>");
	}
else
	{
	doc.write("<td width=70%>&nbsp;" + top.frames[1].document.forms[0].last_name_hidden.value + "</td>");
	}
	doc.write("</tr>")
	doc.write("<tr>")
	doc.write("<td width=30%>Emailadres</td>")
	doc.write("<td width=70%>&nbsp;" + top.frames[1].document.forms[0].Email_hidden.value + "</td>")
	doc.write("</tr>")
	doc.write("<tr>")
	doc.write("<td width=30%>Telefoonnummer</td>")
	doc.write("<td width=70%>&nbsp;" + top.frames[1].document.forms[0].phone_hidden.value + "</td>")
	doc.write("</tr>")
	doc.write("<tr colspan=2 height=10><td></td></tr>")
	doc.write("<tr>")
	doc.write("<td colspan=2><b>Factuuradres</b></td>")
	doc.write("</tr>")
	doc.write("<tr>")
	doc.write("<td width=30%>Bedrijf</td>")
	doc.write("<td width=70%>&nbsp;" + top.frames[1].document.forms[0].invoice_company_hidden.value + "</td>")
	doc.write("</tr>")
	doc.write("<tr>")
	doc.write("<td width=30%>Afdeling</td>")
	doc.write("<td width=70%>&nbsp;" + top.frames[1].document.forms[0].invoice_afdeling_hidden.value + "</td>")
	doc.write("</tr>")
	doc.write("<tr>")
	doc.write("<td width=30%>Uw kenmerk</td>")
	doc.write("<td width=70%>&nbsp;" + top.frames[1].document.forms[0].invoice_kenmerk_hidden.value + "</td>")
	doc.write("</tr>")
	doc.write("<tr>")
	doc.write("<td width=30%>Adres</td>")
	doc.write("<td width=70%>&nbsp;" + top.frames[1].document.forms[0].invoice_address1_hidden.value + "</td>")
	doc.write("</tr>")
if (top.frames[1].document.forms[0].invoice_address2_hidden.value != "")
	{
	doc.write("<tr>")
	doc.write("<td width=30%>&nbsp;</td>")
	doc.write("<td width=70%>&nbsp;" + top.frames[1].document.forms[0].invoice_address2_hidden.value + "</td>")
	doc.write("</tr>")
	}
	doc.write("<tr>")
	doc.write("<td width=30%>Postcode/Plaats</td>")
	doc.write("<td width=70%>&nbsp;" + top.frames[1].document.forms[0].invoice_zipcode_hidden.value + "&nbsp;&nbsp;" + top.frames[1].document.forms[0].invoice_city_hidden.value + "</td>")
	doc.write("</tr>")
	doc.write("</table>");
doc.close();
}
//-------------------------------------
function updateOutputInfo()
{  
	var doc = top.frames[2].window.document;
	doc.clear();

name = top.frames[1].document.forms[0].last_name_hidden.value;
title = top.frames[1].document.forms[0].title_hidden.value;
aanhef = (title) + ' ' + (name);
var fullname = escape(aanhef);
var fulllast_name = escape(name);

	if(top.frames[1].document.forms[0].last_name_hidden.value == "")
	{
	doc.write("<input type=hidden name='fullaanhef' value=Klant>");
	}
	else
	{
	doc.write("<input type=hidden name='fullaanhef' value=" + fullname + ">");
	}

	if(top.frames[1].document.forms[0].title_hidden.value == "heer")
	{
	doc.write("<input type=hidden name='fullaanhef_etiket' value=de&nbsp;" + fullname + ">");
	}
	else
	{
	doc.write("<input type=hidden name='fullaanhef_etiket' value=" + fullname + ">");
	}

doc.write("<input type=hidden name='last_name_hidden' value=" + fulllast_name + ">");
doc.write("<input type=hidden name='title_hidden' value=" + top.frames[1].document.forms[0].title_hidden.value + ">");

bedrijfsnaam = top.frames[1].document.forms[0].bedrijfsnaam_hidden.value;
phone = top.frames[1].document.forms[0].phone_hidden.value;
company = top.frames[1].document.forms[0].company_hidden.value;
address1 = top.frames[1].document.forms[0].address1_hidden.value;
address2 = top.frames[1].document.forms[0].address2_hidden.value;
address3 = top.frames[1].document.forms[0].address3_hidden.value;
zipcode = top.frames[1].document.forms[0].zipcode_hidden.value;
city = top.frames[1].document.forms[0].city_hidden.value;
country = top.frames[1].document.forms[0].country_hidden.value;

invoice_company = top.frames[1].document.forms[0].invoice_company_hidden.value;
invoice_afdeling = top.frames[1].document.forms[0].invoice_afdeling_hidden.value;
invoice_kenmerk = top.frames[1].document.forms[0].invoice_kenmerk_hidden.value;
invoice_address1 = top.frames[1].document.forms[0].invoice_address1_hidden.value;
invoice_address2 = top.frames[1].document.forms[0].invoice_address2_hidden.value;
invoice_zipcode = top.frames[1].document.forms[0].invoice_zipcode_hidden.value;
invoice_city = top.frames[1].document.forms[0].invoice_city_hidden.value;
invoice_country = top.frames[1].document.forms[0].invoice_country_hidden.value;
aflevertijdstip = top.frames[1].document.forms[0].aflevertijdstip_hidden.value;
wensen = top.frames[1].document.forms[0].wensen_hidden.value;
actiecode = top.frames[1].document.forms[0].actiecode_hidden.value;
message = top.frames[1].document.forms[0].message_hidden.value;

var fullbedrijfsnaam = escape(bedrijfsnaam);
var fullphone = escape(phone);
var fullcompany = escape(company);
var fulladdress1 = escape(address1);
var fulladdress2 = escape(address2);
var fulladdress3 = escape(address3);
var fullzipcode = escape(zipcode);
var fullcity = escape(city);
var fullcountry = escape(country);
var fullinvoice_company = escape(invoice_company);
var fullinvoice_afdeling = escape(invoice_afdeling);
var fullinvoice_kenmerk = escape(invoice_kenmerk);
var fullinvoice_address1 = escape(invoice_address1);
var fullinvoice_address2 = escape(invoice_address2);
var fullinvoice_zipcode = escape(invoice_zipcode);
var fullinvoice_city = escape(invoice_city);
var fullinvoice_country = escape(invoice_country);
var fullaflevertijdstip = escape(aflevertijdstip);
var fullwensen = escape(wensen);
var fullactiecode = escape(actiecode);
var fullmessage = escape(message);

doc.write("<input type=hidden name='Email' value=" + top.frames[1].document.forms[0].Email_hidden.value + " >");
doc.write("<input type=hidden name='bedrijfsnaam_hidden' value=" + fullbedrijfsnaam + ">");
doc.write("<input type=hidden name='phone_hidden' value=" + fullphone + ">");
doc.write("<input type=hidden name='company_hidden' value=" + fullcompany + ">");
doc.write("<input type=hidden name='address1_hidden' value=" + fulladdress1 + ">");
doc.write("<input type=hidden name='address2_hidden' value=" + fulladdress2 + ">");
doc.write("<input type=hidden name='address3_hidden' value=" + fulladdress3 + ">");
doc.write("<input type=hidden name='zipcode_hidden' value=" + fullzipcode + ">");
doc.write("<input type=hidden name='city_hidden' value=" + fullcity + ">");
doc.write("<input type=hidden name='country_hidden' value=" + fullcountry + ">");
doc.write("<input type=hidden name='invoice_company_hidden' value=" + fullinvoice_company + ">");
doc.write("<input type=hidden name='invoice_afdeling_hidden' value=" + fullinvoice_afdeling + ">");
doc.write("<input type=hidden name='invoice_kenmerk_hidden' value=" + fullinvoice_kenmerk + ">");
doc.write("<input type=hidden name='invoice_address1_hidden' value=" + fullinvoice_address1 + ">");
doc.write("<input type=hidden name='invoice_address2_hidden' value=" + fullinvoice_address2 + ">");
doc.write("<input type=hidden name='invoice_zipcode_hidden' value=" + fullinvoice_zipcode + ">");
doc.write("<input type=hidden name='invoice_city_hidden' value=" + fullinvoice_city + ">");
doc.write("<input type=hidden name='invoice_country_hidden' value=" + fullinvoice_country + ">");
doc.write("<input type=hidden name='aflevertijdstip_hidden' value=" + fullaflevertijdstip + ">");
doc.write("<input type=hidden name='wensen_hidden' value=" + fullwensen + ">");
doc.write("<input type=hidden name='actiecode_hidden' value=" + fullactiecode + ">");
doc.write("<input type=hidden name='message_hidden' value=" + fullmessage + ">");

doc.close();
}
//-------------------------------------
function showPayment_cc()
{
  var doc = top.frames[2].window.document;
  doc.clear();
  doc.write("<table width=100% border=0 cellpadding=3 cellspacing=2 class=shop>");
  doc.write("<tr><td colspan=2 class=blauwheadersmall>Betaling</td></tr>");
  doc.write("<tr><td colspan=2><b>Betaling met creditcard</b></td></tr>");

  doc.write("<tr><td colspan=2>U kunt de creditcard gegevens invullen in het volgende scherm. Alle creditcard gegevens worden versleuteld en uitsluitend verzonden via een veilige verbinding (SSL <img src='http://www.europebymail.com/images/lock.gif' width=12 height=15>).</td></tr>");
  doc.write("</table>");
  doc.write("<input type=hidden name='paymentselected' value='cc'>");
doc.close();
}
//-------------------------------------
function showPayment_bank()
{
  var doc = top.frames[2].window.document;
  doc.clear();
  doc.write("<table width=100% border=0 cellpadding=3 cellspacing=2 class=shop>");
  doc.write("<tr><td colspan=2 class=blauwheadersmall>Betaling</td></tr>");
  doc.write("<tr><td colspan=2><b>Betaling per bank</b></td></tr>");
  doc.write("<tr><td colspan=2>Maak het bestelbedrag over naar onze bankrekening o.v.v. het referentienummer.  Onze bankgegevens treft u aan in de bevestigingsemail.</td></tr>");
  doc.write("</table>");
  doc.write("<input type=hidden name='paymentselected' value='bank'>");
doc.close();
}
//-------------------------------------
function showPayment_fax()
{
  var doc = top.frames[2].window.document;
  doc.clear();
	doc.write("<table width=100% border=0 cellpadding=3 cellspacing=2 class=shop>");
	doc.write("<tr><td colspan=2 class=blauwheadersmall>Betaling</td></tr>");
	doc.write("<tr><td colspan=2><b>Betalen aan de postbode</b></td></tr>");
	doc.write("<tr>");
	doc.write("<td colspan=2>U betaalt aan de postbode bij aflevering.<br>");
	doc.write("Ter bevestiging van uw bestelling ontvangen wij graag een ondertekende opdracht per fax. U kunt deze pagina als bijlage bij uw opdrachtbevestiging voegen.</td>");
	doc.write("</tr>");
	doc.write("<tr>");
	doc.write("<td width=30%>Print deze pagina<br></td>");
	doc.write("<td width=70%><a href='javascript:top.frames[2].printFrame()'>");
	doc.write("<img src='images/print.gif' width=18 height=16 align=absmiddle border=0>");
	doc.write("</a>");
	doc.write("</td></tr>");
	doc.write("<tr>");
	doc.write("<td width=30%>Faxnummer<br></td>");
	doc.write("<td width=70%>013 - 707 4412</td>");
	doc.write("</tr>");
	doc.write("<tr>");
	doc.write("<td colspan=2>Voor accoord,</td>");
	doc.write("</tr>");
	doc.write("<tr>");
	doc.write("<td colspan=2><br><br>_______________________ (handtekening)</td>");
	doc.write("</tr>");
  doc.write("</table>");
  doc.write("<input type=hidden name='paymentselected' value='rembours'>");
doc.close();
}
//-------------------------------------
function showPayment_factuur()
{
  var doc = top.frames[2].window.document;
  doc.clear();
	doc.write("<table width=100% border=0 cellpadding=3 cellspacing=2 class=shop>");
	doc.write("<tr><td colspan=2 class=blauwheadersmall>Betaling</td></tr>");
	doc.write("<tr><td colspan=2><b>Betalen na ontvangst van factuur</b></td></tr>");
	doc.write("<tr>");
	doc.write("<td colspan=2>Voor overheid en bedrijven die staan ingeschreven bij de Kamer van Koophandel, bestaat de mogelijkheid om te betalen na ontvangst van factuur na overlegging van een schriftelijke, ondertekende opdrachtbevestiging.<br><br>Print dit bestelformulier, vul het KvKnummer in en fax de opdrachtbevestiging.</td>");
	doc.write("</tr>");
	doc.write("<tr>");
	doc.write("<td width=30%>Print deze pagina<br></td>");
	doc.write("<td width=70%><a href='javascript:top.frames[2].printFrame()'>");
	doc.write("<img src='images/print.gif' width=18 height=16 align=absmiddle border=0>");
	doc.write("</a>");
	doc.write("</td></tr>");
	doc.write("<tr>");
	doc.write("<td width=30%>Faxnummer<br></td>");
	doc.write("<td width=70%>013 - 707 4412</td>");
	doc.write("</tr>");
	doc.write("<tr>");
	doc.write("<td width=30%>KvKnr.:</td>");
	doc.write("<td width=70%>________________</td>");
	doc.write("</tr>");
	doc.write("<tr>");
	doc.write("<td colspan=2>Voor accoord,</td>");
	doc.write("</tr>");
	doc.write("<tr>");
	doc.write("<td colspan=2><br><br>_______________________ (handtekening)</td>");
	doc.write("</tr>");
  doc.write("</table>");
  doc.write("<input type=hidden name='paymentselected' value='factuur'>");
doc.close();
}
// -->
