
	function ShowLayer(oLayer){
		oLayer.style.visibility = 'visible';
	}

	function HideLayer(oLayer){
		oLayer.style.visibility = 'hidden';
	}

	function AddShopping(){
		location.reload(false);
	}

	function getCookieVal (offset) {  
		var endstr = document.cookie.indexOf (";", offset);  
		if (endstr == -1)    
			endstr = document.cookie.length;  
		return unescape(document.cookie.substring(offset, endstr));
	}

	function SetCookie(sName, sValue){
		if(isNaN(sValue)){ 
			sValue = 1;
		}
		if (GetCookie(sName) != null){
			sValue = Number(GetCookie(sName)) + Number(sValue);
		}
		var argv = SetCookie.arguments;  
		var argc = SetCookie.arguments.length;  
		var expires = (argc > 2) ? argv[2] : null;  
		var path = (argc > 3) ? argv[3] : null;  
		var domain = (argc > 4) ? argv[4] : null;  
		var secure = (argc > 5) ? argv[5] : false;  
		var sCookie = sName + "=" + (sValue) + 
			((expires	== null) ? "" : ("; expires=" + expires.toGMTString())) + 
			((path		== null) ? "" : ("; path=" + path)) +  
			((domain	== null) ? "" : ("; domain=" + domain)) +    
			((secure	== true) ? "; secure" : "");
		document.cookie = sCookie;
	}
	
	function GetCookie (sName) {  
		var arg = sName + "=";  
		var alen = arg.length;  
		var clen = document.cookie.length;  
		var i = 0;  
		while (i < clen) {    
			var j = i + alen;    
			if (document.cookie.substring(i, j) == arg)      
				return getCookieVal (j);    
			i = document.cookie.indexOf(" ", i) + 1;    
			if (i == 0) break;   
		}  
		return null;
	}
	
	function DelCookie(sName){
		var sCookie = sName + "=" + escape(" ") + "; expires=Fri, 31 Dec 1999 23:59:59 GMT;";
		document.cookie = sCookie;
	}
