function changeOrthoType(oForm, orthoType) {
	oForm.orthotype.value = orthoType;
	oForm.orthochanged.value = 1;
	oForm.submit();
}

function navigate(oForm, direction, factor) {
	oForm.mapnav.value = direction;
	oForm.mapnavfac.value = factor;
	oForm.submit();
}

function zoomtowidth(oForm, width) {
	oForm.mapzl.value = width;
	oForm.submit();
}
function showtema(fag_pub){
	var rgDiv = document.getElementById('krakoverlag').getElementsByTagName('div');
	for(var i = 0 ; i < rgDiv.length ; i++){
		if(rgDiv[i].id.substr(0, fag_pub.id.length) == fag_pub.id){
		rgDiv[i].style.visibility = (fag_pub.checked) ? 'visible' : 'hidden';
		}
	}
}
function hiliTheme(fag_pub){
	var rgDiv = document.getElementById('krakoverlag').getElementsByTagName('div');
	for(var i = 0 ; i < rgDiv.length ; i++){
		if(rgDiv[i].id.substr(0, fag_pub.length) == fag_pub){
		rgDiv[i].style.background = 'url(graphics/theme/blink.gif)';
		}
	}
}
function noliTheme(fag_pub){
	var rgDiv = document.getElementById('krakoverlag').getElementsByTagName('div');
	for(var i = 0 ; i < rgDiv.length ; i++){
		if(rgDiv[i].id.substr(0, fag_pub.length) == fag_pub){
		rgDiv[i].style.background = 'url(graphics/theme/blank.gif)';
		}
	}
}

function SeekPar(SeekType,valueField){
	var currValue	= document.getElementById(valueField).value;
	var newValue	= "";
	if(SeekType.checked){
		if (currValue == ""){
			newValue	=	SeekType.value;			
		}else{
			newValue	=	currValue + ',' + SeekType.value;
		}
		document.getElementById(valueField).value = newValue;
	}else{
		var valueList = new Array();
		valueList = document.getElementById(valueField).value.split(',');
		for (i = 0; i < valueList.length; i++){
			if (valueList[i] == SeekType.value){
				valueList.splice(i,1);
			} 
		}
		document.getElementById(valueField).value =valueList;
	}
}
var oldId = '';
var imgId = '';
function changeLocationGif(imageId){
	imgId = 'img'+imageId;
	if(oldId != ''){ 
		document.getElementById(oldId).src='graphics/route/stdblue/miniblaa.gif';
	}	
	document.getElementById(imgId).src='graphics/route/stdblue/miniblink.gif';
	oldId = imgId;
}
function changeLocationSelector(optionId){
	document.getElementById('InputLocationselector').selectedIndex = optionId;
	changeLocationGif(optionId);
}


