function fnActivatePageLink(){
	if (top != window) return true;
	//Get Page Path
	var strPagePath = location.href + '';
	var rePattern = /\/[^\/]*$/i;
	var arPageName = strPagePath.match(rePattern);
	strPageName = arPageName[0];
	strPageName = strPageName.substring(1,strPageName.length);
	//Get all the links
	var colLinks = document.getElementsByTagName('A');
	//Loop through the links and find the ones that link to the current page.
	for (var i=0; i<colLinks.length; i++){
		strThisHref = colLinks[i].href.match(rePattern) + '';
		strThisHref = strThisHref.substring(1,strThisHref.length);
		//Test if link is the current page
		if (strThisHref == strPageName) {
			colLinks[i].className = 'navOn';
			colLinks[i].onbeforeeditfocus = function(){alert();};
		}
	}
}

//window.onload = fnActivatePageLink;