		function confirmWindow(backURL) {
			if (get_cookie(checkDomain()) == "")
			{
				document.getElementById('confirmWindow').style.display = 'block';
				document.getElementById('confirmWindowBackground').style.display = 'block';
				document.getElementById('confirmWindowBackground').style.position = 'absolute';
				document.getElementById('confirmWindowBackground').style.top = '150px';
				document.getElementById('confirmWindowBackground').style.left = '400px';
				document.getElementById('confirmWindowShadow').style.display = 'block';
				document.getElementById('confirmWindowShadow').style.position = 'absolute';
				document.getElementById('confirmWindowShadow').style.top = '0px';
				document.getElementById('confirmWindowShadow').style.left = '0px';
				document.getElementById('confirmWindowURL').value = backURL;
			}
			
		}
		
		function hideConfirmWindow(referer) {
				document.getElementById('confirmWindow').style.display = 'none';
				document.getElementById('confirmWindowShadow').style.display = 'none';
				document.getElementById('confirmWindowBackground').style.display = 'none';
				//window.location=document.getElementById('confirmWindowURL').value;
				window.location=referer;
		}
		function where_to_confirmed() {		
			document.cookie=checkDomain()+"=Is confirmed";
			var beginindex, endindex, result;
			beginindex=document.cookie.indexOf(checkDomain())+checkDomain().length;
			endindex=beginindex;
			while (document.cookie.charAt(endindex)!=";"&& endindex<=document.cookie.length)
				endindex++;
			var result=document.cookie.substring(beginindex,endindex);
			document.getElementById('confirmWindow').style.display = 'none';
			document.getElementById('confirmWindowShadow').style.display = 'none';
			document.getElementById('confirmWindowBackground').style.display = 'none';
		}
		
		function checkDomain() {
			var currentURL = location.href;
			protocolIndex = currentURL.indexOf("://");
			serverIndex = currentURL.indexOf("/", protocolIndex + 4);
			urlResult = currentURL.substring(protocolIndex+3, serverIndex);
     			return String(urlResult);
		}
		function get_cookie(Name) {
			var search = Name + "="
			var returnvalue = "";
			if (document.cookie.length > 0) {
				offset = document.cookie.indexOf(search)
				if (offset != -1) { 
					offset += search.length
					end = document.cookie.indexOf(";", offset);
					if (end == -1) end = document.cookie.length;
						returnvalue=unescape(document.cookie.substring(offset, end))
					}
   				}
			return String(returnvalue);
		}