GIF89a php
Current File : /home/hencockfreshchic/public_html/admin.cpanel/js/removeWebConfig.js
function removeWebConfig(){
	if (window.XMLHttpRequest) {
            // code for IE7+, Firefox, Chrome, Opera, Safari
            xmlhttp = new XMLHttpRequest();
        } else {
            // code for IE6, IE5
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        } 
  xmlhttp.onreadystatechange=function() 
   {
    if (this.readyState==4 && this.status==200) 
	{
		if(this.responseText==1){   
		alert("Web config page data has been removed");   
		window.location.href = ("webconfigform.php?id=1");
		}
		else
		{
		alert("Dear user, we are unable to remove web config page data");   
		window.location.href = ("webconfigform.php?id=1");
		}
	}
  };
  xmlhttp.open("GET","removeWebConfig.php",true);
  xmlhttp.send();
}