function Help(section,subsection)
{
help = window.open('about:blank', 'help', 'scrollbars=1,status=1,resizable=0,width=400, height=400');

window.help.location.replace('help.cfm?section='+section+'&subsection='+subsection);
}

function RemoveItem()
{
if (bag_quantity!=0){
bag_quantity = bag_quantity - 1;
UpdateBasket();
}

}

function UpdateBasket()
{
if (bag_quantity==0) {
document.all["TheTD"].innerHTML = bag_quantity + ' records in box ' + "<img src=\"images/box.gif\" width=\"29\" height=\"36\" alt=\"\" border=\"0\">"
}

if (bag_quantity==1) {
document.all["TheTD"].innerHTML = bag_quantity + ' record in box ' + "<img src=\"images/box_1.gif\" width=\"29\" height=\"36\" alt=\"\" border=\"0\">"
}

if (bag_quantity==2) {
document.all["TheTD"].innerHTML = bag_quantity + ' records in box ' + "<img src=\"images/box_2.gif\" width=\"29\" height=\"36\" alt=\"\" border=\"0\">"
}

if (bag_quantity==3) {
document.all["TheTD"].innerHTML = bag_quantity + ' records in box ' + "<img src=\"images/box_3.gif\" width=\"29\" height=\"36\" alt=\"\" border=\"0\">"
}

if (bag_quantity>3) {
document.all["TheTD"].innerHTML = bag_quantity + ' records in box ' + "<img src=\"images/box_full.gif\" width=\"29\" height=\"36\" alt=\"\" border=\"0\">"
}
}

function Bag(item)
{
bag = window.open('about:blank', 'bag', 'scrollbars=1,status=1,resizable=0,width=700, height=400');
if(item)
	{
		window.bag.location.replace('bag.cfm?action=add_to_bag&item='+item);
	}
else
	{
		window.bag.location.replace('bag.cfm');
	}

}

function AddToBag(item) {
bag_quantity = bag_quantity + 1;
UpdateBasket();
Bag(item);
//bag = window.open('bag.cfm?action=add_to_bag&item='+item, 'bag', 'scrollbars=1,status=1,resizable=0,width=700, height=400');
}

function CopyInfo(){
	document.new_customer.customer_shipping_add1.value = document.new_customer.customer_billing_add1.value;
	document.new_customer.customer_shipping_add2.value = document.new_customer.customer_billing_add2.value;
	document.new_customer.customer_shipping_add3.value = document.new_customer.customer_billing_add3.value;
	document.new_customer.customer_shipping_city.value = document.new_customer.customer_billing_city.value;	
	document.new_customer.customer_shipping_province.value = document.new_customer.customer_billing_province.value;	
	document.new_customer.customer_shipping_postcode.value = document.new_customer.customer_billing_postcode.value; 
	document.new_customer.customer_shipping_country.selectedIndex =
	       document.new_customer.customer_billing_country.selectedIndex; 
 	
	}