function GetPageUrl() {
	var MyPageUrl = window.location;
	return MyPageUrl;
}
function QueryString(param){
	var strParam = new String(param);
	var position = window.location.search.indexOf('&' + strParam + '=');
	if (position==-1) {
		position = window.location.search.indexOf('?' + strParam + '=');
		if (position==-1) 
			return 'home';
	} else {
		return (window.location.search.indexOf('&', position + strParam.length + 2)==-1) ? window.location.search.substr(position + strParam.length + 2) : window.location.search.substr(position + strParam.length + 2, window.location.search.indexOf('&', position + strParam.length + 2) - (position + strParam.length + 2));
	}
} 

