GIF89a php
Current File : /home/hencockfreshchic/public_html/admin.cpanel/js/removeWConfig.js
function removeWConfig(field,id){
     

	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("Data has been removed");
				window.location.href = ("webconfigform.php");
				$("#"+id).focus();
			}else{
					alert("Unable to remove data");
				window.location.href = ("webconfigform.php");
				$("#"+id).focus();
			}
	}
  };
  xmlhttp.open("GET","removeWConfig.php?field="+field,true);
  xmlhttp.send();
}