function MA(n) 
{
this.length=n;
return this;
}

arm=10;
nwbc=new MA(arm);
nwom=new MA(arm);
nwpr=new MA(arm);
nwma=new MA(arm);
nwsh=new MA(arm);
nwpi=new MA(arm);
nwpro=new MA(arm);
nwne=new MA(arm);
nwre=new MA(arm);
nwct=0;

function TD(code,description,price,manufact,recu)
	{
	nwbc[nwct]=code;
	nwom[nwct]=description;
	nwpr[nwct]=price;
	nwma[nwct]=manufact;
	nwre[nwct]=recu;
	nwct++;
	}

function koop(plaats)
	{	
	aantal = document.all.item("input",plaats).value;
	parent.AddOrder(nwom[plaats], nwbc[plaats], nwpr[plaats],aantal,nwre[plaats]);
	parent.TransportPrice=0;
	}

function muisover(plaats)
	{
	//plaats=plaats;
	//document.images[plaats].src = "images/caddiesmall.gif";
	
	this.src='images/caddiesmall.gif';
	}

function muisuit(plaats)
	{
	//plaats=plaats;
	//document.images[plaats].src = "images/caddie.gif";
	this.src='images/caddie.gif';
	}

function drawshop() {
	document.write("<table class='tablecap' cellpadding='3' cellspacing='1'>");
	document.write("<tr>");
		document.write("<td class='textcolumntitle' width='525' bgcolor='#A0A0A0'>");
		document.write("Product Description");
		document.write("</td>");
		document.write("<td class='textcolumntitle' width='55' bgcolor='#A0A0A0' width='100'>");
		document.write("Price ");
		document.write("</td>");
		document.write("<td class='textcolumntitle' width='30' bgcolor='#A0A0A0'>");
		document.write("Nr ");
		document.write("</td>");
		document.write("<td class='textcolumntitle' width='30' bgcolor='#A0A0A0'>");
		document.write("Buy ");
		document.write("</td>");
	document.write("</tr>");
//opbouwen van tabel
	for(var teller1=0; teller1<nwct; teller1++)	{
	document.write("<form name=order action='managecart.htm' onSubmit='AddToCart(this);'>");
	document.write("<tr>");
		document.write("<td class='textprice'  >");
		document.write(nwom[teller1]);	
		document.write("</td>");
		document.write("<td class='textprice'  > <center>");
		document.write(nwpr[teller1]);
		document.write(" €</center> </td>");
		document.write("<td class='textprice' >");
		document.write("<input type='text' size='1' maxlength='3' value='1' name=QUANTITY onChange='this.value=CKquantity(this.value)'>");
		document.write("</td>");
		document.write("<td class='textprice' >");
		document.write("<input type='image' src='images/caddie.gif' width='25' height='20' border=0 value='Add to Cart' onMouseOver=muisover(this) onMouseOut=muisuit(this)>");
		document.write("</td>");
	document.write("</tr>");
	document.write("<input type=hidden name=PRICE value='"+nwpr[teller1]+"'>");
	document.write("<input type=hidden name=NAME value='"+nwom[teller1]+"'>");
	document.write("<input type=hidden name=ID_NUM value='"+nwbc[teller1]+"'>");
	document.write("<input type=hidden name=SHIPPING value='"+nwre[teller1]+"'>");
	document.write("</form>");
	}
	document.write("</table>");
}