function printVersion(){
    var now = new Date();
    var txtYear = now.getFullYear();
    newwindow=window.open("","","toolbar=no,status=no,width=610,height=400,location=no,scrollbars=yes,menubar=yes,resizable=yes");
    newdocument=newwindow.document;
    newdocument.write('<html><head><style>a,a:hover,a:visited,a:link { color: #000000; text-decoration: none; }</style></head><body>');
    if (document.getElementById('printHeader')){
        newdocument.write("<h1>"+document.getElementById('printHeader').innerHTML+"</h1>");
    }
    if (document.getElementById('printCopy')){
        newdocument.write(document.getElementById('printCopy').innerHTML);
    }
    else {
        newdocument.write("<h2>There is no printer friendly format available for this page type.  Please use your standard browser print button in order to obtain a printed version of this page.</h2>");
    }
    newdocument.write("<div class='footer'>&copy;"+txtYear+" Christopher Newport University</div></body></html>");
    newdocument.close();
}

actionsHTML="";
actionsHTML+='<li><a href="javascript:printVersion();" class="print-link" title="Print this Page">Print this page</a></li>'
document.write(actionsHTML);

