// EMAIL/ PRINT /RELATED Version 01 - Release February 23, 2000
// Revision October 9, 2000 - Update look

function EmailFriend2() {
	var page = document.location;

	var url = /(\w+):\/\/([\w.]+)\/(\S*)/;
	var text = "Visit " + page;
	var result = text.match(url);
	if (result != null) {
		var fullurl = result[0];
		var protocol = result[1];
		var host = result[2];
		var path = result[3];
	}

	var pagename = host + '/' + path;

	var file = "?" + removeHost(page);

	if(( navigator.userAgent.indexOf("MSIE") !=-1 ) || (navigator.userAgent == "")) {
		document.write('<a href="http://www.bostonherald.com/cgi-bin/www.bostonherald.com/emailfriend.bg/' + pagename + '"><IMG SRC="http://www.bostonherald.com/bh2000/images/emailfriend.gif" border=0 ALT="Click here to Email this Article to a Friend."></A><BR>');
		document.write('<a href="http://www.bostonherald.com/cgi-bin/www.bostonherald.com/epr/printer_friendly.bg/' + pagename + '"><IMG SRC="http://www.bostonherald.com/bh2000/images/printerfriendly.gif" border=0 ALT="Click here for a Printer Friendly version."></A><BR>');
		document.write('<a href="\#related"><IMG SRC="http://www.bostonherald.com/bh2000/images/relatedarticles.gif" border=0 ALT="Click here for Related Articles."></A>');
	}
}

function EmailFriend() {
	var page = document.location;

	var url = /(\w+):\/\/([\w.]+)\/(\S*)/;
	var text = "Visit " + page;
	var result = text.match(url);
	if (result != null) {
		var fullurl = result[0];
		var protocol = result[1];
		var host = result[2];
		var path = result[3];
	}

	var pagename = host + '/' + path;

	var file = "?" + removeHost(page);

	document.write('<a href="http://www.bostonherald.com/cgi-bin/www.bostonherald.com/emailfriend.bg/' + pagename + '"><IMG SRC="http://www.bostonherald.com/bh2000/images/emailfriend.gif" border=0 ALT="Click here to Email this Article to a Friend."></A><BR>');
	document.write('<a href="http://www.bostonherald.com/cgi-bin/www.bostonherald.com/epr/printer_friendly.bg/' + pagename + '"><IMG SRC="http://www.bostonherald.com/bh2000/images/printerfriendly.gif" border=0 ALT="Click here for a Printer Friendly version."></A><BR>');
}

function RecommendLevel() {
	var page = document.location;

	var url = /(\w+):\/\/([\w.]+)\/(\S*)/;
	var text = "Visit " + page;
	var result = text.match(url);
	if (result != null) {
		var fullurl = result[0];
		var protocol = result[1];
		var host = result[2];
		var path = result[3];
	}

	var pagename = host + '/' + path;

	var file = "?" + removeHost(page);

	document.write('<BR><table width=468 border=0 cellspacing=0 cellpadding=0><tr><td width=100% bgcolor=#0066FF align=center><font class=buttonFont color=#ffffff>HERALD READER RECOMMENDS</font></td></tr><tr><td width=100% bgcolor=#FFFFFF align=center>');
	document.write('        <A HREF="http://www.bostonherald.com/cgi-bin/www.bostonherald.com/bostonheraldnav/recommend1.bg/rate=1&url=' + pagename + '" style="TEXT-DECORATION:NONE"><font size="3" color="#CC0000"><b>&nbsp;&nbsp;1&nbsp;&nbsp;</b></font></a>');
	document.write('       -<A HREF="http://www.bostonherald.com/cgi-bin/www.bostonherald.com/bostonheraldnav/recommend1.bg/rate=2&url=' + pagename + '" style="TEXT-DECORATION:NONE"><font size="3" color="#CC0000"><b>&nbsp;&nbsp;2&nbsp;&nbsp;</b></font></a>');
	document.write('       -<A HREF="http://www.bostonherald.com/cgi-bin/www.bostonherald.com/bostonheraldnav/recommend1.bg/rate=3&url=' + pagename + '" style="TEXT-DECORATION:NONE"><font size="3" color="#CC0000"><b>&nbsp;&nbsp;3&nbsp;&nbsp;</b></font></a>');
	document.write('       -<A HREF="http://www.bostonherald.com/cgi-bin/www.bostonherald.com/bostonheraldnav/recommend1.bg/rate=4&url=' + pagename + '" style="TEXT-DECORATION:NONE"><font size="3" color="#CC0000"><b>&nbsp;&nbsp;4&nbsp;&nbsp;</b></font></a>');
	document.write('       -<A HREF="http://www.bostonherald.com/cgi-bin/www.bostonherald.com/bostonheraldnav/recommend1.bg/rate=5&url=' + pagename + '" style="TEXT-DECORATION:NONE"><font size="3" color="#CC0000"><b>&nbsp;&nbsp;5&nbsp;&nbsp;</b></font></a>');
	document.write('       -<A HREF="http://www.bostonherald.com/cgi-bin/www.bostonherald.com/bostonheraldnav/recommend1.bg/rate=6&url=' + pagename + '" style="TEXT-DECORATION:NONE"><font size="3" color="#CC0000"><b>&nbsp;&nbsp;6&nbsp;&nbsp;</b></font></a>');
	document.write('       -<A HREF="http://www.bostonherald.com/cgi-bin/www.bostonherald.com/bostonheraldnav/recommend1.bg/rate=7&url=' + pagename + '" style="TEXT-DECORATION:NONE"><font size="3" color="#CC0000"><b>&nbsp;&nbsp;7&nbsp;&nbsp;</b></font></a>');
	document.write('       -<A HREF="http://www.bostonherald.com/cgi-bin/www.bostonherald.com/bostonheraldnav/recommend1.bg/rate=8&url=' + pagename + '" style="TEXT-DECORATION:NONE"><font size="3" color="#CC0000"><b>&nbsp;&nbsp;8&nbsp;&nbsp;</b></font></a>');	
	document.write('</td></tr>');	
	document.write('<tr><td width=100% bgcolor=#0066FF align=center><font class=buttonFont color=#ffffff>&nbsp;</font></td></tr>');
	document.write('</table>');	
}

