Step 1: Add the following code to the
<Script language = "JavaScript">
<! -- Begin
Function Encrypt (theText ){
Output = new String;
Temp = new Array ();
Temp2 = new Array ();
TextSize = theText. length;
For (I = 0; I <TextSize; I ++ ){
Rnd = Math. round (Math. random () * 122) + 68;
Temp [I] = theText. charCodeAt (I) + rnd;
Temp2 [I] = rnd;
}
For (I = 0; I <TextSize; I ++ ){
Output + = String. fromCharCode (Temp [I], Temp2 [I]);
}
Return output;
}
Function unEncrypt (theText ){
Output = new String;
Temp = new Array ();
Temp2 = new Array ();
TextSize = theText. length;
For (I = 0; I <TextSize; I ++ ){
Temp [I] = theText. charCodeAt (I );
Temp2 [I] = theText. charCodeAt (I + 1 );
}
For (I = 0; I <TextSize; I = I + 2 ){
Output + = String. fromCharCode (Temp [I]-Temp2 [I]);
}
Return output;
}
// End -->
</Script>
Step 2: Add the following code to the <body> area.
<Center>
<Form name = encform onsubmit = "return false;">
<Textarea name = box1 rows = 5 cols = 50> Typhoon Start JavaScript Fairyland