function popup(w,h,ziel) {
	h = h - 20; var x=0, y=0, parameter="";
		if (w < screen.availWidth || h < screen.availHeight) {
			x = (screen.availWidth - w - 12) / 2;
			y = (screen.availHeight - h - 104) / 2;
	if (window.opera) y = 0;
	if (x<0 || y<0) { x=0; y=0; }
	else parameter = "width=" + w + ",height=" + h + ",";
	}
	parameter += "left=" + x + ",top=" + y;
	parameter += ",menubar=no,location=no,toolbar=no,status=no";
	parameter += ",resizable=no,scrollbars=no";
	var Fenster = window.open(ziel,"popup",parameter);
	if (Fenster) Fenster.focus();
	return !Fenster;
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

MM_reloadPage(true);

function setBlur(id,value){
	path=document.getElementById(id);
	if(id=="user" && value=="") path.value="Benutzername";
	if(id=="pass" && value=="") path.value="xPasswortx";
}

function setFocus(id,value){
	path=document.getElementById(id);
	if(id=="user" && value=="Benutzername") path.value="";
	if(id=="pass" && value=="xPasswortx")path.value="";
}

function newWindow(url,name,width,height,optionen){
	w=window.open(url,name,'width='+width+', height='+height+' '+optionen);
	w.moveTo(30,30);
	w.focus();

	
}
function messageTo(dest){
	set1="mailto:";
	set2="excite-bremen.de";
	window.open (set1+dest+"@"+set2,'_parent');
}
function newLocation(url){
	window.location.href=url;
	}

function wendebuyout(){
	window.open('http://www.excite-bremen.de/data/animation/wende-buyout/index.htm', 'Wende Teaser: BuyOut','toolbar=no,status=no,menubar=no,width=740,height=500');
}


/* onLoad Events ###################################################################### 
window.onload = function(){
	document.getElementById("senden").onmouseover =function(){
		this.style.backgroundImage='url(img/btn_login_over.gif)';this.style.cursor='pointer';	
	}
}
window.onload = function(){
setBlur('user','');setBlur('pass','');
}
*/
