// JavaScript Document

function ShowDescr (Desc){
/*if (Desc.className == "Desc_off")*/
Desc.className = "Desc-on";
/*else Desc.className = "Desc_off"*/
}
function CloseDescr (Desc){
Desc.className = "Desc_off"
}

 function NewWin(){
        Win = window.open('4ra/4ra.htm', '4ra');
      }
	  
var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

function messageWindow(title, msg)
{
  var width="300", height="125";
  var left = (screen.width/2) - width/2;
  var top = (screen.height/2) - height/2;
  var styleStr = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top;
  var msgWindow = window.open("","msgWindow", styleStr);
  var head = '<head><title>'+title+'</title></head>';
  var body = '<center>'+msg+'<br><p><form><input type="button" value="   Done   " onClick="self.close()"></form>';
  msgWindow.document.write(head + body);
}

	  
        // Funkce pro hledání na vašich stránkách za
        // pomoci Altavisty
        function ZoznamSearch (){
          // Adresa vyhledávacího serveru
          var Address = 'http://www.zoznam.sk/hladaj?s=www.mbtron.sk&co=fulltext';
          // Adresa serveru, na kterém chcete vyhledávat
          Address = Address + '';
          // Vyhledávaný oetizec
          Address = Address + document.MainForm.edSearch.value;
          // Zbytek dotazu
          Address = Address + '+&pg=q&kl=XX&search=Search'
          // Otevoe se stránka s výsledky hledání
          window.open (Address, "");
        }
   

