function update_qty(item)
{
item_id = item.name;
new_qty = item.options[item.selectedIndex].text;

document.location.href = 'cart.php?action=update_item&amp;id='+item_id+'&amp;qty='+new_qty;
}


function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
     for (i=0; i<(args.length-1); i+=2) {
	   eval(args[i]+".location='"+args[i+1]+"'");
	 }
}


	
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


function confirm_delete(location) {
	var answer = confirm("Are you sure you want to remove this product?")
	if (answer){
		window.location = location;
	}
}

function confirm_delete_content(location) {
	var answer = confirm("Are you sure you want to delete that content?")
	if (answer){
		window.location = location;
	}
}


function confirm_publish_content(location) {
	var answer = confirm("Are you sure you want to publish that content?")
	if (answer){
		window.location = location;
	}
}
