
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);
        }
    });
}

