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);
}

function foldTable(tableID, img){
	var theTable = document.getElementById(tableID);
	theTable.style.display = (theTable.style.display == 'none')? 'inline' : 'none';
	img.title = (img.title == 'Minimer')? 'Maximer':  'Minimer';
	img.src = (img.title == 'Minimer') ? 'graphics/application/minimize.png' : 'graphics/application/maximize.png';
}
function jswo(PageName){
	var win = window.open(PageName, 'win', 'height=400,width=480,resizable=0,scrollbars=0,toolbar=0,menubar=0,location=0,status=0');
//	if (window.focus){win.focus()};
}

