﻿// To put into the body of HTML
// <script> copyright(); </script>  or
// <script> writeEmail('doug','bob.com'); </script>
// Watch the quotes (double or single) inside the ()
//

//Plain email
function writeEmail(user, site){
    document.write('<a href=\"mailto:' + user + '@' + site + '\">');
    document.write(user + '@' + site + '</a>');
}

// EMAIL plus subject
function longE(user, site, display){
    document.write('<a href=\"mailto:' + user + '@' + site + '\">');
    document.write(display + '</a>');
}

//Copyright that changes year automatically
function copyright ()

{
copyright=new Date();
update=copyright.getFullYear();
document.write("Copyright © "+ update +" Hoke, CIRCOR Instrumentation Technologies <br>All Rights Reserved");
}

