function div_XMLHttpRequest(url,div_name,post_get,params,empty_script,not_empty_script) {
  var ContentDiv = document.getElementById(div_name);
  ContentDiv.style.display="block";
  //ContentDiv.innerHTML="bet&ouml;lt&eacute;s...";
  ContentDiv.innerHTML="<img src='/db/images/user_line/loading.gif'>";
  
  if(post_get==null) post_get = "GET";
  if(post_get=="get") post_get = "GET";
  if(post_get=="post") post_get = "POST";
  if(post_get!="POST" && post_get!="GET") post_get = "GET";
  try {
    var xmlhttp=new XMLHttpRequest();
  }
  catch(err1) {
    var ieXmlHttpVersions=new Array("MSXML2.XMLHttp.7.0", "MSXML2.XMLHttp.6.0", "MSXML2.XMLHttp.5.0", "MSXML2.XMLHttp.4.0", "MSXML2.XMLHttp.3.0", "MSXML2.XMLHttp", "Microsoft.XMLHttp");
    var i;
    for (i=0;i<ieXmlHttpVersions.length;i++) {
      try {
        var xmlhttp=new ActiveXObject(ieXmlHttpVersions[i]);
        break;
      }
      catch (err2) {
      }
    }
  }
  if (typeof xmlhttp == "undefined") {
   ContentDiv.innerHTML = "XMLHttp create error";
  }
  else {
    xmlhttp.open(post_get, url, true);
    xmlhttp.onreadystatechange=function() {
      if (xmlhttp.readyState==4) {
        if (xmlhttp.status==200) {
        	if(xmlhttp.responseText.substr(0,8)=="\<script\>") {
        		var s2=xmlhttp.responseText.substr(8);
            var ind2=s2.search("\</script\>")
            var s_script=s2.substr(0,ind2);
            var s_html=s2.substr(ind2+9);
            ContentDiv.innerHTML=s_html;
            eval(s_script);
        	}
        	else {
            ContentDiv.innerHTML=xmlhttp.responseText;
          }
          if(ContentDiv.innerHTML=="") {
  	        ContentDiv.style.display="none";
          }
          if(xmlhttp.responseText=="" && empty_script!=null) {
            eval(empty_script);
          }
          if(xmlhttp.responseText!="" && not_empty_script!=null) {
            eval(not_empty_script);
          }
        }
        else {
          ContentDiv.innerHTML="XMLHttp load error";
        }
      }
    }
    if(params!=null) xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); 
    xmlhttp.send(params);
  }
}
