<HTML>
<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- Verstecken...

function validMaster(option){
	orgText = document.myForm.testText.value;

	if (orgText.length < 1) {
		document.myForm.testText.value = "Bitte tragen Sie etwas ein..."
	}
	else {
		if (option == 1){
			orgText = validKeys(orgText);
		}
		if (option == 2){
			myResult = validMail(orgText);
			if (myResult != "") {
				alert(myResult);
			}
		}
		if (option == 3){
			orgText = validNum(orgText);
		}
		if (option == 4){
			orgText = validHtml(orgText);
		}

		document.myForm.testText.value = orgText;
	}
}


function validKeys(txt) {

replChar  = "#@&*%!#@&*%!#@&*%#@&*%!#@&*%!#@&*%!";
badWord   = "sex babes shit fuck damn ";
srcText   = txt;

	for (var i = 0; i < 5; i++){
		pos      = badWord.indexOf(" ");
		wrd      = badWord.substring(0,pos);
		wrdl     = wrd.length;
		badWord  = badWord.substring(pos+1,badWord.length);
		while (srcText.indexOf(wrd) > -1){
			pos     = srcText.indexOf(wrd);
			srcText = srcText.substring(0,pos) +
replChar.substring(0,wrdl) + srcText.substring((pos+wrdl), srcText.length);
		}
	}

return srcText;
}
..... weitere Funktionen
//-->
</SCRIPT>
<TITLE>c't Text Checker</TITLE>
</HEAD>

<BODY BGCOLOR="#FFFFFF">

<CENTER>
<FORM NAME="myForm">
<B>"Text Checker"</B>
<BR>
Versuchen Sie es einfach...
<BR>
<DIV ALIGN=CENTER>
<INPUT TYPE="text" NAME="testText" SIZE=40 VALUE="">
<BR>
<INPUT TYPE="button" NAME="Test" VALUE=" Submit " onClick="validMaster(4)">
</DIV><P>
</FORM>

</BODY>

