
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 be interested in this page on the Alexandria City Public Schools Web site: " + title + ", found at: " + document.URL;
	bodyTxt = escape(bodyTxt);	
	document.write ("<div id='pagetools'>");
	document.write ("<ul>");
	
	switch (sToolProfile)
	{
		case "RESTRICTED":
			document.write ("<li><a href='#' onclick='print(); return false;' id='printthis' 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 this page'>Print This 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>");
	document.write ("</div>");	
}



function leave()
{
window.alert('You are now exiting the Alexandria City Public Schools Web site. This link has been provided because it has information that may be of interest to ACPS site visitors. ACPS does not necessarily endorse the views expressed or the data and facts presented on the sites to which we link.');
}


