var
pr = new Array ();
sh = new Array ();
sh2 = new Array ();
gg = new Array ();
yn = new Array ();
pr2 = new Array ();
yn2 = new Array ();
sizeprice = new Array ();
wwidth = new Array ();
hheight = new Array ();
wweight = new Array ();
ddepth = new Array ();
ddiameter = new Array ();
xx='';
i=0;

function update_price(pr2,yn2,sh2,hm2) {
	price=0; shiping=0;

	for(i=0;i<pr2.length;i++) {
		if(yn2[i]) {
			price=price+pr2[i]; shiping=shiping+sh[i];
		}
	}

	document.all.deev.innerHTML = '$'+price;
	shiping = Math.round(shiping*100)/100;

	if(hm2)
		document.all.deev2.innerHTML = '$'+shiping;

}

function chLocation(newLocation) {
	document.location = newLocation;
}