function nospam(name,subject,body)
{
	var dom = "channelwatch";
	var ain = "marine.com";
	var complete = name + "@" + dom + ain;
	var lnk = "mail" + "to:" + complete + "?subject=" + subject + "&body=" + body;
	document.write("<a href=\"" + lnk + "\"" + ">");
	document.write("Contact</a>");
}

function logImages()
{
	pics = document.getElementById("main_body").getElementsByTagName("a");
	for ( var i=0; i < pics.length; i++ )
	{
		if ( pics[i].href.match(".jpg") != null)
		{
			if ( pics[i].pathname.substring(0, 1) == "/" ) // For Non-I.E.
			{
				relativePath = pics[i].pathname.replace(/\//, "");
			}
			else // For I.E.
			{
				relativePath = pics[i].pathname;
			}
			//newURL = location.search + "&pic=" + relativePath;
			newURL = location.href + "&pic=" + relativePath;
			pics[i].href = newURL;
		}
	}
} 	
