/* Basic JavaScript functions for CCLIBRARIES.ORG web pages */

 //the following function hides email links from spammers trying harvest
 //from this website
 //to use the function in the body, adapt the following command, 
 //surrounded by the <script LANGUAGE="JavaScript"> ... /script> tags 
 //that tell the browser that this is a javascript statement:
//print_mailto_link('janetajohns', 'yahoo.com');

var lhs = "noneL";
var rhs = "noneR";
function print_mailto_link(lhs, rhs) {
	document.write("<a href=mailto:" + lhs + "@" + rhs);
	document.write(">" + lhs);
	document.write("&#64;");
	document.write(rhs);
	document.write("</a>");
}


/* the following function checks a browser and writes a warning if not supported */
/* the only commonly used browser not supported is IE5 on MacPPC */

function checkBrowser() {
		if((navigator.appVersion.indexOf("Mac") != -1) && (navigator.appVersion.indexOf("MSIE") != -1)){
				document.write("<center>Note: You are using a deprecated browser.<br>(" + navigator.appName + " - " + navigator.appVersion + ")<br> Unfortunately this is no longer supported and Microsoft offers no upgrades. <br>To get the most out of this site, please try <a href=\"http://www.mozilla.com/firefox/\">FireFox</a>, <a href=\"http://www.opera.com\">Opera</a> or <a href=\"http://www.apple.com/safari/\">Safari</a>.</center>"); 
		}
}