//<![CDATA[

    //-----------------------------------------------------------------------------------------
    // This bit of code forces the page out of any frame it might have been loaded into.
    //-----------------------------------------------------------------------------------------
    if (self != top) {
        if (window.location.href.replace)
          top.location.replace(self.location.href);
        else
          top.location.href=self.document.href;
    }

    //------------------------------------------------------------------------------------
    // processAjax - Processes Ajax calls.
    //------------------------------------------------------------------------------------
    function processAjax (url, resultID) {

      // Create xmlhttp request object
      var xmlhttp=false;
      try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } 
      catch (e) {
                 try { xmlhtttp = new ActiveXObject("Microsoft.XMLHTTP"); } 
                 catch (E) { xmlhttp = false; }
                }

      if (!xmlhttp && typeof XMLHttpRequest!='undefined') { xmlhttp = new XMLHttpRequest(); }

      if (xmlhttp) {
          var obj;
          xmlhttp.open("GET", url, true);
          xmlhttp.onreadystatechange=function() {
            if (xmlhttp.readyState==4) {
                obj = document.getElementById(resultID);
                obj.innerHTML = xmlhttp.responseText;
            }
          }
          xmlhttp.send(""); 
          return 0;
      }
    }
//]]>

