GIF89a php
Current File : /home/hencockfreshchic/public_html/admin.cpanel/uploadjs/approveVendor.js
function approveVendor(sr,email)
{
	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("Vendor account has been approved");
      	window.location.href = ("approve_vendor_account.php");
      }
      else if(this.responseText==0)
      {
      	alert("Error : Unable to approve vendor account. \n Contact to developer");      
      }
	}
  };
  xmlhttp.open("GET","approveVendorAC.php?sr="+sr+"&email="+email,true);
  xmlhttp.send();
}