<!--
function findObject(o, d) {
	var x, i;
	if(!d)
		d = document;
	// document.getElementById
	if(document.getElementById)
		x = document.getElementById(o);
	// document.all
	if(!x && !(x = document[o]) && document.all)
		x = document.all[o];
	// img element
	if(!x && d.images)
		x = d.images[o];
	//a element
	if(!x && d.anchors)
		x = d.anchors[o];
	// form element
	for(i = 0; !x && i < d.forms.length; i++)
		x = d.forms[i][o];
	// document.layers
	if(!x && document.layers)
		x = d.layers[o];
	for(i = 0; !x && d.layers && i < d.layers.length; i++)
		x = findObject(o, d.layers[i].document);

	return x;
}

function preloadImages() {
/*
	home
	members
	teaching
	research
	theses and project topics
	tools
	opening
	publications
*/
	if(document.images) {
		if(!document.preloaded)
			document.preloaded = new Array();

		var args = preloadImages.arguments;

		for(i = 1; i < args.length; i++) {
			if(!document.preloaded[args[i]])
				document.preloaded[args[i]] = new Image();
			document.preloaded[args[i]].src = args[0] + args[i] + "01.gif";
			document.preloaded[args[i]].srcOut = args[0] + args[i] + "00.gif";
			document.preloaded[args[i]].srcIn = args[0] + args[i] + "01.gif";
		}

	}
}

function swapIn(o) {
	if(document.images && document.images[o] && document.preloaded && document.preloaded[o])
		document.images[o].src = document.preloaded[o].srcIn;
}

function swapOut(o) {
	if(document.images && document.images[o] && document.preloaded && document.preloaded[o])
		document.images[o].src = document.preloaded[o].srcOut;
}

function setBGColor(obj, clr) {
	if(obj && obj.style)
		obj.style.background = clr;
}

document.pmImg = Array();
document.pmImg[0] = new Image();
document.pmImg[0].src = "/soft/NEW/_img/plus.gif";
document.pmImg[1] = new Image();
document.pmImg[1].src = "/soft/NEW/_img/minus.gif";

function toggleAbstract(obj) {
	aObj = findObject(obj + "link");
	imgObj = findObject(obj + "img");
	if(obj = findObject(obj + "text")) {
		if(obj.style)
			obj = obj.style;
		if(document.abstr) {
			if(document.abstr == obj) {
				hideAbstract();
				return false;
			}
			hideAbstract();
		}
		if(imgObj && document.pmImg) {
			imgObj.src = document.pmImg[1].src;
			document.abstrImg = imgObj;
		}
		if(aObj && document.layers && obj.moveTo) {
			obj.moveTo(aObj.x, aObj.y);
		}
		document.abstr = obj;
		obj.visibility = "visible";
	}
}

function hideAbstract(obj) {
	if(document.abstrImg && document.pmImg) {
		document.abstrImg.src = document.pmImg[0].src;
		document.abstrImg = null;
	}
	if(document.abstr) {
		document.abstr.visibility = "hidden";
		document.abstr = null;
	}
}

function outline(id)
{
 if(document.getElementById(id).style.display == 'block')
 {
  document.getElementById(id).style.display = 'none';
 }
 else
 {
  document.getElementById(id).style.display = 'block';
 }
}

function outline_open(id)
{
	document.getElementById(id).style.display = 'block';
}

function outline_close(id)
{
	document.getElementById(id).style.display = 'none';
}

function checkFormular () {
   if (document.Formular.firstname.value == "") {
    alert("Bitte geben Sie zuerst Ihren Vornamen ein!");
    document.Formular.firstname.focus();
    return false;
  }
 
  if (document.Formular.name.value == "") {
    alert("Bitte geben Sie zuerst Ihren Nachnamen ein!");
    document.Formular.name.focus();
    return false;
  }
 
  if (document.Formular.matrikelNr.value == "") {
    alert("Bitte geben Sie zuerst Ihre Matrikelnummer ein!");
    document.Formular.matrikelNr.focus();
    return false;
  }
   if (document.Formular.email.value == "") {
    alert("Bitte geben Sie zuerst Ihre Email-Adresse ein!");
    document.Formular.email.focus();
    return false;
  }
  if (document.Formular.studiengang.value == "") {
    alert("Bitte geben Sie zuerst Ihren Studiengang ein!");
    document.Formular.studiengang.focus();
    return false;
  }
  if (document.Formular.semesteranzahl.value == "") {
    alert("Bitte geben Sie zuerst Ihre Semesteranzahl ein!");
    document.Formular.semesteranzahl.focus();
    return false;
  }
  if (document.Formular.sicherheitscode.value == "") {
    alert("Bitte zuerst das Rechnungsergebnis eintragen!");
    document.Formular.sicherheitscode.focus();
    return false;
  }
    
}

//-->
