/*********************************************************************
	Design and development by Axly.co.uk
	Alex Logvynovskiy 2005
*/
/* ------------------------------------------------------------------- 
	ValidatePage(aLink)
	
	adds the address of the current page to the link validator set in the 'aLink.href'
	
	Usage:
	<!--
	<a href="http://validator.w3.org/check?uri=" title="Validate XHTML (new window)" target="_blank" onclick="ValidatePage(this)"><img src="Images/Icon_XHTML.gif" alt="Valid XHTML 1.0 Transitional" /></a>
	<a href="http://jigsaw.w3.org/css-validator/validator?uri=" title="Validate CSS (new window)" target="_blank" onclick="ValidatePage(this)"><img src="Images/Icon_CSS.gif" alt="Valid CSS 2.1" /></a>
	-->
*/
function ValidatePage(aLink) {
	var s = aLink.href;
	aLink.href = s.substr(0,s.indexOf('uri=')+4) + location;
}


function Mail_To(aLink,sName,sSite,sSubject) {
	//assembles mailto: link in a form "sName@sSite?subject=aLink.href" - the subject is in the link HREF
	var s = aLink.href;
	aLink.href = 'mailto:' + sName + '@' + sSite + '?subject=' + s.substr(s.lastIndexOf('/')+1);
}
