// JavaScript Document

function AddToBasket(description, qty, price, weight) {

	var price;
	var itemDesc;
	var nextURL;
			
	<!-- validate qty  -->
	if (qty < 1) {
		alert ("No quantity entered");
		return;
	}
	
	<!-- validate price  -->
	if (price < 1) {
		alert ("No price entered");
		return;
	}

	itemDesc = description;

	<!-- Replace all spaces with a + -->
	itemDesc=itemDesc.replace(/ /g,"+");
	itemDesc=itemDesc.replace(/&/g,"and");
	
	<!-- Set return page -->
	nextURL="http://www.christmascribs.com/christmascribs2007/shop.htm";
			
	<!-- Add to and display basket -->
	window.location.href = "http://www.romancart.com/cart.asp?itemname="+itemDesc+"&storeid=29869&quantity="+qty+"&weight="+weight+"&price="+price+"&returnurl="+nextURL;
	
}
