	function GetXmlHttpObject(handler)
		{ 
		var objXmlHttp=null
		
		if (navigator.userAgent.indexOf("Opera")>=0)
		{
		alert("This example doesn't work in Opera") 
		return 
		}
		if (navigator.userAgent.indexOf("MSIE")>=0)
		{ 
		var strName="Msxml2.XMLHTTP"
		if (navigator.appVersion.indexOf("MSIE 5.5")>=0)
		{
		strName="Microsoft.XMLHTTP"
		} 
		try
		{ 
		objXmlHttp=new ActiveXObject(strName)
		objXmlHttp.onreadystatechange=handler 
		return objXmlHttp
		} 	
		catch(e)
		{ 
		alert("Error. Scripting for ActiveX might be disabled") 
		return 
		} 
		} 
		if (navigator.userAgent.indexOf("Mozilla")>=0)
		{
		objXmlHttp=new XMLHttpRequest()
		objXmlHttp.onload=handler
		objXmlHttp.onerror=handler 
		return objXmlHttp
		}
		}

	function bodstaff_list_status(staff_status){
			var staff_status = staff_status;
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponsebod1);
			xmlHttp.open("GET","allstafflist.php?staff_status="+staff_status);
			xmlHttp.send(null);
		}
		
		function handleHttpResponsebod1() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		function bodstaff_list_sorting(csortval,staff_status){
			
			var start = start;
		
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponsebod2);
			xmlHttp.open("GET","allstafflist.php?csortval="+csortval+"&staff_status="+staff_status);
			xmlHttp.send(null);
		}
		
		function handleHttpResponsebod2() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		function bodstaff_list_paging(start,csortval){
			
			var start = start;
		
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponsebod3);
			xmlHttp.open("GET","allstafflist.php?start="+start+"&csortval="+csortval);
			xmlHttp.send(null);
		}
		
		function handleHttpResponsebod3() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		function bodstaff_list(internalstaffdetailsid,status,action){
			
			var internalstaffdetailsid = internalstaffdetailsid;
			var status=status;
			//alert(action);
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponsebod4);
			xmlHttp.open("GET","allstafflist.php?internalstaffdetailsid="+internalstaffdetailsid+"&status="+status+"&action="+action);
			xmlHttp.send(null);
		}
		
		function handleHttpResponsebod4() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		
		
		function botstaff_list_status(staff_status){
			var staff_status = staff_status;
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponsebot5);
			xmlHttp.open("GET","allbotlist.php?staff_status="+staff_status);
			xmlHttp.send(null);
		}
		
		function handleHttpResponsebot5() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		function botstaff_list_sorting(csortval,staff_status){
			
			var start = start;
		
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponsebot6);
			xmlHttp.open("GET","allbotlist.php?csortval="+csortval+"&staff_status="+staff_status);
			xmlHttp.send(null);
		}
		
		function handleHttpResponsebot6() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		function botstaff_list_paging(start,csortval){
			
			var start = start;
		
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponsebot7);
			xmlHttp.open("GET","allbotlist.php?start="+start+"&csortval="+csortval);
			xmlHttp.send(null);
		}
		
		function handleHttpResponsebot7() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		function botstaff_list(internalstaffdetailsid,status,action){
			
			var internalstaffdetailsid = internalstaffdetailsid;
			var status=status;
			//alert(action);
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponsebot8);
			xmlHttp.open("GET","allbotlist.php?internalstaffdetailsid="+internalstaffdetailsid+"&status="+status+"&action="+action);
			xmlHttp.send(null);
		}
		
		function handleHttpResponsebot8() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		function fsstaff_list_status(staff_status){
			var staff_status = staff_status;
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponsefs5);
			xmlHttp.open("GET","allfslist.php?staff_status="+staff_status);
			xmlHttp.send(null);
		}
		
		function handleHttpResponsefs5() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		function fsstaff_list_sorting(csortval,staff_status){
			
			var start = start;
		
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponsefs6);
			xmlHttp.open("GET","allfslist.php?csortval="+csortval+"&staff_status="+staff_status);
			xmlHttp.send(null);
		}
		
		function handleHttpResponsefs6() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		function fsstaff_list_paging(start,csortval){
			
			var start = start;
		
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponsefs7);
			xmlHttp.open("GET","allfslist.php?start="+start+"&csortval="+csortval);
			xmlHttp.send(null);
		}
		
		function handleHttpResponsefs7() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		function fsstaff_list(internalstaffdetailsid,status,action){
			
			var internalstaffdetailsid = internalstaffdetailsid;
			var status=status;
			//alert(action);
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponsefs8);
			xmlHttp.open("GET","allfslist.php?internalstaffdetailsid="+internalstaffdetailsid+"&status="+status+"&action="+action);
			xmlHttp.send(null);
		}
		
		function handleHttpResponsefs8() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("container").innerHTML=xmlHttp.responseText;
			  
			}
		}
		function bod_details(internalstaffdetailsid){
			
			var internalstaffdetailsid = internalstaffdetailsid;
			//var status=status;
			//alert(action);
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponsefs9);
			xmlHttp.open("GET","bod_details.php?internalstaffdetailsid="+internalstaffdetailsid);
			xmlHttp.send(null);
		}
		
		function handleHttpResponsefs9() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				
			  document.getElementById("dircontentboxright").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		function bot_details(internalstaffdetailsid){
			
			/*var id = id;
			var status=status;*/
			var url = "bot_details.php?internalstaffdetailsid="+internalstaffdetailsid;
			//alert(url);
			//alert(adminuserid);
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponsebotdetails);
			xmlHttp.open("GET",url);
			xmlHttp.send(null);
		}
		
		function handleHttpResponsebotdetails() {
			if (xmlHttp.readyState == 4) {
			 // alert(xmlHttp.responseText);
				document.getElementById("botdetails").style.display="block";
			    document.getElementById("botdetails").innerHTML=xmlHttp.responseText;
			  
			  
			}
		}	
		
		
