function zeigeErgebnis(Art, Typ, ID, Hoch) {
    var URL = "ergebnis.php?art=" + Art + "&typ=" + Typ + "&id=" + ID + "&hoch=" + Hoch;
	alert(URL);
	parent.frames[1].frames[1].location.href(URL);
}

function setzeAnzeige(Typ) {
	document.helfer.ansicht.value = Typ;
	return true;
}
function setzeStimme(Typ) {
	document.helfer.stimme.value = Typ;
    return true;
}

function makeActive(o) {
	document.getElementById("registersub0").className = "register";
	document.getElementById("registersub1").className = "register";
	document.getElementById("registersub2").className = "register";
	o.className = "aktiv";
	showHistWahl();
}
function setActive(ID) {
	makeActive(document.getElementById("registersub" + ID));
}

function testForm() {
	if (document.forms[0].gebiet0.options.selectedIndex == -1) {
		alert("Es fehlt eine Eingabe!");
		return false;
	}
	if (document.forms[0].gebiet1.options.selectedIndex == -1) {
		alert("Es fehlt eine Eingabe!");
		return false;
	}
	if (document.forms[0].ansicht.options.selectedIndex == -1) {
		alert("Es fehlt eine Eingabe!");
		return false;
	}
}

function showReload() {
 if(document.reload.auto.checked) {
    show('popUp');
 } else {
    hide('popUp');
 }
}

function returnRefresh(returnVal) {
  window.document.reload();
}

function reloadWin() {
    window.document.location.reload();
}

/**
 *
 * @access public
 * @return void
 **/
function showProgressbar(){
    //Wenn der Ladebalken vorhanden ist, dann anzeigen
    if(document.getElementById('layer_progressbar')) {
        show('layer_progressbar');
        progressbar.togglePause();
    }
}

var ver = navigator.appVersion;
var agent = navigator.userAgent.toLowerCase();
var platform = navigator.platform;

function show(id) {
    if (ver.indexOf("MSIE") != -1 && !window.opera && ver.indexOf("Mac") == -1) {
        window.document.getElementById(id).style.setAttribute('display','block','false');
    } else {
        document.getElementById(id).style.display = "block";
    }
}

function hide(id) {
    if (ver.indexOf("MSIE") != -1 && !window.opera && ver.indexOf("Mac") == -1) {
        window.document.getElementById(id).style.setAttribute('display','none','true');
    } else {
        document.getElementById(id).style.display = "none";
    }
}

