/**
 * Filename         : print.js
 * Created by       : Peter Hammans
 * Last modified by : Peter Hammans
 * Created          : 07 April 2005 11:33
 * Last Updated     : 07 April 2005 11:33
 * Comments         : Creates and appends an anchor DOM node to an empty HTML element
 */
function printButton(sID){
    //For MAC IE and non DOM compliant browsers escape function
    if((_isMac && typeof document.all != "undefined") || !document.getElementById(sID)){
        return;
    };

    var a = document.createElement("a");
    a.appendChild(document.createTextNode("Print this page"));
    a.setAttribute("href", "#");

    a.onclick = function(){
        window.print();
        return false;
     };

    document.getElementById(sID).appendChild(a);
    a = null;
};