/** UTF ì¹èø¾ýáíé **/
/* Hidden */
function view(targetId) {
  var targetElemen = false;
  targetElement = tagName(targetId);

	if(targetElement){
   	if (targetElement.style.display == "none") {
        targetElement.style.display = "block";
		} else {
        targetElement.style.display = "none";
     }
	}
	return false;
}

/*** window ***/
function openMapKladno() {
window.open('pages/mapa-kladno.php','MapWindow','width=550,height=550,menubar=no,scrollbars=no,toolbar=no,location=no,directories=no,resizable=no,top=20,left=20');
}
function openMapPraha() {
window.open('pages/mapa-praha.php','MapWindow','width=550,height=650,menubar=no,scrollbars=no,toolbar=no,location=no,directories=no,resizable=no,top=20,left=20');
}

/* navigation */
function tagName(targetId){
		 if (document.getElementById && document.getElementById(targetId)){
			 targetElement = document.getElementById(targetId);
		  }else if(document.all && document.all[targetId]){
		  	 targetElement = document.all[targetId];
		  }else if(document.layers && document[targetId]){
		  	targetElement = document[targetId];
		  }else{
		  	targetElement = false;
		  }
		  return targetElement;
}


function filterToZero(){
	if(selecty = tagName('filtr1').elements){
		for(i = 0; i < selecty.length;i++){
			if(selecty[i].type == 'select-one'){
				selecty[i].selectedIndex = 0;
			}
			if(selecty[i].type == 'checkbox'){
				selecty[i].checked=false;
			}
		}
	}

	tagName('filtr1').submit();
	return false;
	
}



