
var ZStempel = new Date();
is = new BrowserCheck();

function get_element(name) {
	if (is.ie6) {
		return eval("document.getElementById('"+name+"').style;");
	}
	else if (is.ie5 || is.nc6) {
		return eval("document.getElementById('"+name+"').style;");
	}
	else if (is.ie4) {
		return eval("document.all." + name + ".style");
	}
	else if (is.nc4) {
		return eval("document." + name);
	}
}

function BrowserCheck() {
	var b = navigator.appName;
	if (b=="Netscape") this.b = "nc"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	this.v = parseInt(navigator.appVersion);
	this.nc = (this.b=="nc" && this.v>=4);
	this.nc4 = (this.b=="nc" && this.v==4);
	this.nc6 = (this.b=="nc" && this.v>=5);
	this.ie = (this.b=="ie" && this.v>=4);
	this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0);
	this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0);
	this.ie6 = (navigator.userAgent.indexOf('MSIE 6')>0);
	if (this.ie6) this.v = 6
	this.min = (this.nc||this.ie);
}

function selectSeminar() {
	var nummer = parseInt(readSearchStr());
	document.anmeldung.elements[9].selectedIndex = nummer;
	return true;
}

function selectJob()
{
	var nummer = readSearchStr();
	var uebergabe = nummer.split("%20");
	var bewVal = "";
	if (uebergabe.length>1)
	{
		for (i=0;i<uebergabe.length;i++)
		{
			bewVal += uebergabe[i];
			bewVal += " ";
		}
	}
	else
	{
		bewVal = uebergabe[0];
	}
	document.bewerbung.jobnr.value = bewVal;
}

function readSearchStr() {
	var searcher = location.search.substring(1,location.search.length);
	return searcher;
}


