
function geber_lib_getHistory(historyPage, myPath)
{

    var targetActionAddress = historyPage;
    var targetAddress = targetActionAddress;
    if (targetActionAddress && !targetActionAddress.match(/^(https?|mailto|file):\/\//))
    {
        targetActionAddress = String(targetActionAddress).replace(/\/js_history_frame.js/, "/history.php");
        targetAddress = "";
        var proto = window.location.protocol;
        if (proto.indexOf("/") <= 0) proto += "//";

        targetAddress = proto + window.location.host + NexxarLib.getBaseURLPath() + targetActionAddress;
    }     

    $.ajax({
        async: false,
        cache: false,
        url: targetAddress + "?path=" + myPath,
        complete: function(xmlHTTP, type) {
            html = xmlHTTP.responseText;
            html = html.substring(html.indexOf("<!-- HISTORY -->"), html.indexOf("<!-- HISTORY / -->"));
            document.write(html);
        }
    });
}

/*
function geber_lib_getHistory(historyPage, myPath)
{
  var xmlHTTP = null;
  if (navigator.userAgent.match(/ MSIE/) && !navigator.userAgent.match(/ MSIE\s*7/))
  {

     if (window.XMLHttpRequest)
     {
         xmlHTTP = window.XMLHttpRequest;
     }
     else
     {
         var activexNames = new Array("Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.4.0", "Msxml2.XMLHTTP.3.0", "Msxml2.XMLHTTP", "Microsoft.XMLHTTP");
         for (i = 0; i < activexNames.length; i++)
         {
             try 
             {
                 xmlHTTP = new ActiveXObject(activexNames[i]);
                 break;
             }
             catch(e) {xmlHTTP = false;}
         }
     }
  }


    if (!xmlHTTP && typeof(XMLHttpRequest) != 'undefined') 
    {
      try 
      {
          xmlHTTP = new XMLHttpRequest();
      } 
      catch (e) 
      {
          xmlHTTP = false;
      }
    }

    if (!xmlHTTP && window.createRequest) 
    {
      try 
      {
          xmlHTTP = window.createRequest();
      } 
      catch (e) 
      {
          xmlHTTP = false;
      }
    }  

   if (xmlHTTP)
   {
    var targetActionAddress = historyPage;
    var targetAddress = targetActionAddress;
    if (targetActionAddress && !targetActionAddress.match(/^(https?|mailto|file):\/\//))
    {
        targetActionAddress = String(targetActionAddress).replace(/\/js_history_frame.js/, "/history.php");
        targetAddress = "";
        var proto = window.location.protocol;
        if (proto.indexOf("/") <= 0) proto += "//";
        targetAddress += window.location.host;


        if (targetActionAddress.charAt(0) != "/")
        {
            targetAddress += String(window.location.pathname).replace(/^(.*\/)[^\/]+$/, "$1"); // get base name
            if (targetAddress.substring(targetAddress.length-2, targetAddress.length-1) != "/")
                targetAddress += "/";

            targetAddress += targetActionAddress;
            targetAddress = targetAddress.replace(/^(.*\/)\/?[^\/]+\/+\.\.\/(.*)$/, "$1/$2");
            targetAddress = proto + targetAddress.replace(/\/\//, "/");
       }
       else
       {
           targetAddress += String(window.location.pathname);
           targetAddress = proto + targetAddress.substring(0, targetAddress.indexOf(myPath)) + targetActionAddress;
       }
       
    }     

     xmlHTTP.open("GET", targetAddress + "?path=" + myPath, false);
     xmlHTTP.send(null);       

     var html = xmlHTTP.responseText;
     html = html.substring(html.indexOf("<!-- HISTORY -->"), html.indexOf("<!-- HISTORY / -->"));
     document.write(html);

   }
}

*/