function popOpen(URL,winName,scrollbars,width,height) {
  	window.open(URL,winName,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars="+scrollbars+",resizable=no,copyhistory=no,width="+width+",height="+height);
}

var obj_to_hide=new Array();
var hids=new Array();
Array.prototype.in_array=function(s) {
	for (var i=0; i<this.length; i++) {
		if (s==this[i]) return i;
	}
	return -1;
}

function show(obj) {
	var op=obj_to_hide.in_array(obj);
	if (op != -1) {
		clearTimeout(hids[op]);
		obj_to_hide[op]=false;
	}
	else {
		if (obj.className.indexOf('over') == -1) {
			obj.className+=' over';
		}
	}
}

function hide(obj) {
	obj_to_hide[obj_to_hide.length]=obj;
	hids[hids.length]=setTimeout('exec_hide('+(obj_to_hide.length-1)+')',200);
}

function exec_hide(i) {
	obj_to_hide[i].className=obj_to_hide[i].className.replace(' over', '');
	obj_to_hide[i]=false;
	clearTimeout(hids[i]);
}

function check() {
	var ac=document.therapeuten.action;
	var mail=document.therapeuten.mail.value;
	if (!mail.match("^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@(([0-9a-zA-Z])+([-\w]*[0-9a-zA-Z])*\.)+[a-zA-Z]{2,9})$")) {
		document.therapeuten.action="";
		alert("Die eingegebene E-Mail-Adresse ist ungültig. Bitte korrigieren Sie die Eingabe.");
	}
	else {
		document.therapeuten.action=ac;
		document.therapeuten.submit();
	}
	
}