function getActive() { 
var theTag = 'A';
var theID = 'ewcms_active_link';
var locHref = document.location.href.split('/');
locHref = locHref[locHref.length - 1].split('?');
var fileName = locHref[0];
for (var i = 0; i < document.getElementsByTagName('A').length; i++) {
thisLink = document.getElementsByTagName('A')[i];
if (thisLink.href.match(fileName) && thisLink.parentNode.tagName == 'LI') {
thisLink.id = theID;
}
}
}