function setPointer(theRow, thePointerColor){
	if (typeof(theRow.style)=='undefined'||typeof(theRow.cells)=='undefined'){
	return false;}
	var row_cells_cnt = theRow.cells.length;
    for (var c = 0; c < row_cells_cnt; c++){
	theRow.cells[c].bgColor = thePointerColor;}
    return true;} // end of the 'setPointer()' function
function slideshow(url){
	window.open(url,"","toolbar=no,scrollbars=yes,location=no,status=no,width=680,height=500,resizable=yes");}
function okno(url){
	window.open(url,"","toolbar=no,scrollbars=yes,location=no,status=no,width=550,height=300,resizable=yes");}
function send_e(url){
	window.open(url,"sendemail","toolbar=no,scrollbars=no,location=no,status=no,width=200,height=180,resizable=no");}
function show_photo(url){
	window.open(url,"show_photo","toolbar=no,scrollbars=yes,location=no,status=no,width=802,height=620,resizable=no");}
function show_subor(url){
	window.open(url,"show_subor","toolbar=no,scrollbars=yes,location=no,status=no,width=100,height=50,resizable=no");}
function tlac(url){window.open(url,"","scrollbars=yes,status=yes,menubar=no,toolbar=yes,resizable=yes,width=700");}
function kontrola(eml){
	if ((eml.email.value=="") || (eml.security_code.value=="")){
		alert("Vyplň pole pre adresu a overovací kód z obrázku\nYou must put email addres and security code from picture");
		eml.email.focus();
		return false;}
	else if (window.RegExp){
		re = new RegExp("^[^@]+@[^.]+\..+$");
		if (!re.test(eml.email.value)){
			alert("Zadaná adresa nieje e-mailová adresa (niekto@niekde.yy)\nThis is not an e-mail address like (somebody@somewhere.yy)");
			eml.email.focus();
			return false;}}
	else {return true;}}

function setAsHome(myLink)
{
        if(navigator.appName.indexOf('Microsoft')!=-1)
        {
         myLink.style.behavior='url(#default#homepage)';
                        myLink.setHomePage(location.href);
            }

        else if(navigator.appName.indexOf('Netscape')!=-1)
        {
               // Netscape / firefox browsers
               var msg = "Stlačte ľavé tlačítko myši a presuňte tento textový odkaz na tlačítko 'domov' (ikona domčeka) v záhlaví Vášho prehliadača. ";
               alert(msg);
        }
        else if(navigator.appName.indexOf('Opera')!=-1)
        {
               // Opera
               var msg = "Prosím choďte do Nástroje - Nastavenia";
               msg += "- Obecné a zvoľte 'použiť aktuálnu' ";
               msg += "pre nastavenie tejto stránky ako domovskej.";
               alert(msg);
        }
        else
        {
               // Other browsers
               var msg = "Je nám ľúto, ale Váš prehliadač ";
               msg += "nedovoľuje automaticky nastaviť domovskú stránku.";
               msg += "Prosím nastavte ako domovskú stránku ručne v záložke ";
               msg += "NASTAVENIA Vášho prehliadača.";
               alert(msg);
        }
}

function addBookmark(title,url) {
	if (window.sidebar) { window.sidebar.addPanel(title, url,""); }
	else if( document.all ) {window.external.AddFavorite( url, title);}
	else if( window.opera && window.print ) {return true;}
}
