function openURL(f)
{
	selIndex  = f.shopping_trail.selectedIndex;
	targetUrl = f.shopping_trail.options[selIndex].value;
	if(targetUrl != "hold")
	    top.location.href=targetUrl;
}

function deleteItem(f,rVal,uKey,rowID)
{
	//var a=confirm("Are you sure you would like to remove this item?");
	var a = true;
	if(a)
	{
		f.elements[rowID].value=uKey;
		f.r.value=rVal;f.submit();
	}
	else
	{ return false; }
}

function editThisItem(f,iNum,uKey)
{
	f.i.value = iNum;f.uniqItemCartKey.value=uKey;f.submit();
}

function updateTotal(rVal)
{
	document.cartForm.r.value=rVal;document.cartForm.submit();
}

function checkOut()
{
	d=document;
	for(i=0; i<d.promoUpdate.elements.length; i++)
	{
		if(d.promoUpdate.elements[i].name == "source_code")
		{ d.checkout.last_minute_scode.value = d.promoUpdate.source_code.value; }
	}
	d.checkout.submit();
}
