
function openwindow(url, myName, myWidth, myHeight, Param) {
		if (Param == "") {
			Fenster = window.open(url, myName, "width=" + myWidth +",height=" + myHeight +",resizable=no,scrollbars=yes,toolbar=no");
		} else {
			Fenster = window.open(url, myName, "width=" + myWidth +",height=" + myHeight +"," + Param.replace(/;/gi,","));
		}
		Fenster.focus();
}

function BildMouse(bildn, fileName) {
	document.images[bildn].src = fileName;
}

function fCookieLesen(CookieName) {
	var CookieDaten = document.cookie.split(";");
	var CookieWert = "";
	var CookieInhalt = "";
	
	for (var i = 0; i < CookieDaten.length; i++) {
		CookieInhalt = CookieDaten[i].split("=");
	
		if (i == 0 && CookieInhalt[0] == CookieName)
			CookieWert = CookieInhalt[1];
	
		if (i > 0 && CookieInhalt[0].substr(1, CookieInhalt[0].length) == CookieName)
			CookieWert = CookieInhalt[1];
	}
	
	return CookieWert;
}

function fCookieSetzen(Name, Inhalt, Lebensdauer, path) {
	var Datum = new Date();
	
	if (Datum.getYear() > 2000) {
		Jahr = Datum.getYear();
	} else {
		Jahr = 1900 + Datum.getYear();
	}
	Datum.setYear(Lebensdauer + Jahr);
	
	if (Lebensdauer == 0) {
		document.cookie = Name + '=' + Inhalt + '; path=' + path;
	} else {
		document.cookie = Name + '=' + Inhalt + ';expires=' + Datum.toGMTString() + '; path=' + path;
	}
}

