function removeitem(selObj, index, ImgID) {
	$.ajax({
   		type: "GET",
   		url: "cart.php",
   		data: "action=delete&id="+ImgID,
   		success: function(msg){
			$('#item\\['+index+'\\]').html("");
			$('#item\\['+index+'\\]').fadeOut('fast');
			$('#cart').load("checkout.php #cart");
			$('#topcart').load("checkout.php #topcart");
			var data = "";
	   		}
 	});
}

function removeitem2(selObj, index, ImgID) {
	$.ajax({
   		type: "GET",
   		url: "cart.php",
   		data: "action=delete&id="+ImgID,
   		success: function(msg){
			$('#item\\['+index+'\\]').html("");
			$('#item\\['+index+'\\]').fadeOut('fast');
			$('#cart').load("cart.php #cart");
			parent.$('#topcart').load("portfolio.php #topcart");
			var data = "";
	   		}
 	});
}

function updateqty(form) {
	$.ajax({
   		type: "POST",
   		url: "cart.php",
   		data: "action=update",
   		success: function(msg){
			$('#cart').load("checkout.php #cart");
			$('#topcart').load("checkout.php #topcart");
			var data = "";
	   		}
 	});
}

function reloadtopcart() {
	parent.$('#topcart').load('portfolio.php #topcart');
}

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]+"'");
}
