
//POSTMAN Function to hide Email links
// Revision date at end of function.
// Open with line like the following:
// <a href='javascript:postman("dkjordan", "dkjordan.net")'>Email</a>

var zpre = "admin"; var zpost = "dkjordan.net"; //dummy contents
function postman(zpre,zpost){
if(zpost=="fff"){zpost="ucsd.edu"} //simplify typing addresses
var fnwindow=window.open("","fnwindow","scrollbars=yes, location=no, copyhistory=no");

fnwindow.document.writeln("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\">");
fnwindow.document.writeln("<html><head><title>Post Office</title>");
fnwindow.document.writeln("<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>");
fnwindow.document.writeln("<style>body {background-color:#ccddee; margin-left:20%; margin-right:20%;}a {text-decoration:none;}</style>");

fnwindow.document.writeln("</head><body>");
fnwindow.document.writeln("<p><center><form>");
fnwindow.document.writeln("<input type='button' value='Close This Window' onclick='window.close()'></center></form><br><br>");
fnwindow.document.writeln("<h2>Email Buffer</h2>");

fnwindow.document.write("<p>This buffer exists to prevent web worms from discovering Email addresses and turning them over to spam programs.</p> <p>The Email address of the person you wish to contact is listed below. In most cases, clicking the address will open your mail program and insert it there for you.</p><br><center>");

fnwindow.document.write("<br><font size=+2><a href='mailto:"+zpre+"&#064;"+zpost+"?subject=INCLUDE CREDIBLE SUBJECT TO AVOID SPAM FILTERS'>");
fnwindow.document.write(zpre+"&#064;"+zpost+"</a></font></center><br>");
fnwindow.document.write("<br><center>");

fnwindow.document.writeln("<br>&nbsp;<br><form><input type='button' value='Close This Window' onclick='window.close()'></center></form>\n<br><br>\n\n");

//fnwindow.document.writeln("<p style='font-size:small; text-align:right;'>This sneaky Email buffer was<br>devised by D.K. Jordan<br>December 27, 2006</p>");


fnwindow.document.write("</center>\n\n<p>(Note that all Email in the United States is potentially subject to inspection by the National Security Administration.)</p>\n\n<br><br>\n\n");


fnwindow.document.writeln("</body></html>\n\n");
//fnwindow.document.close()
} // end of function postman()

