function smazOdberMail()
{
	document.getElementById('odber_mail').value = '';
}


function on_blur(id)
{
	if(document.getElementById(id))
	{
	   document.getElementById(id).style.backgroundColor = "#ffffff";
	}
}

function on_focus(id)
{
	if(document.getElementById(id))
	{
	   document.getElementById(id).style.backgroundColor = "#daefd6";	/* ffffcc */
	}

}

function nove_okno(adresa)
{
	window.open(adresa,"","");
}

function vloz(text)
{ 
	document.getElementById('prispevek').value = document.getElementById('prispevek').value + text
}

function HideInfo(id){
	document.getElementById(id).style.display='none';
}

function winH(){
	/* NN4 a kompatibiln prohlee */
	if (window.innerHeight)
		return window.innerHeight;
	/* MSIE6 v std. reimu - Opera a Mozilla ji usply s window.innerHeight */
	else if (document.documentElement && document.documentElement.clientHeight)
		return document.documentElement.clientHeight;
	/* star MSIE + MSIE6 v quirk reimu */
	else if (document.body && document.body.clientHeight)
		return document.body.clientHeight;
	else
		return null;
}

function winW(){
	/* NN4 a kompatibiln prohlee */
	if (window.innerWidth)
		return window.innerWidth;
	/* MSIE6 v std. reimu - Opera a Mozilla ji usply s window.innerHeight */
	else if (document.documentElement && document.documentElement.clientWidth)
		return document.documentElement.clientWidth;
	/* star MSIE + MSIE6 v quirk reimu */
	else if (document.body && document.body.clientWidth)
		return document.body.clientWidth;
	else
		return null;
}

function Okno(width,height,scrollbars,url){
	posX = (winW()/2)-(width/2);
	posY = (winH()/2)-(height/2);
	add=window.open("popup.php?filename="+url,"add","left="+posX+",top="+posY+",width="+width+",height="+height+",menubar=no,directories=no,toolbar=no,location=no,status=no,scrollbars="+scrollbars+",resizable=yes");
	add.focus();
}

function NewWin(url,name,width,height,scrollbars) {
	posX = (winW()/2)-(width/2);
	posY = (winH()/2)-(height/2);
	add=window.open(url,name,"left="+posX+",top="+posY+",width="+width+",height="+height+",menubar=no,directories=no,toolbar=no,location=no,status=no,scrollbars="+scrollbars+",resizable=yes");
	add.focus();
}

function VyskakovaciOkno(width, height, scrollbars, url)
{
	posX = (winW()/2)-(width/2);
	posY = (winH()/2)-(height/2);
	add = window.open(url, "add", "left="+posX+", top="+posY+", width="+width+", height="+height+", menubar=no,directories=no,toolbar=no,location=no,status=no,scrollbars="+scrollbars+",resizable=yes");
	add.focus();
}
