function ukazka(url)
{
window.open(url,"ukazka","toolbar=0,location=0,scrollbars=1,width=100,height=100,resizable=1,left=0,top=0");
}

function www(url)
{
window.open(url,"www","toolbar=0,location=0,scrollbars=1,width=780,height=580,resizable=1,left=0,top=0");
}

function kontr(form)
        {
        var cstr=form.srchtxt.value
   	if (cstr=="")
       	  {
          if (form.lang.value=="sk")
            {alert("Nebol zadaný reťazec pre vyhľadanie!");}
          else
            {
            if (form.lang.value=="cz")
            	{alert("Nebyl zadán řetězec pro vyhledání!");}
            else 
            	{alert("You must enter a string to find!");}
            } 
          form.srchtxt.focus();
          return false;
       	  }
   	if (cstr.length < 3 )
       	  {
           if (form.lang.value=="sk")
             {alert("Zadajte aspoň 3 znaky pre vyhľadanie!");}
           else
             {
             if (form.lang.value=="cz")
                {alert("Zadejte alespoň 3 znaky pro vyhledání!");}
             else
                {alert("Enter minimal 3 characters to search!");}
             }
          form.srchtxt.focus();
          return false;
       	  }
         form.submit();
	}

function switchid(id){	
	hideallids();
	showdiv(id);
}

function hideallids(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids.length;i++){
		hidediv(ids[i]);
	}		  
}

function hidediv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv(id) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}
