function el(co){
    return document.getElementById(co);
}
function ajax(adr,vystup,outer){
    xmlHttp=httpObject();
    xmlHttp.onreadystatechange=function(){
                 if (xmlHttp.readyState==4){
                     if(vystup){
                          if(!outer) el(vystup).innerHTML=xmlHttp.responseText; 
                          else el(vystup).outerHTML=xmlHttp.responseText; 
                    }
                 }       
     }                                                                              
    xmlHttp.open("GET",adr,true);
    xmlHttp.send(null);
    
}
function httpObject(){
    var xmlHttp=null;
    try{// Firefox, Opera 8.0+, Safari
        xmlHttp=new XMLHttpRequest();
    }
    catch (e){// Internet Explorer
        try{
            xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
        }
        catch (e){
            xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
    }
    return xmlHttp;
}
function Control(pole){
    ok=true;
    for(i=0;i<pole.length;i++){
        if(el(pole[i]) && !el(pole[i]).value)ok=false;
    }
    if(ok)return true;
    else {alert("Něco není zadáno!");return false;}
}
    function opacity(prvek,kolik){
        k=kolik/100;
        el(prvek).style.opacity=k;
        el(prvek).style.filter="alpha(opacity="+kolik+")";
        
    }

/*
var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the FSCommand messages in a Flash movie.
function player_DoFSCommand(command, args) {
	var playerObj = isInternetExplorer ? document.all.player : document.player;
	//
	// Place your code here.
	//
}
// Hook for Internet Explorer.
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<script language=\"VBScript\"\>\n');
	document.write('On Error Resume Next\n');
	document.write('Sub player_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call player_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}
//-->
*/
