// Copyright (c) 2001 by ARTNER EDV-Lösungen
// webmaster@artner.de
// http://www.artner.de

var focusedImg = 'home';

function hottrackImg(argImgName, argHottrack)
{

	if (document.images)
	{
		if (argHottrack)
		{
			if (argImgName != focusedImg)
			{
				document.images[argImgName].src = 'images/navigbtns/' + argImgName + 'hot.gif';
			}
		}
		else
		{
			if (argImgName != focusedImg)
			{
				document.images[argImgName].src = 'images/navigbtns/' + argImgName + '.gif';
			}
		}
	}

}

function focusImg(argImgName)
{
	var tmp;
	
	tmp = focusedImg;
	focusedImg = argImgName;
	hottrackImg(tmp, false);
}

function setFocusedImg(argImg)
{
	focusedImg = argImg;
}

function openWindow(pageName, windowWidth, windowHeight, shwScrlBrs)
{
	var openedWindow;
	
	openedWindow = window.open(pageName, '', 'width=' + windowWidth + ',height=' + windowHeight + ',hotkeys=no,locationbar=no,toolbar=no,menubar=no,resizable=no,status=no,scrollbars=' + shwScrlBrs);
	openedWindow.moveTo((screen.width / 2) - (windowWidth / 2), (screen.height / 2) - (windowHeight / 2))
	// window.setTimeout('openedWindow.document.location.reload();', 250);
}

function onCboKatChange()
{
	var idxSel = document.forms.frmCboKat.cboKat.options.selectedIndex;
	var selValue = document.forms.frmCboKat.cboKat.options[idxSel].value;

	document.location.href = selValue;
}

function onCboFzgTypChange()
{
	var idxSel = document.forms.frmCboFzgTyp.cboFzgTyp.options.selectedIndex;
	var selValue = document.forms.frmCboFzgTyp.cboFzgTyp.options[idxSel].value;

	document.location.href = selValue;
}

function onCboFzgChange()
{
	var idxSel = document.forms.frmCboFzg.cboFzg.options.selectedIndex;
	var selValue = document.forms.frmCboFzg.cboFzg.options[idxSel].value;

	document.location.href = selValue;
}
