
// ------------------------------------------------
// STANDARD-FUNKTIONEN
// ------------------------------------------------
function SeiteLaden(link,ziel,form,feld,wert) {
	link = link + '&' + feld + '=' + window.document.forms[form].elements[wert].value;
	window.open(link,ziel);
}
function NeuesFenster(seite, titel, extras, breite, hoehe, sbar) {
	var seite=seite+"?titel="+titel;
	if (extras) {
		seite=seite+extras;
	}
	var vonleft = 100;
	var vontop = 50;
	var optional="width="+breite+",height="+hoehe+",left="+vonleft+",top="+vontop+",scrollbars="+sbar+",menubar=no,location=no,status=yes,resizable=yes";
	var F1 = window.open(seite,titel,optional);
}
function AbfrageEvent(link, ziel, frage) {
	var x=window.confirm(frage);
	if (x) {
		window.open(link,ziel);
	}
}
function ParentFenster(url,c) {
	opener.location.href=url;
	if (c) {
		self.close();
	}
}
function Schliessen() {
	window.opener.location.reload();
	self.close();
}
function popupfenster(anzeige,titel,inhalt) {
	document.getElementById("popupfenster").style.visibility=anzeige;
	if( titel != "" ) {
		document.getElementById("popuptitel").innerHTML = titel;
	}
	if( inhalt != "" ) {
		document.getElementById("popupinhalt").innerHTML = inhalt;
	}
}
//------------------------------------------------
function BildTausch(imgID,imgObjName) {
	// imgID - Name des auszutauschenden Bildes
	// imgObjName - Name des Bildes mit dem ausgetauscht wird
	document.images[imgID].src = eval(imgObjName + ".src");
}
function FeldLeeren(FormName,FeldName) {
	// alert(FormName);
	// alert(FeldName);
	window.document.forms[FormName].elements[FeldName].value = "";
	window.document.forms[FormName].elements[FeldName].style.color = "#000";
}
// ------------------------------------------------
// SONDER-FUNKTIONEN
// ------------------------------------------------
