
function geber_lib_getHistory(historyPage, myPath)
{
  var browser = geber_getBrowser();
  var xmlHTTP = browser ? browser.createXmlHttpRequest() : null;

  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 = proto + window.location.host + geber_lib_getBaseURLPath_withoutslash() + targetActionAddress;
    }     


     xmlHTTP.open("GET", targetAddress + "?path=" + myPath, false);
     xmlHTTP.send(null);       
     html = xmlHTTP.responseText;
     html = html.substring(html.indexOf("<!-- HISTORY -->"), html.indexOf("<!-- HISTORY / -->"));
     document.write(html);
   }
}

