function MM_openBrWindow(theURL,winName,features,l,h) { //v2.0

 features=features + ",width="+l+",height="+h;
 if (screen.height) {
  var top = (screen.height-h)/2; 
  var left=(screen.width-l)/2;
  features=features+",top="+top+",left="+left;
 }
 window.open(theURL,winName,features );
}


function checkTextObj(textobj, minlen) {
	var str = new String(textobj.value);
	if (textobj.name.indexOf("_email") >= 0) {
		if ((str.indexOf("@") < 1) || (str.indexOf(".") < str.lastIndexOf("@"))) return (-2);
	}
	if (str.length < minlen) return (-1);
	return 0;
}

function checkUserData(MyForm) {
	err = checkTextObj(MyForm.nachricht, 1);
	if (err < 0) { 
		alert("Didn't you forget to write in your message?");
		MyForm.nachricht.focus();
		return false;
		}
	err = checkTextObj(MyForm.vname, 1);
	if (err < 0) { 
   		alert("It would be nice to know your name...");
		MyForm.vname.focus();
		return false;
		} 
		
	err = checkTextObj(MyForm.email, 6);
	if (err < 0) { 
		alert("Are you sure, that's your e-mail address?");
		MyForm.value = "Anonymous"; 
		MyForm.email.focus();
		return false;
		}
}
