GIF89a php
Current File : /home/hencockfreshchic/public_html/admin.cpanel/js/deleteCM.js
function deleteCM(srr,prod_id,order_id,redirect)
{
		if (window.XMLHttpRequest) {
	            xmlhttp = new XMLHttpRequest();
	        } else {          
	            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	        } 
	  xmlhttp.onreadystatechange=function() 
	   {
	    if (this.readyState==4 && this.status==200) 
		{
	      if(this.responseText==1)
	      {
	      	window.location.href = (redirect);
	      }
	      else
	      {
	      	alert("Unable to delete selected data");
	      }
		
		}
	  };
	  xmlhttp.open("GET","deleteCM.php?srr="+srr+"&prod_id="+prod_id+"&order_id="+order_id,true);
	  xmlhttp.send();
}