
/*
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else 
  {// code for IE6, IE5
 
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  
		
 
  }*/
 
 function showUser(page)
{
	var XMLHttpFactories = [
    function () {return new XMLHttpRequest()},
    function () {return new ActiveXObject("Msxml2.XMLHTTP")},
    function () {return new ActiveXObject("Msxml3.XMLHTTP")},
    function () {return new ActiveXObject("Microsoft.XMLHTTP")}
];
 var xmlhttp = false;
    for (var i=0;i<XMLHttpFactories.length;i++) {
        try {
            xmlhttp = XMLHttpFactories[i]();
        }
        catch (e) {
            continue;
        }
        break;
    }
document.getElementById("txtHint").innerHTML="<center><img src='img/loading.gif' style='top:100px;'   /></center>";
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
	
    document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","cont.php?page="+page,true);
xmlhttp.send();
}

function empdir()
{
	var XMLHttpFactories = [
    function () {return new XMLHttpRequest()},
    function () {return new ActiveXObject("Msxml2.XMLHTTP")},
    function () {return new ActiveXObject("Msxml3.XMLHTTP")},
    function () {return new ActiveXObject("Microsoft.XMLHTTP")}
];
 var xmlhttp = false;
    for (var i=0;i<XMLHttpFactories.length;i++) {
        try {
            xmlhttp = XMLHttpFactories[i]();
        }
        catch (e) {
            continue;
        }
        break;
    }
	var index = document.frmEmp.selEmpd.selectedIndex; 
	var dep = document.frmEmp.selEmpd.options[index].value;
	document.getElementById("txtEmp").innerHTML="<center><img src='img/loading.gif' style='top:100px;'   /></center>";
	xmlhttp.onreadystatechange=function()
  	{
  	if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
	
    	document.getElementById("txtEmp").innerHTML=xmlhttp.responseText;
    	}
 	 }
	xmlhttp.open("GET","emplis.php?dep="+dep+"&lang=arab",true);
	xmlhttp.send();
	}

