function checkuserdata(x) {
		
			
		
		
		err = checkTextObj(document.form.name, 2);
			if (err < 0) { alert ("Bitte Nachname eingeben!");
					document.form.name.focus(); 
					document.form.name.style.backgroundColor="#dcdcdc";
					return (-1);}
		err = checkTextObj(document.form.email, 6);
			if (err == -1) { alert("Bitte E-Mail-adresse eingeben!");
					document.form.email.focus(); 
					document.form.email.style.backgroundColor="#dcdcdc";
					return (-1);}
	
			if (err == -2) { alert("E-Mailadresse in ungueltigem Format.");
					
					document.form.email.focus(); 
					document.form.email.style.backgroundColor="#dcdcdc";
					//document.form.email.reset();
					return (-1);}
	
	}
	
	

function checkTextObj(textobj, minlen) {
	var str = new String(textobj.value);
	if (textobj.name.indexOf("email") >= 0) {
		 if ((str.indexOf("@") < 1) ) return (-2);
			if (str.indexOf("@") < 1) return (-2);
	}
	
	
	if (str.length < minlen) return (-1);
	return 0;
}

