function vypln(policko)
{
	var hodnota;
hodnota = policko.options[policko.selectedIndex].value;
return(hodnota);
}
function zobraz(idecko){
	var idcka = new Array(1,2,3,4,5);
	var object;
el=document.getElementById(idecko).style; 
el.display=(el.display == 'block')?'none':'block';
//alert(idcka.length);

for (i=0;i<idcka.length;i++)
{
if (idcka[i]!=idecko)
{
	//alert(idcka[i]);
	object = idcka[i];
	el=document.getElementById(object).style;
	el.display='none';
	
}
}

}

var i=0;
var okno;
function MM_openBrWindow(theURL,winName,features) { //v1.2
if (i==1) okno.close(); okno=window.open(theURL,winName,features); i=1;
}

//here you place the ids of every element you want.
var ids=new Array('gps_coor');

function switchid(id){	
	hideallids();
	showdiv(id);
}

function hideallids(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids.length;i++){
		hidediv(ids[i]);
	}		  
}

function hidediv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv(id) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}

