//  requires "DOM.js"

function HelpLinks() {
    onLoad(function() {
        elements({tag: 'a', Class: 'help'}).each(HelpLinks.processAnchor);
    });
}
    
HelpLinks.processAnchor = function(a) {
    a.onclick = HelpLinks.showHelp;
    a.title = "Show a help window.";
};
    
HelpLinks.showHelp = function() {
    var newWindow = window.open(this.href, "grammaticaHelpWindow", 
        "toolbar=no,status=no,width=450,height=300,scrollbars,resizable");
    newWindow.focus()
    return false;
};

HelpLinks();
