function winOpen(url, name, breite, hoehe) {
  
  // Errechnet Koordinaten, um das Popup zentriert zu platzieren
  var links = (screen.width/2)-(breite/2);
  var oben = (screen.height/2)-(hoehe/2);
  
  splashWin =  window.open(url, 'x',"height="+hoehe+",width="+breite+",'fullscreen=0,toolbar=1,location=0, directories=0,status=0,menubar=0,scrollbars=yes,resizable=0',top ="+oben+",left ="+links);
   
  splashWin.blur();
  window.focus();
   
  splashWin.focus();
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function selectLanguage(lang) {

  var callback = {
    success : function(o) {
	  YAHOO.psc.welcome.hide();
	  javascript:location.reload();
    },
    failure : function(o) {
	  alert(o.responseText);
    }
  }

  YAHOO.util.Connect.asyncRequest('GET', 'change_lang.php?lang='+lang+'', callback);
}

/** Loads the scriptName and postData into it, while running script waiting is displayed */
SAVEDATA = {

	frame : function(c) {

		var n = 'f' + Math.floor(Math.random() * 99999);
		var d = document.createElement('DIV');
		d.innerHTML = '<iframe style="display:none" src="about:blank" id="'+n+'" name="'+n+'" onload="SAVEDATA.loaded(\''+n+'\')"></iframe>';
		document.body.appendChild(d);

		var i = document.getElementById(n);
		if (c && typeof(c.onComplete) == 'function') {
			i.onComplete = c.onComplete;
		}

		return n;
	},

	form : function(f, name) {
		f.setAttribute('target', name);
	},

	submit : function(f, c) {
		SAVEDATA.form(f, SAVEDATA.frame(c));
		if (c && typeof(c.onStart) == 'function') {
			return c.onStart();
		} else {
			return true;
		}
	},

	loaded : function(id) {
		var i = document.getElementById(id);
		if (i.contentDocument) {
			var d = i.contentDocument;
		} else if (i.contentWindow) {
			var d = i.contentWindow.document;
		} else {
			var d = window.frames[id].document;
		}
		if (d.location.href == "about:blank") {
			return;
		}

		if (typeof(i.onComplete) == 'function') {
			i.onComplete(d.body.innerHTML);
		}
	}
}