// Routine to print the window
function onPrintPage() {
    window.print();
}

// Routine to email the page to a friend
var WindowPolicies;
function onOpenPolicies() {
    var ThePopupLocation = "/Policies/default.htm";
    var TheWindowParams = "toolbar=no,location=no,menubar=no,scrollbars=yes,status=no,statusbar=no,resizable=no,title=no,titlebar=no,width=495,height=550";
    if (WindowPolicies && !WindowPolicies.closed)
        WindowPolicies.location = ThePopupLocation;
    else
        WindowPolicies = window.open(ThePopupLocation, "WindowPolicies", TheWindowParams);
    WindowPolicies.focus();
}

// Identify alternate table rows
colourTableRows = function () {
    var content = document.getElementById('Content');

    if (content.className.match('info')) {
        var tableRows = content.getElementsByTagName('tr');

        var i = 1;
        while (tableRows[i]) {
            tableRows[i].className += ' alternate';
            i += 2;
        }
    }
};
