//-------------------------------------------------
function okno(action,winwidth,winheight,name,scroll,toolbar,status,resizable,menubar) {
	var PROFILE = null;
       
	PROFILE =  window.open ("", name, "toolbar="+toolbar+",width="+winwidth+",height="+winheight+",directories=no,location=no,status="+status+",scrollbars="+scroll+",resizable="+resizable+",menubar="+menubar+"");
        if (PROFILE != null) {
               if (PROFILE.opener == null) {
                   PROFILE.opener = self;
        	   }
	       PROFILE.location.href = action;
        } 
       
       
}
//-------------------------------------------------
function reokno(action,winwidth,winheight,name,scroll,toolbar,status,resize,menubar) 
	{
	
	window.close();
	
	b = window.opener;
	a = b.closed;
				
	if (!a)
	{
		var PROFILE = null;
	       	PROFILE =  self.open ("", "nalezen", "toolbar="+toolbar+",width="+winwidth+",height="+winheight+",directories=no, status="+status+",scrollbars="+scroll+",resize="+resize+",menubar="+menubar+"");
	        if (PROFILE != null) {
	               if (PROFILE.opener == null) {
	                   PROFILE.opener = self;
	        	   }
		       PROFILE.location.href = action;
	}
        }
}


function externalLinks() {  
 if (!document.getElementsByTagName) return;  
 var anchors = document.getElementsByTagName("a");  
 for (var i=0; i<anchors.length; i++) {  
   var anchor = anchors[i];  
   if (anchor.getAttribute("href") &&  
       anchor.getAttribute("rel") == "external")  
     anchor.target = "_blank";  
 }  
} 


//-------------------------------------------------
function Jump(theSelect){
    selindex = theSelect.selectedIndex;
    selvalue = theSelect.options[selindex].value;

    if (selvalue=="url") { 
        document.getElementById("url").className = 'sh_show'; 
        document.getElementById("soubor").className = 'sh_none'; 
      } else { 
        document.getElementById("url").className = 'sh_none'; 
        document.getElementById("soubor").className = 'sh_show'; 
      } 
} 












