/*********************************************************************
	Development by Stuss.com
	Alex Logvynovskiy
*/
/* ------------------------------------------------------------------- 
	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;
}
/* ------------------------------------------------------------------- 
	highlightSelectedMenu(aLinkName)
	
	sets class name of the element with id=aLinkName to 'Selected'
*/
function highlightSelectedMenu(aLinkName) {
	var aLink = document.getElementById(aLinkName);
	aLink.className = 'Selected';
}
