function OpenWindow(theURL, winName, features) {

   wino=window.open(theURL, winName, features);

   wino.focus()

}

function MusicWindow(theURL, winName, wi, he, features) {

   winc=window.close;  

   var x=(screen.width-wi)/2;

   var y=(screen.height-he)/2;

   winpa='height='+he+',width='+wi+',top='+y+',left='+x+',scrollbars=yes,toolbar=no,resizable=yes,menubar=no';

   winc=window.open(theURL, winName, winpa, features);

   winc.focus()   

}


function CenterWindow(theURL, winName, wi, he, features) {

   var x=(screen.width-wi)/2;

   var y=(screen.height-he)/2;

   winpa='height='+he+',width='+wi+',top='+y+',left='+x+',scrollbars=yes,toolbar=no,resizable=yes,menubar=no';

   winc=window.open(theURL, winName, winpa, features);

   winc.focus()   

}



function FlexiWindow(theURL, winName, features) {

   var x=(screen.width-140);

   var y=(screen.height-300);

   winpa='height='+y+',width='+x+',top='+150+',left='+70+',scrollbars=yes,toolbar=no,resizable=yes,menubar=no';

   winf=window.open(theURL, winName, winpa, features);

   winf.focus()   

}

function iFrameHeight() {
			var h = 0;
			if ( !document.all ) {
				h = document.getElementById('blockrandom').contentDocument.height;
				document.getElementById('blockrandom').style.height = h + 60 + 'px';
			} else if( document.all ) {
				h = document.frames('blockrandom').document.body.scrollHeight;
				document.all.blockrandom.style.height = h + 20 + 'px';
			}
		}


function zobraz(id)
{
	document.getElementById(id).className="on";
}
function skryj(id)
{
	document.getElementById(id).className="off";
}

function zobrazd(id){
el=document.getElementById(id).style;
el.display='block';
}
function skryjd(id){
el=document.getElementById(id).style;
el.display='none';
}



function swapd(id){
el=document.getElementById(id).style;
el.display=(el.display == 'block')?'none':'block';
}

function swapc(id){
cl=document.getElementById(id).className;
document.getElementById(id).className.className=(document.getElementById(id).className.className == 'on')?'off':'on';
 
//document.getElementById(id).className="group-header-open";
}






