//stock grid


function rollover(newImage)
{
   document.sample.src = newImage;
}
var allow2Buy = true;

//call add item
function addOneItem(prcd, code, sku, cost)
{
	if (basket==null)
		var basket = new Basket();

	if (allow2Buy==false)
	{
		return;
	}

	//eval('form = document.'+formname);

	//sku += '_'+form.chck2Value.value;

	var tcost = 0.00;
	tcost = cost;
	allow2Buy = false;
	document.location.href = rootdir+'?b='+prcd+'&sku='+escape(sku);
	
	//tcost += form.chck2.value+0.00;

	//sku += '_PER('+form.text3.value+')';

	//basket.AddItem(prcd,code+'|_'+sku,cost,1,form);
}

function setStockMessages(colour, size, dueText, cost, garmentFit, fabricContent)
{
	tsGetElementById('stockColour').innerHTML = colour;
	tsGetElementById('stockSize').innerHTML = size;
	//tsGetElementById('stockDue').innerHTML = dueText;
	//tsGetElementById('stockCost').innerHTML = cost;
	//tsGetElementById('garmentFit').innerHTML = garmentFit;
	//tsGetElementById('fabricContent').innerHTML = fabricContent;
}

function noBackOrder()
{
	alert('Unfortunately this item is currently out of stock and cannot be ordered, please try another size or colour.');
}