// $Id: rge.js,v 1.24 2006/11/16 15:45:01 gowid Exp $

// FUNCTION: doInfoRGE(inRGE)
function doInfoRGE(inRGE, inDate) {
    var myUrl = document.go_rgemeta_url;

    myUrl = myUrl.replace(/RGEID/, inRGE);

    window.parent.location = myUrl;

    return;
}


// FUNCTION: doPrintRGE(inRGE)
function doPrintRGE(inRGE, inDate) {
    var myUrl = document.go_rgeprint_url;

    myUrl = myUrl.replace(/RGEID/, inRGE);

    doPopupWindowFor(window.parent.parent.parent.job, myUrl, 'print');
    return;
}


// FUNCTION: doSaveRGE(inRGE)
function doExportRGE(inRGE, inDate) {
    var myUrl = document.go_rgeexport_url;

    myUrl = myUrl.replace(/RGEID/, inRGE);

    doPopupWindowFor(window.parent.parent.parent.job, myUrl, 'export');
    return;
}


// FUNCTION: doRegex(inRegex)
// Jump from an anchor matched by a regex, to the next anchored regex.
function doRegex(inRegex) {
    var myDoc = document;
    var myWin = window;

    myAnchor = findNextRegex(inRegex);

    // Use jumping to IDs instead of jumping to anchors because it is much more
    // reliable in the various browsers.
    if (doJumpToId(myAnchor)) {
        // Notify the document of the fact that we jumped to another position in the document.
        doJumped(myAnchor);
    }

    return;
}


// FUNCTION: doExtref(inVerwijzingRef, inLabelRef)
function doExtref(inVerwijzingRef, inLabelRef) {
    var myWin = window;

    var myUrl = document.go_extref_url;
    myUrl = myUrl.replace(/VERWIJZING/, inVerwijzingRef);

    myWin.parent.location = myUrl;

    return;
}

// FUNCTION: doHelpTWK()
function doHelpTWK() {
     return doWidePopupWindow('/cgi-bin/standard/help/screen=consolidation/action=initial', 'help');
}

