function Wygas() {
	//alert(ReadCookie('ww'));
	//if(ReadCookie('ww')!='takS')
	{
		//SetCookie('ww','takS','1');
		myHeight = 0;
		if( typeof( window.innerHeight ) == 'number' ) {
		//Non-IE
		myHeight = window.innerHeight;
		myWidth = window.innerWidth;
		} else if( document.documentElement && document.documentElement.clientHeight ) {
		//IE 6+ in 'standards compliant mode'
		myHeight = document.documentElement.clientHeight;
		myWidth = document.documentElement.clientWidth;
		} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myHeight = document.body.clientHeight;
		myWidth = document.body.clientWidth;
		}
		document.getElementById('wygaszenie').style.height=myHeight;
		document.getElementById('wygaszenie').style.width=myWidth;
		document.getElementById('wygaszenie').style.display='block';
		document.getElementById('formularz').style.top=((myHeight-546)/2)+'px';
		document.getElementById('formularz').style.left=((myWidth-728)/2)+'px';
		document.getElementById('formularz').style.display='block';
	}
}


function zapal() {
	myHeight = 0;
	document.getElementById('wygaszenie').style.display='none';
	document.getElementById('formularz').style.display='none';
	//location.href='#';
}

/*
	function SetCookie(cookieName,cookieValue,nDays) {
		var today = new Date();
		var expire = new Date();
		if (nDays==null || nDays==0) nDays=1;
		expire.setTime(today.getTime() + 3600000*24*nDays);	
		document.cookie = cookieName+"="+escape(cookieValue) + ";expires="+expire.toGMTString();
	}
	
	
	
	function ReadCookie(cookieName) {
		var theCookie=""+document.cookie;
		var ind=theCookie.indexOf(cookieName);
		if (ind==-1 || cookieName=="") return ""; 
		var ind1=theCookie.indexOf(';',ind);
		if (ind1==-1) ind1=theCookie.length; 
		return unescape(theCookie.substring(ind+cookieName.length+1,ind1));
	}
*/
