		function setCookie(name, value, expire, path)
		{
			var expDate
			if (expire != null)
				expDate = expire
			else
			{	// set Default timeout for cookies (180 mins)
			 	expDate = new Date()
			 	expDate.setTime(expDate.getTime() + (60000 * 180))
			}

			document.cookie = name + "=" + value + "; expires=" + expDate.toGMTString() + ((path == null) ? "; path=/" : ("; path=" + path))
		}

		function getCookie(Name)
		{
			var rslt = ""
			var search = Name + "="
			if (document.cookie.length > 0)
			{
				// if there are any cookies
				offset = document.cookie.indexOf(search)
				if (offset != -1)
				{
					// if cookie exists
					offset += search.length
					// set index of beginning of value
					end = document.cookie.indexOf(";", offset)
					// set index of end of cookie value
					if (end == -1)
						end = document.cookie.length
					rslt = document.cookie.substring(offset, end)
				}
			}
			return rslt
		}

		function delCookie(Name)
		{
			var exp = new Date()
			exp.setTime(exp.getTime() - 1)
			setCookie(Name, "", exp)
		}

		function isUndefined(property)
		{
			// This function is used to maintain compatibility with IE 5.0,
			// which has no data type "undefined"
			return (typeof(property) == "undefined")
		}

		function isDefined(property)
		{
			// This function is used to maintain compatibility with IE 5.0,
			// which has no data type "undefined"
			return (typeof(property) != "undefined")
		}

		function getBrowserVer()
		{
			var rslt = ""
			var ver = navigator.appVersion
			var index = ver.indexOf("MSIE")

			if (index > -1)
				return "I" + ver.substr(index + 5, 1)
			else
				if (navigator.appName == "Netscape")
					return "N" + ver.substr(0, 1)
				else
					return ""
		}

		function getCookieAsNum(aCookie)
		{
			var tmpStr = getCookie(aCookie)
			return (tmpStr == "" ? 0 : eval(tmpStr))
		}


