var winShowEmail;
var winShowContent;
var strWinName = "eMailWindow";
var strWinName1 = "eMailWindow";

function showEmail(strUrl) {
	strParams = "width=650, height=500, dependent=yes, resizable=yes, hotkeys=no, locationbar=no, menubar=no, status=no, scrollbars=yes";
	
	if (winShowEmail == null || winShowEmail.closed) 
	{
		winShowEmail = open(strUrl,strWinName1,strParams);
	} else
	{
		winShowEmail.location.replace(strUrl);
	}
	
	winShowEmail.focus();
}

function showDCEmail(strUrl) {
	strParams = "width=650, height=650, dependent=yes, resizable=yes, hotkeys=no, locationbar=no, menubar=no, status=no, scrollbars=yes";
	
	if (winShowEmail == null || winShowEmail.closed) 
	{
		winShowEmail = open(strUrl,strWinName1,strParams);
	} else
	{
		winShowEmail.location.replace(strUrl);
	}
	
	winShowEmail.focus();
}

function showContentWindow(strUrl) {
	var strParams = "width=550,height=500,dependent=no,resizable=yes,hotkeys=no,locationbar=no,menubar=no,status=no,scrollbars=yes";
	if(winShowContent == null || winShowContent.closed) winShowContent = open(strUrl,strWinName,strParams);
  else winShowContent.location.replace(strUrl);
	winShowContent.focus();
}




function oeffne_pop_up(url, breite, hoehe, titel) {
		var popup;
		var opts = "width="+breite+",height="+hoehe+",resizable=yes,toolbar=0,hotkeys=no,locationbar=no,menubar=no,status=no,scrollbars=yes";
		if (popup == null || popup.closed) {
    		popup = window.open(url,titel,opts);
		} else {
			popup.location.replace(url,titel);
		}    
	}	


function popup_absolute(url, breite, hoehe, xoff, yoff, titel) {
		var popup;
		var opts = "width="+breite+",height="+hoehe+",left="+xoff+",top="+yoff+",resizable=yes,toolbar=0,hotkeys=no,locationbar=no,menubar=no,status=no,scrollbars=yes";
		if (popup == null || popup.closed) {
    		popup = window.open(url,titel,opts);
		} else {
			popup.location.replace(url,titel);
		}    
	}	

	
function oeffne_pop_up_ohne(url, breite, hoehe, titel) {
		var popup;
		var opts = "width="+breite+",height="+hoehe+",resizable=yes,toolbar=0,hotkeys=no,locationbar=no,menubar=no,status=no,scrollbars=no";
		if (popup == null || popup.closed) {
    		popup = window.open(url,titel,opts);
		} else {
			popup.location.replace(url,titel);
		}    
	}
	
 function popup1(urls,breite,hoehe){
	var popup2;
	var opts="width="+breite+",height="+hoehe+",resizable=no,toolbar=0,hotkeys=no,locationbar=no,menubar=no,status=no,scrollbars=no";
		if (popup2 == null || popup2.closed) {
    	popup2 = window.open(urls,"",opts);
	} 
	else {
		//Vorhandenem Contentfenster neue Url zuweisen
		popup2.location.replace(urls,"");
		}
}	

	
	function popup2(urls,breite,hoehe){
	var popup2;
	var opts="width="+breite+",height="+hoehe+",resizable=yes,toolbar=0,hotkeys=no,locationbar=no,menubar=no,status=no,scrollbars=yes";
		if (popup2 == null || popup2.closed) {
    	popup2 = window.open(urls,"_blank",opts);
	} 
	else {
		//Vorhandenem Contentfenster neue Url zuweisen
		popup2.location.replace(urls,"_blank");
		}
}	