<?xml    version="1.0"   encoding="UTF-8" ?><Module><ModulePrefs title="Morse Translator" title_url="http://atat.ro/" category="tools" category2="funandgames" description="Have secrets to share with someone? Try the morse code. Though is very old they are not too many people who can translate it. Besides, it makes you look cool :D" author="Portal Romanesc" author_email="portal.romanesc@gmail.com" screenshot="http://portal.romanesc.googlepages.com/morse-translator.png" thumbnail="http://portal.romanesc.googlepages.com/morse-translator.png" author_location="GR" author_affiliation="PortalRomanesc" author_photo="http://portal.romanesc.googlepages.com/sumotv.gif" author_aboutme="I just love building gadgets"  author_link="http://portal.romanesc.googlepages.com/home" author_quote="Never argue with an idiot. They'll bring you down to their level, then beat you with experience"  height="220"  width="245"></ModulePrefs><!-- --><Content type="html"><![CDATA[<SCRIPT LANGUAGE="JavaScript">

function translate(form) {
letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ .,?:-!";
morse = new Array(
".-","-...","-.-.","-..",".","..-.",
"--.","....","..",".---","-.-",".-..",
"--","-.","---",".--.","--.-",".-.",
"...","-","..-","...-",".--","-..-",
"-.--","--..",".-","-...","-.-.","-..",
".","..-.","--.","....","..",".---",
"-.-",".-..","--","-.","---",".--.",
"--.-",".-.","...","-","..-","...-",
".--","-..-","-.--","--.."," ",".-.-.-",
"--..--","..--..","---...","-....-","!");

form.output.value = "";
var input = form.input.value;
output = "";
for(count = 0; count < input.length; count++) {
daChar = input.charAt(count);
for (i = 0; i < letters.length; i++) {
if (daChar == letters.charAt(i)) {
output += morse[i];
break;
 }
 }
}
form.output.value = output;
}
</script>

<center>
<form>
<table>
<tr>
<td align=center>
<textarea onclick="this.value='';" name=input cols=25 rows=3 wrap=physical>Type your phrase here then click the Translate button!</textarea>
</td>
</tr>
<tr>
<td align=center>
<iframe name="explain" src="http://atat.ro/about.html" marginwidth="0" marginheight="0" height="60" width="234" title="Portal" scrolling="no" border="0" frameborder="0"></iframe>
</td>
</tr>
<tr>
<td align=center>
<textarea name=output cols=25 rows=3 wrap=physical></textarea><br />
<font size="2">
<a target="_blank" href="http://gadget-blog.ro/" style="text-decoration: none; font-weight: 700">
COOL GADGETS</a></font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type=button value="Translate!" onClick="javascript:translate(this.form)"></td>
</tr>
</table>
</form>
</center>

]]></Content></Module>







