function CheckDelete()
{
var r=confirm("Are you sure you want to delete that?");
if (r==true)
  {
  return true;
  }
else
  {
  return false;
  }
}

function AddingToCart(a) { 

var b=a.split("|"); 

if(confirm(""+b[2]+" Will Be Added to Your Cart")) {
W = "cart/AddToCart.php?ItemId="+b[0]+"&ItemPrice="+b[1]+"&ItemDesc="+b[2]+"&Type="+b[3]+"&File="+b[4];
parent.CartBox.location.href=W;
return true;
}
}
