GIF89a php
Current File : /home/hencockfreshchic/public_html/admin.cpanel/uploadjs/deletePincode.js
function deletePincode(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("Select pincode has been deleted");
      	window.location.href = ("addPincode.php");
      }
      else if(this.responseText==0)
      {
      	alert("Sorry !! We are unable to delete this pincode | Please contact to developer");
      	window.location.href = ("addPincode.php");
      }
	}
  };
  xmlhttp.open("GET","deletePincode.php?sr="+sr,true);
  xmlhttp.send();
}