/* MAIL_TO
	assembles "mailto:" link in a form "sName@sSite?subject=aLink.href"
	NB. The subject is in the link's HREF attribute
*/
function Mail_To(aLink,sName,sSite) {
	var s = aLink.href;
	aLink.href = 'mailto:' + sName + '@' + sSite + '?subject=' + s.substr(s.lastIndexOf('/')+1);
}
/* VALIDATA_PAGE
	adds the address of the current page to the link validator
*/
function ValidatePage(aLink) {
	var s = aLink.href;
	aLink.href = s.substr(0,s.indexOf('uri=')+4) + location;
}
function SelectMenu () {
	var theMenuItem = document.getElementById('Menu_' + iMenu +'_' + iSubMenu);
	theMenuItem.className = 'Selected';
	if (sGoBackMenu) {
		theMenuItem.innerHTML = '<span class="Go-Back" title="' + sGoBackMenu + '">&nbsp;&laquo;&nbsp;</span>' + theMenuItem.innerHTML;
	}
	return false;
}

function SwapImageByLink(destImgId, srcLinkId) {
	var dest = document.getElementById(destImgId);
	var src = document.getElementById(srcLinkId);
	dest.src = src.href;
	return false;
}