GIF89a php
Current File : /home/hencockfreshchic/public_html/admin.cpanel/js/disapproveHotDeal.js
function disapproveHotDeal(sr){
	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)
      {
      	alert("This hot deal product has been disapproved and acknowledged to vendor");
      	window.location.href = ("approve_deal.php");
      }
      else if(this.responseText==0)
      {
      	alert("Error : Unable to disapprove this product \n Contact to developer");
      	
      }
	}
  };
  xmlhttp.open("GET","disapproveHotDeal.php?sr="+sr,true);
  xmlhttp.send();
}