GIF89a php
Current File : /home/hencockfreshchic/public_html/admin.cpanel/js/delSelAll.js
function delSelAll(redirect,table)
{
	if(chkArr=="")
	{
		alert("Please select some items");
	}
	else
	{
			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)
		      {
		      	window.location.href = (redirect);
		      }
		      else
		      {
		      	alert("Unable to delete selected data.");
		      }	
			}
		  };
		  xmlhttp.open("GET","delSelAll.php?chkArr="+chkArr+"&table="+table,true);
		  xmlhttp.send();

	}
}