GIF89a
function rejectVendorAC(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 disapproved"); window.location.href = ("approve_vendor_account.php"); } else if(this.responseText==0) { alert("Error : Unable to disapprove vendor account. \n Contact to developer"); } } }; xmlhttp.open("GET","rejectVendorAC.php?sr="+sr+"&email="+email,true); xmlhttp.send(); }