function openPOP(url,name,features) {
  window.open(url,name,features);
}
function download(username){
	var popupURL = "http://www.eden-soft.de/password/login.php?benname="+username;
	var h='250';
	var w='350';
	var Fenstertitel='Login';
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;

	settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=NO,resizable=NO'
	Fenster = window.open(popupURL,Fenstertitel,settings)
	Fenster.focus();
}
function openPictureWindow_Fever(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop) {  // v4.01
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><head><title>'+alt+'<\/title><style type=\"text/css\"><!--@import url(\"global.css\");--><\/style><\/head><body>'); 
	if (imageType == "swf"){
		newWindow.document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
		newWindow.document.write('<param name=movie value=\"'+imageName+'\"><param name=quality value=high>');
		newWindow.document.write('<embed src=\"'+imageName+'\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
		newWindow.document.write('<\/embed><\/object>');	
	}else{
		newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\" title=\"'+alt+'\" onclick="self.close();" \/>'); 	
	}
	newWindow.document.write('<\/body><\/html>');
	newWindow.document.close();
	newWindow.focus();
}

function formfocus(){
	if(document.getElementById('loginform') && document.getElementById('loginform').benpass){
		document.getElementById('loginform').benpass.focus();
	}
}


