function assign_active_tab()
{
	var URL = getURL();
	
	document.getElementById( URL ).className = 'activeTab';
		
}
function getURL()
{
    var URL = parent.location.href;

    URL = URL.split("/"); //split up by /
    URL = URL[URL.length -1]; //get last element
	
    if(URL != null && URL.indexOf("?") != -1)
    {
		URL = URL.split("?")[1];
		
		if(URL != null && URL.indexOf("=") != -1 )
		{
			return URL.split("=")[1];
		}
    }
	return "main";
}