  function createRequestObject() {
    try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {}
    try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {}
    try { return new XMLHttpRequest(); } catch(e) {}
  }

  var http = new Array();

  function hideCont(contid) {
    cont = document.getElementById(contid);
    cont.style.display = "none";
    cont.style.visibility = "hidden";
  }

  function showCont(conturl) {
    
    try {      
      http[conturl] = createRequestObject();
      http[conturl].open('get', conturl);
      http[conturl].onreadystatechange = function() {
        if (http[conturl].readyState == 4) {
          if (http[conturl].status == 200 || http[conturl].status == 304) {
            var response = http[conturl].responseText;
            if(response) {
              var box = response.substring(response.indexOf('<') + 1, response.indexOf('>'));
              var str = response;
      
              str = str.replace(eval("/<" + box + ">/"), "");
              str = str.replace(eval("/<\\/" + box + ">/"), "");
              var cont = document.getElementById(box);
              cont.style.display = "inline";
              cont.style.visibility = "visible";
              cont.innerHTML = str;
            }      
          }
        }
      }
      
      http[conturl].send(null);
            
      return true;
    }
    catch (e) {
      return false;
    }
  }
