<!--
function makePopup(windowPosX,windowPosY,windowName,url,name,w,h,extra){
	var titlebarHeight = 28;
	str="height="+h+",width="+w+","+extra;
	if(parseInt(navigator.appVersion)>3) // supports screen.width
		if (windowPosX == -1) {
			str+=",left=" + (screen.width -w)/2 + ",top=" + parseInt(((screen.height -h)-titlebarHeight)/2);
		}
		else {
			str+=",left="+windowPosX+",top="+windowPosY;
		}
	var k = eval(windowName + "=window.open('" + url + "','" + name + "','" + str + "')");
	return k;
}

function showPodminky(url){
	makePopup(-1,-1,'podm',url,'podm', 600, 500, 'menubar=no,resizable=yes,scrollbars=yes');
	return false;
}

/******** prace s inputy **************/

function remove_txt(txt,input) {
	if(input.value == txt){
		input.value = "";
	}
}

function set_txt(txt,input) {
	if(input.value == ""){
		input.value = txt;
	}
}

function confirmSubmit(txt) {
	var agree=confirm(txt);
	if (agree){
		return true;
	} else {
		return false;
	}
}

/** registrace */
function switchTab(identShow, identHide){
	t1 = document.getElementById(identShow + '_title');
	t2 = document.getElementById(identHide + '_title');
	
	t3 = document.getElementById(identShow + '_form');
	t4 = document.getElementById(identHide + '_form');
	
	t1.className = 'active';
	t2.className = '';
	
	t3.style.display = 'block';
	t4.style.display = 'none';
}

function showPopup(friend){
	hideSelects();
	
	if(friend){
		popCont = document.getElementById('inzFormFriend');
		popCont.style.display = 'block';	
		popCont = document.getElementById('inzFormReply');
		popCont.style.display = 'none';	
	} else {
		popCont = document.getElementById('inzFormReply');
		popCont.style.display = 'block';	
		popCont = document.getElementById('inzFormFriend');
		popCont.style.display = 'none';
		
	}
	
	pop = document.getElementById('popupWrapper');
	pop.style.display = 'block';	
	
	allSelects = document.getElementsByTagName('select')

	if (typeof document.body.style.maxHeight == "undefined") {//if IE 6
		var html = document.getElementsByTagName('html');  
		html[0].style.overflow = 'hidden';
	}
	
	return false;
}

function closePopup(){
	showSelects()
	pop = document.getElementById('popupWrapper');
	pop.style.display = 'none';	
	
	if (typeof document.body.style.maxHeight == "undefined") {//if IE 6
		var html = document.getElementsByTagName('html');  
		html[0].style.overflow = '';
	}
	
}

function hideSelects() {
	var allSelects = document.getElementsByTagName('select');  
	for (var i = 0; i < allSelects.length; i++) {			
		allSelects[i].style.visibility = 'hidden';		
	}
}

function showSelects() {
	var allSelects = document.getElementsByTagName('select'); 	
	for (var i = 0; i < allSelects.length; i++) {
		allSelects[i].style.visibility = 'visible';		
	}
}


function showUploadLogo(){
	f = document.getElementById('uploadLogo');
	f.style.display = 'block';	
	
}

function nextPraxe(){
	try
	{
		nl = document.getElementById('praxe_n_' + nextPraxeNo);
		nl.style.display = '';	
		nextPraxeNo++;
	}
	catch(err)	{ }
	
	return false;
}

function nextLanguage(){
	try
	{
		nl = document.getElementById('lang_n_' + nextLangNo);
		nl.style.display = '';	
		nextLangNo++;
	}
	catch(err)	{ }
	
	return false;
}

function nextCert(){
	try
	{
		nl = document.getElementById('kurzy_n_' + nextCertNo); 
		nl.style.display = '';	
		nextCertNo++; 
	}
	catch(err)	{ }
	
	return false;
}

function nextPerson(){
	try
	{
		nl = document.getElementById('ko_n_' + nextPersonNo); 
		nl.style.display = '';	
		nextPersonNo++; 
	}
	catch(err)	{ }
	
	return false;
} 

function hideFilter(){
	document.getElementById('formFull').style.display = 'none';	
	document.getElementById('formMini').style.display = 'block';	
}

function showFilter(){
	document.getElementById('formFull').style.display = 'block';	
	document.getElementById('formMini').style.display = 'none';	
	return false;
}

function manageFilter(a){
	ff = document.getElementById('formAdvanced');
	opened = ff.style.display == 'block';
	if(opened){
		ff.style.display = 'none';	
		a.innerHTML = 'Rozšířené vyhledávání';
	} else {
		ff.style.display = 'block';	
		a.innerHTML = 'Skrýt rozšířené vyhledávání';
	}
	return false;
}
-->