1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
---|
2 | |
---|
3 | <html> |
---|
4 | <head> |
---|
5 | <title>EMAIL ENCRYPTION</title> |
---|
6 | <!--// <script src='scripts/kummercrypt.js' type='text/javascript'></script> //--> |
---|
7 | <script type="text/javascript" src="ckeditor/ckeditor.js"></script> |
---|
8 | <script type='text/javascript'> |
---|
9 | <!-- |
---|
10 | |
---|
11 | |
---|
12 | function CryptMailto() |
---|
13 | { |
---|
14 | var n = 0; |
---|
15 | var r = ""; |
---|
16 | var s = "mailto:"+document.forms[0].email.value; |
---|
17 | var e = document.forms[0].email.value; |
---|
18 | |
---|
19 | e = e.replace( /@/, " [at] "); |
---|
20 | e = e.replace( /\./g, " [dot] "); |
---|
21 | |
---|
22 | for( var i=0; i < s.length; i++ ) |
---|
23 | { |
---|
24 | n = s.charCodeAt( i ); |
---|
25 | if( n >= 8364 ) |
---|
26 | { |
---|
27 | n = 128; |
---|
28 | } |
---|
29 | r += String.fromCharCode(n+1); |
---|
30 | } |
---|
31 | document.forms[0].cyptedEmailField.value = r; |
---|
32 | document.forms[0].HTMLCyptedEmailField.value = "<a href=\"javascript:linkTo_UnCryptMailto('"+ r +"');\">"+ e +"</a>"; |
---|
33 | document.forms[0].modified.value = "javascript:linkTo_UnCryptMailto('"+ r +"');"; |
---|
34 | } |
---|
35 | |
---|
36 | function UnCryptMailto( s ) |
---|
37 | { |
---|
38 | var n = 0; |
---|
39 | var r = ""; |
---|
40 | for( var i = 0; i < s.length; i++) |
---|
41 | { |
---|
42 | n = s.charCodeAt( i ); |
---|
43 | if( n >= 8364 ) |
---|
44 | { |
---|
45 | n = 128; |
---|
46 | } |
---|
47 | r += String.fromCharCode( n - 1 ); |
---|
48 | } |
---|
49 | return r; |
---|
50 | } |
---|
51 | |
---|
52 | function linkTo_UnCryptMailto( s ) |
---|
53 | { |
---|
54 | location.href=UnCryptMailto( s ); |
---|
55 | } |
---|
56 | // --> |
---|
57 | </script> |
---|
58 | </head> |
---|
59 | <body> |
---|
60 | <div style='float: left; margin: 0 3% 0 0 ; padding: 10px; width: 60%; border: 1px solid #333; '> |
---|
61 | <form id='testform' action='' method='post'> |
---|
62 | <div>Enter Email:<br /><input id='email' type='text' name='email' size='40' maxlength='64' /></div> |
---|
63 | <div><input type='hidden' name='cyptedEmailField' /></div> |
---|
64 | <div><textarea class='ckeditor' id='newsletter' name='newsletter'></textarea></div> |
---|
65 | <div><label class='inlabel'> </label><input type='submit' id='save' name='save' value='Save' onclick='CryptMailto()' /></div> |
---|
66 | </form> |
---|
67 | </div> |
---|
68 | <!--// |
---|
69 | <fieldset> |
---|
70 | <form name='kummer' action='#' method='post'> |
---|
71 | |
---|
72 | <p class='pnorm'><label for='email'>Enter your email address:</label><br /> |
---|
73 | <input id='email' type="text" name="email" size="40" maxlength="64" /></p> |
---|
74 | <p><input type="button" name="ecrypt" value="Crypt eMail Address" onclick="CryptMailto()" /> | <input type='reset' name='reset' value='reset' /></p> |
---|
75 | |
---|
76 | <p>your encrypted eMail:<br /> |
---|
77 | <input type="text" name="cyptedEmailField" size="40" maxlength="255" /></p> |
---|
78 | |
---|
79 | <p style='font-size: 80%;'>ORIGINAL CODE (needs to go into source):<br /> |
---|
80 | <textarea name="HTMLCyptedEmailField" cols="30" rows="4"></textarea></p> |
---|
81 | |
---|
82 | <p style='font-size: 80%;'>Copy into editor:<br /> |
---|
83 | <textarea name="modified" cols="30" rows="4"></textarea></p> |
---|
84 | |
---|
85 | </form> |
---|
86 | </fieldset> |
---|
87 | </div> |
---|
88 | <div style='float: left; width: 50%;'><form id='testform' action='' method='post'> |
---|
89 | <div><textarea class='ckeditor' id='newsletter' name='newsletter'></textarea></div> |
---|
90 | <div><label class='inlabel'> </label><input type='submit' id='save' name='save' value='Save' /></div> |
---|
91 | </form> |
---|
92 | </div> |
---|
93 | //--> |
---|
94 | </body> |
---|
95 | </html> |
---|