// modified by SEOmister
// http://www.pixy.cz/blogg/clanky/js-rozmery-okna.html
// http://www.jakudelatweb.cz/javascript/funkce.php

// <![CDATA[
function winH() {
	if (window.innerHeight) return window.innerHeight;
	else if (document.documentElement && document.documentElement.clientHeight)
		return document.documentElement.clientHeight;
	else if (document.body && document.body.clientHeight)
		return document.body.clientHeight;
	else return null;
	}
function winW() {
	if (window.innerWidth) return window.innerWidth;
	else if (document.documentElement && document.documentElement.clientWidth)
		return document.documentElement.clientWidth;
	else if (document.body && document.body.clientWidth)
		return document.body.clientWidth;
	else return null;
	}

function measure()
   {
    document.getElementById('pixel').innerHTML = winW()+' &times; '+winH()+' px' ;
   }


// function measure() {
//	alert('Sirka okna: '+winW()+'px, vyska okna: '+winH()+'px.');
//	}


// document.write( winW()+' x '+winH()+' px');
  

// ]]>

