
var xmlHttp

function closeIt(where){
   moveTo(where, -mouseX-10, -mouseY-10)
   document.getElementById(where).innerHTML='';
   document.getElementById(where).style.height = 0;
   document.getElementById(where).style.width = 0;
   window.location = "";
}

function simpleClose(where){
   document.getElementById(where).innerHTML='';
}

function stateChanged()
{
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
   {
   document.getElementById("WindowMe").innerHTML=xmlHttp.responseText
   }
}

function GetXmlHttpObject()
{
var objXMLHttp=null
if (window.XMLHttpRequest)
  {
  objXMLHttp=new XMLHttpRequest()
  }
else if (window.ActiveXObject)
  {
  objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
  }
return objXMLHttp
}

  function AjaxAction(where, url){
         xmlHttp = new GetXmlHttpObject()
         if(xmlHttp==null){
                 return;
                 }
         var bar = '<img src="images/loading.gif" /> &#272;ang t&#7843;i d&#7919; li&#7879;u';
         document.getElementById(where).innerHTML = bar
         xmlHttp.onreadystatechange= function(){
                 if(xmlHttp.readyState==4 || xmlHttp.readyState == 200){
                          document.getElementById(where).innerHTML = xmlHttp.responseText
                         }
                 }
         xmlHttp.open("GET", url, true);
         xmlHttp.send(null);
  }
