﻿function getPageName2()
{
	var sPath = window.location.pathname;
	var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
	return sPage;
}
function getPageName()
{
	var sPath = window.location.pathname;
	sPath = sPath.replace('#','');
	var sPage = this.location.hash.substr(2);
	if(sPage == '')
	{
	    sPage = getPageName2();
	}
	return sPage;
}