

	var newWin = null;
	function popUpnew(strURL, strType, strHeight, strWidth) {
	 	if (newWin != null && !newWin.closed)
	   		newWin.close();
		var strOptions="";
	 	if (strType=="console")
	   		strOptions="resizable,height="+
	    	strHeight+",width="+strWidth;
	 	if (strType=="fixed")
	   		strOptions="status,height="+
	    	strHeight+",width="+strWidth;
		if (strType=="elastic")
	   		strOptions="scrollbars,"+
	     	"height="+
	     	strHeight+",width="+strWidth;
	 	newWin = window.open(strURL, 'newWin', strOptions);
		 newWin.focus();
	}

/*
function hide(){
	if(document.getElementById("popup")){
			document.getElementById("popup").style.visibility="hidden";
}
}

function hidealert(){
	if(document.getElementById("popup")){
			document.getElementById("popup").style.visibility="hidden";
			alert("Ihre Anfrage wurde gesendet.");
}
}

function show(){
	if(document.getElementById("popup")){
			document.getElementById("popup").style.visibility="visible";
}
}
*/
	function changeVis(id0,id1){
		if(document.getElementById(id0)){
			document.getElementById(id0).style.display = "block";
			document.getElementById(id1).style.display = "none";
		}
	}

	function changeVisBack(id0,id1){
		if(document.getElementById(id0)){
			document.getElementById(id0).style.display = "none";
			document.getElementById(id1).style.display = "block";
		}
	}



var hwndPopup_2798;
function openpopup_2798(url){
var popupWidth = 500;
var popupHeight = 740;
var popupTop = 150;
var popupLeft = 200;
var isFullScreen = true;
var isAutoCenter = false;
var popupTarget = "popupwin_2798";
var popupParams = "toolbar=1, scrollbars=1, menubar=1, status=1, resizable=1";

if (isFullScreen) {
	popupParams += ", fullscreen=1";
} else if (isAutoCenter) {
	popupTop	= parseInt((window.screen.height - popupHeight)/2);
	popupLeft	= parseInt((window.screen.width - popupWidth)/2);
}

var ua = window.navigator.userAgent;
var isMac = (ua.indexOf("Mac") > -1);

//IE 5.1 PR on OSX 10.0.x does not support relative URLs in pop-ups the way they're handled below w/ document.writeln
if (isMac && url.indexOf("http") != 0) {
  url = location.href.substring(0,location.href.lastIndexOf('\/')) + "/" + url;
}

var isOpera = (ua.indexOf("Opera") > -1);
var operaVersion;
if (isOpera) {
	var i = ua.indexOf("Opera");
	operaVersion = parseFloat(ua.substring(i + 6, ua.indexOf(" ", i + 8)));
	if (operaVersion > 7.00) {
		var isAccessible = false;
		eval("try { isAccessible = ( (hwndPopup_2798 != null) && !hwndPopup_2798.closed ); } catch(exc) { } ");
		if (!isAccessible) {
			hwndPopup_2798 = null;
		}
	}
}
if ( (hwndPopup_2798 == null) || hwndPopup_2798.closed ) {
	
	if (isOpera && (operaVersion < 7)) {
		if (url.indexOf("http") != 0) {
			hwndPopup_2798 = window.open(url,popupTarget,popupParams + ((!isFullScreen) ? ", width=" + popupWidth +", height=" + popupHeight : ""));
			if (!isFullScreen) {
				hwndPopup_2798.moveTo(popupLeft, popupTop);
			}
			hwndPopup_2798.focus();
			return;
		}
	}
	if (!(window.navigator.appName == "Netscape" && !document.getElementById)) {
		//not ns4
		popupParams += ", width=" + popupWidth +", height=" + popupHeight + ", left=" + popupLeft + ", top=" + popupTop;
	} else {
		popupParams += ", left=" + popupLeft + ", top=" + popupTop;
	}
	//alert(popupParams);
	hwndPopup_2798 = window.open("",popupTarget,popupParams);
	if (!isFullScreen) {
		hwndPopup_2798.resizeTo(popupWidth, popupHeight);
		hwndPopup_2798.moveTo(popupLeft, popupTop);
	}
	hwndPopup_2798.focus();
	with (hwndPopup_2798.document) {
		open();
		write("<ht"+"ml><he"+"ad></he"+"ad><bo"+"dy onLoad=\"window.location.href='" + url + "'\"></bo"+"dy></ht"+"ml>");
		close();
	}
} else {
	if (isOpera && (operaVersion > 7.00)) {
		eval("try { hwndPopup_2798.focus();	hwndPopup_2798.location.href = url; } catch(exc) { hwndPopup_2798 = window.open(\""+ url +"\",\"" + popupTarget +"\",\""+ popupParams + ", width=" + popupWidth +", height=" + popupHeight +"\"); } ");
	} else {
		hwndPopup_2798.focus();
		hwndPopup_2798.location.href = url;
	}
}

}

var hwndPopup_30b4;
function openpopup_30b4(url){
var popupWidth = 613;
var popupHeight = 670;
var popupTop = 300;
var popupLeft = 300;
var isFullScreen = false;
var isAutoCenter = true;
var popupTarget = "popupwin_30b4";
var popupParams = "toolbar=0, scrollbars=0, menubar=0, status=0, resizable=0";

if (isFullScreen) {
	popupParams += ", fullscreen=1";
} else if (isAutoCenter) {
	popupTop	= parseInt((window.screen.height - popupHeight)/2);
	popupLeft	= parseInt((window.screen.width - popupWidth)/2);
}

var ua = window.navigator.userAgent;
var isMac = (ua.indexOf("Mac") > -1);

//IE 5.1 PR on OSX 10.0.x does not support relative URLs in pop-ups the way they're handled below w/ document.writeln
if (isMac && url.indexOf("http") != 0) {
  url = location.href.substring(0,location.href.lastIndexOf('\/')) + "/" + url;
}

var isOpera = (ua.indexOf("Opera") > -1);
var operaVersion;
if (isOpera) {
	var i = ua.indexOf("Opera");
	operaVersion = parseFloat(ua.substring(i + 6, ua.indexOf(" ", i + 8)));
	if (operaVersion > 7.00) {
		var isAccessible = false;
		eval("try { isAccessible = ( (hwndPopup_30b4 != null) && !hwndPopup_30b4.closed ); } catch(exc) { } ");
		if (!isAccessible) {
			hwndPopup_30b4 = null;
		}
	}
}
if ( (hwndPopup_30b4 == null) || hwndPopup_30b4.closed ) {
	
	if (isOpera && (operaVersion < 7)) {
		if (url.indexOf("http") != 0) {
			hwndPopup_30b4 = window.open(url,popupTarget,popupParams + ((!isFullScreen) ? ", width=" + popupWidth +", height=" + popupHeight : ""));
			if (!isFullScreen) {
				hwndPopup_30b4.moveTo(popupLeft, popupTop);
			}
			hwndPopup_30b4.focus();
			return;
		}
	}
	if (!(window.navigator.appName == "Netscape" && !document.getElementById)) {
		//not ns4
		popupParams += ", width=" + popupWidth +", height=" + popupHeight + ", left=" + popupLeft + ", top=" + popupTop;
	} else {
		popupParams += ", left=" + popupLeft + ", top=" + popupTop;
	}
	//alert(popupParams);
	hwndPopup_30b4 = window.open("",popupTarget,popupParams);
	if (!isFullScreen) {
		hwndPopup_30b4.resizeTo(popupWidth, popupHeight);
		hwndPopup_30b4.moveTo(popupLeft, popupTop);
	}
	hwndPopup_30b4.focus();
	with (hwndPopup_30b4.document) {
		open();
		write("<ht"+"ml><he"+"ad></he"+"ad><bo"+"dy onLoad=\"window.location.href='" + url + "'\"></bo"+"dy></ht"+"ml>");
		close();
	}
} else {
	if (isOpera && (operaVersion > 7.00)) {
		eval("try { hwndPopup_30b4.focus();	hwndPopup_30b4.location.href = url; } catch(exc) { hwndPopup_30b4 = window.open(\""+ url +"\",\"" + popupTarget +"\",\""+ popupParams + ", width=" + popupWidth +", height=" + popupHeight +"\"); } ");
	} else {
		hwndPopup_30b4.focus();
		hwndPopup_30b4.location.href = url;
	}
}

}


