function erase()
{
   window.status="";
}
function statbar(txt)
{
   window.status = txt;
   //setTimeout("erase()",2400);
}

function OnChange() {
var max=75
 obsah= document.f.ta.value
 delka= obsah.length
 if(eval(delka>max)) alert('zprava je dlouha:'+delka+' maximum je:'+max)
 return true
}

function showOkno(path,w,h,popis) {
var deltay=20

	popis= popis+", width="+w+", height="+h
    statbar(popis)

var Str="width="+w+",height="+h+",toolbar=0,directories=0,menubar=0,status=0,resizable=0,location=0,scrollbars=0,copyhistory=0,left=0,top=0"

var O = open("","okno",Str)
    O.document.open()
    O.document.writeln("<body bgcolor='#DBD9CC' topmargin='0' leftmargin='0'>")
    O.document.writeln("<style type=text/css>.popis {	font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: ffffff; text-align: center;}</style>")
    O.document.writeln("<a href=JavaScript:onClick=self.close()><img src="+path+" border=0 alt='zavøít'></a><br>")
    O.document.writeln("<div class=popis>"+popis+"</div></body>")
    O.document.close()
}

//not use
function otevriOkno(path,w,h) {
                   var Str="width="+w+",height="+h+",toolbar=0,directories=0,menubar=0,status=0,resizable=0,location=0,scrollbars=1,copyhistory=0"
                   alert(Str);
                   window.open(path,"okno",Str);
}




