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><!-- PageID 4401 - published by RedDot 9 - 9.0.0.31 - 27661 --><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+" Nevada State College</div></body></html>");
    newdocument.close();
}

if (document.getElementById('printCopy') && document.getElementById('actions')){
    actionsHTML="";
    actionsHTML+='<a href="javascript:printVersion();"><img class="actionButton" alt="Print this Page" src="/images/display/buttons/printButton.gif" /></a>';
    actionsHTML+='<a href="mailto:?subject=From%20the%20Nevada%20State%20College%20website&body=The%20sender%20thought%20you%20might%20like%20to%20view%20this%20page: '+document.location.href+'"><img class="actionButton" alt="Email this Page" src="/images/display/buttons/emailButton.gif" /></a>';
    document.getElementById('actions').innerHTML=actionsHTML;
}
