// JavaScript Document for cart.php page
function submitCartForm(act,cart_id){
	document.getElementById("cmd").value = act;
	if(cart_id){
		document.getElementById("cart_id").value = cart_id;
	}
	document.cartForm.submit();
}

function refreshThis(url)
{
	if(url == ''){url = root;}
	window.location=url;
}

function doSubmit(val)
{
	//alert(document.update.company_ids.value);
	if (document.cartForm.company_ids.value != "" && document.cartForm.company_ids.value != 0){
		document.cartForm.company_id.value = document.cartForm.company_ids.value;
	}
	document.cartForm.submit();
}