//Hier wird die Breite des Popups definiert. Da es teilweise Unterschiede bei den Browsern gibt, kann die Breite individuell angepasst werden.  
// z.B. 20px breiter beim IE

var PopupWidth = 425;

if (navigator.userAgent.indexOf("Netscape") != -1) {
	PopupWidth = PopupWidth  ;
	
} else if (navigator.userAgent.indexOf("MSIE") != -1) {
	PopupWidth = PopupWidth - 0 ;
	
} else if (navigator.userAgent.indexOf("Firefox") != -1) {
	PopupWidth = PopupWidth ;
	
} else {
	PopupWidth = PopupWidth;
}

var PopupHeight = 335;

if (navigator.userAgent.indexOf("Netscape") != -1) {
	PopupHeight = PopupHeight  ;
	
} else if (navigator.userAgent.indexOf("MSIE") != -1) {
	PopupHeight = PopupHeight + 25 ;
	
} else if (navigator.userAgent.indexOf("Firefox") != -1) {
	PopupHeight = PopupHeight ;
	
} else {
	PopupHeight = PopupHeight;
}

function newwin2(url) {
	var weite = PopupWidth;
	var hoehe = PopupHeight;
	var links = 50;   //wenns denn zentriert sein soll
	var oben = 50;  //ansonsten einfach zahlen eintragen
	var name = "popup";
	var option1 = 'no';
	var option2 = 'no';
	var option3 = 'no';
	var option4 = 'no';
	var option5 = 'no';
	var option6 = 'no';
	
	win =window.open(url,name,'width='+weite+',height='+hoehe+',left='+links+',top='+oben+',screenX='+links+',screenY='+oben+',location='+option1+',menubar='+option2+',resizable='+option3+',scrollbars='+option4+',status='+option5+',toolbar='+option6);
	win.focus();
}
