// JavaScript Document

//create the XMLHttpRequest
function get_xmlhttp()
{
     if (window.XMLHttpRequest)
     { // if Mozilla, Safari etc
          xmlhttp_obj = new XMLHttpRequest();
     }
     else if (window.ActiveXObject)
     { // if IE
          try
          {
               xmlhttp_obj = new ActiveXObject("Msxml2.XMLHTTP");
          }
          catch (e)
          {
               try
               {
                    xmlhttp_obj = new ActiveXObject("Microsoft.XMLHTTP");
               }
               catch (e)
               {
               }
          }
     }
     else
     {
          xmlhttp_obj = false;
     }

     return xmlhttp_obj;
}   // get_xmlhttp()  


// Get content of one section
function getcontent1(url, containerid)
{
     var xmlhttp_obj = get_xmlhttp();

     xmlhttp_obj.onreadystatechange=function()
     {
          loadpage(xmlhttp_obj, containerid);
     }
     xmlhttp_obj.open('GET', url, true);
     xmlhttp_obj.send(null);
}

function loadpage(xmlhttp_obj, containerid)
{  
     if ( xmlhttp_obj.readyState == 4 && xmlhttp_obj.status == 200 )
     {
          document.getElementById(containerid).innerHTML = unescape(xmlhttp_obj.responseText);
     }
}

