function WritePageTools(sRestricted) {
	var title = document.title;
	var subj = title;
	var sToolProfile = "ALL";

	if (sRestricted != null)
	{
		if (sRestricted != "")
		{
			sToolProfile = sRestricted.toUpperCase();
		}
	}

subj = escape(subj);
var bodyTxt = "I thought you might like to see this page on Z-Seis.com: " + title + ", found at: " + document.URL;
bodyTxt = escape(bodyTxt);	
document.write ("<ul>");
	
switch (sToolProfile)
{
case "RESTRICTED":
document.write ("<li id='printthis'><a href='#' onclick='print(); return false;' title='Print this page'>Print This Page</a></li>");
break;
case "ALL":
default:
document.write ("<li><a href='#' onclick='print(); return false;'  id='printthis' title='Print friendly page'>Print Friendly Page</a></li>");

document.write ("<li><a href='mailto:\?subject=" + subj + "\&body\=" + bodyTxt + "' id='emailthis' title='E-mail a link to this page to a friend'>E-mail This Link</a></li>");		
break;
}
		
document.write ("</ul>");
}