<!--
function newwin(co,xwidth,yheight,title)
{
 xx = screen.width/2 - xwidth/2;
 yy = screen.availHeight/2 - yheight/2;
 var xdist = 0;
 var ydist = 0;
 if (document.all)
 {
  var xdist = 10;
  var ydist = 29;
 }
 else
 {
  var xdist = 24;
  var ydist = 29;
 }
 var a = window.open("","new","toolbar=no,location=no,directories=no,statusbar=no,menubar=no,scrollbars=auto,left="+xx+",top="+yy+",resizable=no,width="+(xwidth+xdist)+",height="+(yheight+ydist));
 a.resizeTo(xwidth+xdist,yheight+ydist);
 a.document.clear();
 a.document.open("text/html");
 a.document.writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">');
 a.document.writeln('<html><head><title>'+title+'</title></head>');
 a.document.writeln('<body style="margin:0;padding:0;background:#FFFFFF;">');
 a.document.writeln('<script language="JavaScript" type="text/javascript"> this.focus(); </script>');
 a.document.writeln('<div style="position:absolute;top:'+(yheight-31)+';left:'+(xwidth-72)+';" id="loading"><img src="http://www.hrac.sk/images/loading.gif" width="63" height="21" border="0" alt=""></div>');

 a.document.writeln('<script type="text/javascript">');
 a.document.writeln(' <!-- ');
 a.document.writeln(' function makeObj(obj)');
 a.document.writeln(' {');
 a.document.writeln('   var dom = document.getElementById?1:0');
 a.document.writeln('   if (dom) this.css = document.getElementById(obj).style');
 a.document.writeln('   else if (document.all && !dom) this.css =  document.all[obj].style;');
 a.document.writeln('   else if (document.layers && !dom) this.css =  document.layers[obj];');
 a.document.writeln('   else return false;');
 a.document.writeln(' }');
 a.document.writeln(' var test = new makeObj("loading")');
 a.document.writeln(' // --> ');
 a.document.writeln('</script>');

 a.document.writeln('<a href="#" onclick="window.close();"><img src="'+co+'" width="'+xwidth+'" height="'+yheight+'" OnLoad="test.css.visibility = \'hidden\'" border="0" alt=""></a>');
 a.document.writeln('</body>');
 a.document.writeln('</html>');
 a.document.close();
}

function Textwin(co,sirka,vyska)
{
 window.open(co,"or","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width="+sirka+",height="+vyska);
 return false;
}

function Start(page,title) {
OpenWin = this.open(page,title,"toolbar=no,menubar=no,location=no,status=no,scrollbars=yes,resizable=yes,directories=no,height=580,width=680,top=10,left=10'");
}

function Check_login(flogin)
{
if (flogin.login.value=="")
{
alert("Uveďte váš login, prosím.");
flogin.login.focus();
return false;
}
if (flogin.password.value=="")
{
alert("Uveďte vaše heslo, prosím.");
flogin.password.focus();
return false;
}
else 
return true;
}

function Check_flogin(form)
{
if (form.flogin.value=="")
{
alert("Uveďte váš login, prosím.");
form.flogin.focus();
return false;
}
else 
return true;
}

function expandcontent(curobj, cid){
	document.getElementById(cid).style.display=(document.getElementById(cid).style.display!="none")? "none" : ""
}
// -->

