function chkFormular(url) {
	var s = 0;
		if(document.Formular.pseudonym.value == "") {
		   	alert("&iexcl;Por favor, elija un nombre de usuario!");
		} else {
			window.open(url + document.Formular.pseudonym.value,'nickcheck','width=280,height=150,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbars=no');
	}
}

function chkMail (email) {

	/*	verbotene nicks	*/

	var mengenick = 14;
	var nick_bad = new Array(14);

	nick_bad[0] = 'joder'; 
	nick_bad[1] = 'puta'; 
	nick_bad[2] = 'zorra'; 
	nick_bad[3] = 'cabr&oacute;n'; 
	nick_bad[4] = 'polla'; 
	nick_bad[5] = 'co&ntilde;o'; 
	nick_bad[6] = 'conejo'; 
	nick_bad[7] = 'chocho'; 
	nick_bad[8] = 'pene'; 
	nick_bad[9] = 'pirola'; 
	nick_bad[10] = 'follar'; 
	nick_bad[11] = 'vulva'; 
	nick_bad[12] = 'first-affair'; 
	nick_bad[13] = 'firstaffair'; 
	nick_bad[14] = 'first_affair'; 


	var menge = 57;
	var domain_wrong = new Array(57);
	var domain_right = new Array(57);
	var domain_status = new Array(57);

	/*	falsche domain			'xxx' = richtige, '' = löschen		warnung = 1 , verbot  = 0 */

	domain_wrong[0] = 'aol.net'; 	domain_right[0] = 'aol.com'; 	domain_status[0] = 1;
	
	domain_wrong[1] = 'spamgourmet.com'; 	domain_right[1] = ''; 	domain_status[1] = 0;

	domain_wrong[2] = 't-oneline.de'; 	domain_right[2] = 't-online.de'; 	domain_status[2] = 0;
	domain_wrong[3] = 'tonline.de'; 	domain_right[3] = 't-online.de'; 	domain_status[3] = 0;
	domain_wrong[4] = 't.online.de'; 	domain_right[4] = 't-online.de'; 	domain_status[4] = 0;
	domain_wrong[5] = 'tonlein.de'; 	domain_right[5] = 't-online.de'; 	domain_status[5] = 0;
	domain_wrong[6] = 't-onlein.de'; 	domain_right[6] = 't-online.de'; 	domain_status[6] = 0;
	domain_wrong[7] = 't-online.com'; 	domain_right[7] = 't-online.de'; 	domain_status[7] = 1;
	domain_wrong[8] = 't-online.net'; 	domain_right[8] = 't-online.de'; 	domain_status[8] = 1;
	domain_wrong[9] = 't-onlin.de'; 	domain_right[9] = 't-online.de'; 	domain_status[9] = 0;
	domain_wrong[10] = 'Te-Online.de'; 	domain_right[10] = 't-online.de'; 	domain_status[10] = 0;
	domain_wrong[11] = 't-omline.de'; 	domain_right[11] = 't-online.de'; 	domain_status[11] = 0;
	domain_wrong[12] = 't-unline.de'; 	domain_right[12] = 't-online.de'; 	domain_status[12] = 0;

	domain_wrong[13] = 'firstaffair.de'; 	domain_right[13] = ''; 	domain_status[13] = 0;
	domain_wrong[14] = 'firstaffair.at'; 	domain_right[14] = ''; 	domain_status[14] = 0;
	domain_wrong[15] = 'firstaffair.ch'; 	domain_right[15] = ''; 	domain_status[15] = 0;
	domain_wrong[16] = 'firstaffair.com'; 	domain_right[16] = ''; 	domain_status[16] = 0;
	domain_wrong[17] = 'firstaffair.net'; 	domain_right[17] = ''; 	domain_status[17] = 0;
	domain_wrong[18] = 'first-affair.de'; 	domain_right[18] = ''; 	domain_status[18] = 0;
	domain_wrong[19] = 'first-affair.de'; 	domain_right[19] = ''; 	domain_status[19] = 0;
	domain_wrong[20] = 'first-affair.at'; 	domain_right[20] = ''; 	domain_status[20] = 0;
	domain_wrong[21] = 'first-affair.ch'; 	domain_right[21] = ''; 	domain_status[21] = 0;
	domain_wrong[22] = 'first-affair.com'; 	domain_right[22] = ''; 	domain_status[22] = 0;
	domain_wrong[23] = 'first-affair.net'; 	domain_right[23] = ''; 	domain_status[23] = 0;

	domain_wrong[24] = 'partnerschaft.de'; 	domain_right[24] = ''; 	domain_status[24] = 0;
	domain_wrong[25] = 'beziehung.de'; 	domain_right[25] = ''; 	domain_status[25] = 0;

	domain_wrong[27] = 'jahoo.de';	domain_right[27] = 'yahoo.de'; 	domain_status[27] = 0;
	domain_wrong[28] = 'yhoo.de';	domain_right[28] = 'yahoo.de'; 	domain_status[28] = 1;
	domain_wrong[29] = 'yajoo.de';	domain_right[29] = 'yahoo.de'; 	domain_status[29] = 1;
	domain_wrong[30] = 'yahooo.de';	domain_right[30] = 'yahoo.de'; 	domain_status[30] = 1;
	domain_wrong[31] = 'jahoo.com';	domain_right[31] = 'yahoo.com'; 	domain_status[31] = 1;
	domain_wrong[32] = 'yhoo.com';	domain_right[32] = 'yahoo.com'; 	domain_status[32] = 1;
	domain_wrong[33] = 'yajoo.com';	domain_right[33] = 'yahoo.com'; 	domain_status[33] = 1;
	domain_wrong[34] = 'yahooo.com';	domain_right[34] = 'yahoo.com'; 	domain_status[34] = 0;

	domain_wrong[35] = 'reenet.de';	domain_right[35] = 'freenet.de';	domain_status[35] = 1;
	domain_wrong[36] = 'feenet.de';	domain_right[36] = 'freenet.de'; 	domain_status[36] = 0;
	domain_wrong[37] = 'freeet.de';	domain_right[37] = 'freenet.de'; 	domain_status[37] = 0;
	domain_wrong[38] = 'freeent.de';	domain_right[38] = 'freenet.de'; 	domain_status[38] =0;
	domain_wrong[39] = 'frennet.de';	domain_right[39] = 'freenet.de'; 	domain_status[39] = 1;
	domain_wrong[40] = 'freent.de';	domain_right[40] = 'freenet.de'; 	domain_status[40] = 0;
	domain_wrong[41] = 'freneet.de';	domain_right[41] = 'freenet.de'; 	domain_status[41] = 1;
	domain_wrong[42] = 'freenet.com';	domain_right[42] = 'freenet.de'; 	domain_status[42] = 1;
	domain_wrong[43] = 'freenet.net';	domain_right[43] = 'freenet.de'; 	domain_status[43] = 1;

	domain_wrong[44] = 'lysco.de';	domain_right[44] = 'lycos.de'; 	domain_status[44] = 1;
	domain_wrong[45] = 'lyocs.de';	domain_right[45] = 'lycos.de'; 	domain_status[45] = 0;
	domain_wrong[46] = 'lycost.de';	domain_right[46] = 'lycos.de'; 	domain_status[46] = 0;
	domain_wrong[47] = 'lycros.de';	domain_right[47] = 'lycos.de'; 	domain_status[47] = 0;

	domain_wrong[48] = 'Uboot.de';	domain_right[48] = 'uboot.com';	domain_status[48] = 1;
	domain_wrong[49] = 'u-boot.com';		domain_right[49] = 'uboot.com';	domain_status[49] = 	1;
	domain_wrong[50] = 'u-boot.de';	domain_right[50] = 'uboot.com';	domain_status[50] = 	1;
	domain_wrong[51] = 'oboot.com';	domain_right[51] = 'uboot.com';	domain_status[51] = 	1;

	domain_wrong[52] = 'acor.de';	domain_right[52] = 'arcor.de'; domain_status[52] = 1;
	domain_wrong[53] = 'e-post.de';	domain_right[53] = 'epost.de'; domain_status[53] = 1;
	domain_wrong[54] = 'wep.de';	domain_right[54] = 'web.de'; domain_status[54] = 1;
	domain_wrong[55] = 'web.com';	domain_right[55] = 'web.de'; domain_status[55] = 1;
	domain_wrong[56] = 'o2.de';	domain_right[56] = 'o2online.de'; domain_status[56] = 0;
	domain_wrong[57] = '02.de';	domain_right[57] = 'o2online.de'; domain_status[57] = 0;


/* --------- check ob input text leer ist --------- */

	if (document.Formular.pseudonym.value == "") {
		alert("&iexcl;Por favor, introduzca un nombre de usuario!");
		return false;
	}

	if (email == "") {
		alert("&iexcl;Por favor, intrduzca su direcci&oacute;n de e-mail!");
		return false;
	}

/* --------- checkt username erlaubt --------- */

	for (i = 0; i <= mengenick; i++) {

		var checkusername = document.Formular.pseudonym.value.toLowerCase(); 
		var Ergebnis = checkusername.search(nick_bad[i]); 

		if(Ergebnis != -1) {
			alert("&iexcl;Este nombre de usuario no est&aacute; permitido!");
			document.Formular.pseudonym.value = '';
			return false;
		}

	}

/* --------- checkt sonderzeichen --------- */

	if (email.indexOf("@") == -1) {
		alert("&iexcl;Esta direcci&oacute;n de e-mail no es v&aacute;lida!");
		return false;
	}

	domain = email.split("@")[1].toLowerCase();
	var Ausdruck = /^([a-z0-9._-]{1,}@([a-z0-9][a-z0-9-]*\.)*[a-z0-9][a-z0-9-]*[a-z0-9]\.([a-z]{2}|info|com|net|biz|org))$/i;

/* --------- allgemeine sub funktionen --------- */

	function FillMail (fill, fill2) {
		document.Formular.email.value = fill;
	}


	if (Ausdruck.exec(email) == null) {
		alert("&iexcl;Su direcci&oacute;n de e-mail contiene caracteres que no son v&aacute;lidos! &iexcl;Por favor, compru&eacute;bela!");
		FillMail (email, email);
		return false;
	}

/* ----------- erweiterte checks ---- */ 

	for (i = 0; i <= menge; i++) {

		if (domain == domain_wrong[i]) {

			if (domain_status[i] == 1) {
				/* warnung */
				newmail = email.split("@")[0] + "@" + domain_right[i];
				if (!confirm("Puede que la direcci&oacute;n de e-mail " +email.split("@")[0] + "@"+ domain_wrong[i] + "no sea v&aacute;lida!\n\n&iquest;Tal vez quiso decir " + newmail + "?\n\n&iexcl;Haga click en \"Anular\" si quiere modificar la direcci&oacute;n de e-mail!\n\nHaga clic en \"Aceptar\" si quiere continuar usando la misma direcci&oacute;n de e-mail!")) {
					FillMail (newmail, '');
					return false;
				} 
			} else {
				/* verbot */
				alert("&iexcl;La direcci&oacute;n de e-mail con el dominio "+ domain_wrong[i] + " no es v&aacute;lida!");

				if (domain_right[i] == '') {
					FillMail ('','');
				} else {				
					newmail = email.split("@")[0] + "@" + domain_right[i];
					FillMail (newmail, '');
				}
				return false;		
			}
		}
	}
}

/* ----------- erweiterte checks ---- */ 

/* ----------- checkt Sonderzeichen ---- */ 
function chkSigns () {
	var checkusername = document.Formular.pseudonym.value.toLowerCase();
	if (!checkusername.match(/^[a-z][a-z0-9-]{3,19}$/)) {
		signnotok = 1;
	} 
}
/* ----------- checkt Sonderzeichen ---- */ 