function first()
{window.defaultStatus='SOU a SOŠ Znojmo';return true;}

function xxx()
{var a;}

function curyear()
{today1=new Date();
y012=today1.getFullYear();
document.write(y012);}

function con(bb) {
bb.style.backgroundColor = "#D5F1FF";
bb.style.cursor="default";
}
function coff(bb) {
bb.style.backgroundColor = "";
bb.style.cursor="auto";
}

function datum()
{var now = new Date();
var yr = now.getYear();
var mName = now.getMonth() + 1;
var dName = now.getDay() + 1.;
var dayNr = ((now.getDate()<10) ? "" : "")+ now.getDate();

if(dName==1) Day = "Neděle";
if(dName==2) Day = "Pondělí";
if(dName==3) Day = "Úterý";
if(dName==4) Day = "Středa";
if(dName==5) Day = "Čtvrtek";
if(dName==6) Day = "Pátek";
if(dName==7) Day = "Sobota";
if(mName==1) Month="1.";
if(mName==2) Month="2.";
if(mName==3) Month="3.";
if(mName==4) Month="4.";
if(mName==5) Month="5.";
if(mName==6) Month="6.";
if(mName==7) Month="7.";
if(mName==8) Month="8.";
if(mName==9) Month="9.";
if(mName==10) Month="10.";
if(mName==11) Month="11.";
if(mName==12) Month="12.";

// Y2K compliant
if (yr < 1000) yr +=1900;

// String to display current date.
   var todaysDate =(" "
       + Day
       + " "
       + dayNr
       + ". "
        + Month
       + " "
       + yr);

// Write date to page.
document.open();
document.write("<b>"+todaysDate+"</b>");}


function open1(urlx)
{window.open(urlx,'advise','toolbar=0,location=0,directories=0,statusbar=0,menubar=0,scrollbars=0,resizable=0,width=450,height=267,top=25,left=25');}
function go(url) 
{window.open(url,'','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=700,height=550,top=25,left=25');}
function anketa(urly)
{window.open(urly,'anketa','toolbar=0,location=0,directories=0,statusbar=0,menubar=0,scrollbars=0,resizable=0,width=145,height=245,top=150,left=680');}

function galery(urlz)
{window.open(urlz,'Fotogalerie','toolbar=0,location=0,directories=0,statusbar=0,menubar=0,scrollbars=0,resizable=0,width=900,height=650,top=25,left=25');}

function odpocet(sec)
{window.setTimeout("zavrit()",sec);
window.clearTimeout();}
function zavrit()
{window.close();}

function nahled1(xx1, xx2)
{window.open(xx1,xx2,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=100,height=100,top=25,left=25')}
function nahled2(xx1, xx2)
{window.open(xx1,xx2,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=100,height=100,top=25,left=25')}

function validateSug(f){   var s=f.Zprava.value;    if (s=='' || s=='Váš dotaz')    {   alert('Zadejte Váš dotaz!'); f.Zprava.focus(); return false;}    var e=f.Email.value;    if (e=='Váš E-mail')    {   alert('Zadejte Vaši emailovou adresu!'); f.Email.focus(); return false;}    if (e!='' && e!='Váš E-mail' && (e.indexOf('@') < 1 || e.indexOf('@') != e.lastIndexOf('@') || e.lastIndexOf('.') < e.lastIndexOf('@')+2  || e.lastIndexOf('.') > (e.length-3) || e.lastIndexOf('.') < (e.length-4)))    {   alert('Nesprávný formát e-mailové adresy!'); f.Email.focus(); return false;}   var j=f.Jmeno.value;    if (j=='' || j=='Vaše jméno')    {   alert('Zadejte Vaše jméno a příjmení!'); f.Jmeno.focus(); return false;}    return true;}

function validateSearch(f){   var s = f.searchtext.value; if (s=='' || s=='... hledaný výraz ...')    {   alert('Nejprve zadejte hledaný výraz!'); f.searchtext.focus(); return false;}    f.q.value = s;  f.searchtext.value = ""; return true;}


// Čísla v políčku Telefon
function getkey(e)
{ var code; 
  if (!e)
    var e = window.event; // nastaveni pro IE 
  if (e.keyCode)
    code = e.keyCode; // ie and mozilla/gecko 
  else
   if (e.which)
     code = e.which; // nn4
  return code;} 

function numeric(eX)
{ test=getkey(eX);
  if (test<32 || test>57)
    return false;}

function switch_visibility(el) {
	if (document.getElementById(el).style.display == 'none') {document.getElementById(el).style.display = ''}
	else {document.getElementById(el).style.display = 'none'}
	}

// obrázky
function overIMG(imgName){
	if(document.images){
		document [imgName].src = eval(imgName + "on.src")}}
function outIMG(imgName){
	if(document.images){
		document [imgName].src = eval(imgName + "of.src")}}


