var Common = {
	Cookie:{
		set : function(sName, sValue, sPath, sExpire) {
			document.cookie = sName + '=' + (window.encodeURI? encodeURI(sValue) : escape(sValue)) +
				((sExpire == null)? '' : ('; expires=' + sExpire.toGMTString())) +
				((sPath == null)? '' : ('; path=' + sPath));
				window.location ="/";
		},
		get : function(sName) {
			var sSearch = sName + '=';
			if(document.cookie.length > 0) {
				var iOffset = document.cookie.indexOf(sSearch);
				if(iOffset != -1) {
					iOffset += sSearch.length;
					var iEnd = document.cookie.indexOf(';', iOffset);
					if(iEnd == -1) {
						iEnd = document.cookie.length;
					}
					return window.decodeURI?
						decodeURI(document.cookie.substring(iOffset, iEnd)):
						unescape(document.cookie.substring(iOffset, iEnd));
				}
			}
			return '';
		}
	}
};

