document.write('<div id="catpanelun"></div>');

function updatecatpanl() { 
  var url = "http://www.ammas.com/ar/jobs/html_catpanel.cfm?bid=0&topicid=";
  document.getElementById('catpanelun').innerHTML = "Loading...Please wait..."; 
  //var name = document.getElementById("username").value; 
  cathttp.open("GET", url + escape(topicid), true); 
  cathttp.onreadystatechange = handleCATHttpResponse; 
  cathttp.send(null); 
} 

function handleCATHttpResponse() { 
  if (cathttp.readyState == 4) { 
    results = cathttp.responseText; 
    //var name = document.getElementById("username").value;
	document.getElementById('catpanelun').innerHTML = results;
  } 
} 

function getCATHTTPObject() {
  var req;
  if (window.XMLHttpRequest) {
    try { req = new XMLHttpRequest(); }
    catch (e) {}
  } else if (window.ActiveXObject) {
    try { req = new ActiveXObject("Msxml2.XMLHTTP"); }
    catch (e) {
      try { req = new ActiveXObject("Microsoft.XMLHTTP"); }
      catch (e) {}
    }
  }
  return req;
}
var cathttp = getCATHTTPObject(); 

updatecatpanl();