jeg har arbejdet vider med min kode og den se nu sådan her ud:
<html>
<script language="JavaScript">
<!--
function tobever(text)
{
var beverCode = ""
var i=0
var antal = 0
var Ord=new Array("bliver","havde","lidt","se","bort","have","lige","selv","da","hele","lille","sidste","dag","heller","løb","sig","de","hen","man","siger","dem","hende","mange","sin","den","her","med","sine","der","hjem","meget","skal","deres","hun","men","skulle","det","hvad","mere","små","dig","hvem","mig","som","dog","hver","min","stor","et","hvilke","mod","store","far","hvis","må","så","fik","hvor","ned","tid","fin","igen","nej","til","for","ikke","noget","tog","forbi","ind","nok","ud","fordi","jeg","nu","under","fra","jer","når","var","fri","jeres","og","ved","få","jo","også","vi","gik","kan","om","vil","glad","kom","op","ville","godt","kommer","os","være","ham","kun","over","været","hans","kunne","på","år","har","lang","sagde","kode","koder","post","poster","hej");
for (i=0; i<text.length; i++)
{
switch (text.substring(i, i+1))
{
case "a": beverCode += "u"; break;
case "b": beverCode += "å"; break;
case "c": beverCode += "t"; break;
case "d": beverCode += "s"; break;
case "e": beverCode += "y"; break;
case "f": beverCode += "q"; break;
case "g": beverCode += "p"; break;
case "h": beverCode += "o"; break;
case "i": beverCode += "n"; break;
case "j": beverCode += "m"; break;
case "k": beverCode += "l"; break;
case "l": beverCode += "k"; break;
case "m": beverCode += "j"; break;
case "n": beverCode += "i"; break;
case "o": beverCode += "h"; break;
case "p": beverCode += "g"; break;
case "q": beverCode += "f"; break;
case "r": beverCode += "x"; break;
case "s": beverCode += "d"; break;
case "t": beverCode += "c"; break;
case "u": beverCode += "a"; break;
case "v": beverCode += "z"; break;
case "w": beverCode += ""; break;
case "x": beverCode += "r"; break;
case "y": beverCode += "e"; break;
case "z": beverCode += "v"; break;
case "æ": beverCode += "ø"; break;
case "ø": beverCode += "æ"; break;
case "å": beverCode += "b"; break;
case "~": beverCode += "U"; break;
case "B": beverCode += "Å"; break;
case "C": beverCode += "T"; break;
case "D": beverCode += "S"; break;
case "E": beverCode += "Y"; break;
case "F": beverCode += "Q"; break;
case "G": beverCode += "P"; break;
case "H": beverCode += "O"; break;
case "I": beverCode += "N"; break;
case "J": beverCode += "M"; break;
case "K": beverCode += "L"; break;
case "L": beverCode += "K"; break;
case "M": beverCode += "J"; break;
case "N": beverCode += "I"; break;
case "O": beverCode += "H"; break;
case "P": beverCode += "G"; break;
case "Q": beverCode += "F"; break;
case "R": beverCode += "X"; break;
case "S": beverCode += "D"; break;
case "T": beverCode += "C"; break;
case "U": beverCode += "A"; break;
case "V": beverCode += "Z"; break;
case "W": beverCode += ""; break;
case "X": beverCode += "R"; break;
case "Y": beverCode += "E"; break;
case "Z": beverCode += "V"; break;
case "Æ": beverCode += "Ø"; break;
case "Ø": beverCode += "Æ"; break;
case "Å": beverCode += "B"; break;
case "1": beverCode += "1"; break;
case "2": beverCode += "2"; break;
case "3": beverCode += "3"; break;
case "4": beverCode += "4"; break;
case "5": beverCode += "5"; break;
case "6": beverCode += "6"; break;
case "7": beverCode += "7"; break;
case "8": beverCode += "8"; break;
case "9": beverCode += "9"; break;
case "0": beverCode += "0"; break;
case ".": beverCode += "."; break;
case "?": beverCode += "?"; break;
case "!": beverCode += "!"; break;
case ",": beverCode += ","; break;
case "-": beverCode += "-"; break;
case " ": beverCode += " "; break;
default: beverCode += "fejl"; break;
}
}
for(j = 0;j<Ord.length;j++ )
{
for (i=0; i<beverCode.length; i++)
{
if(beverCode.substring(i, i+Ord[j].length) == Ord[j] )
{
antal++
}
}
}
document.beverData.outbeverText1.value = beverCode
document.matchbeverData.outmatchbeverText1.value = antal
}
// -->
</script>
<script language="JavaScript">
<!--
function tobever2(text)
{
var beverCode2 = ""
var i=0
var antal = 0
var Ord=new Array("bliver","havde","lidt","se","bort","have","lige","selv","da","hele","lille","sidste","dag","heller","løb","sig","de","hen","man","siger","dem","hende","mange","sin","den","her","med","sine","der","hjem","meget","skal","deres","hun","men","skulle","det","hvad","mere","små","dig","hvem","mig","som","dog","hver","min","stor","et","hvilke","mod","store","far","hvis","må","så","fik","hvor","ned","tid","fin","igen","nej","til","for","ikke","noget","tog","forbi","ind","nok","ud","fordi","jeg","nu","under","fra","jer","når","var","fri","jeres","og","ved","få","jo","også","vi","gik","kan","om","vil","glad","kom","op","ville","godt","kommer","os","være","ham","kun","over","været","hans","kunne","på","år","har","lang","sagde","kode","koder","post","poster","hej");
for (i=0; i<text.length; i++) {
switch (text.substring(i, i+1)) {
case "a": beverCode2 += "q"; break;
case "b": beverCode2 += "l"; break;
case "c": beverCode2 += "s"; break;
case "d": beverCode2 += "t"; break;
case "e": beverCode2 += "o"; break;
case "f": beverCode2 += "u"; break;
case "g": beverCode2 += "x"; break;
case "h": beverCode2 += "y"; break;
case "i": beverCode2 += "z"; break;
case "j": beverCode2 += "ø"; break;
case "k": beverCode2 += "å"; break;
case "l": beverCode2 += "b"; break;
case "m": beverCode2 += "æ"; break;
case "n": beverCode2 += "v"; break;
case "o": beverCode2 += "e"; break;
case "p": beverCode2 += "r"; break;
case "q": beverCode2 += "a"; break;
case "r": beverCode2 += "p"; break;
case "s": beverCode2 += "c"; break;
case "t": beverCode2 += "d"; break;
case "u": beverCode2 += "f"; break;
case "v": beverCode2 += "n"; break;
case "w": beverCode2 += ""; break;
case "x": beverCode2 += "g"; break;
case "y": beverCode2 += "h"; break;
case "z": beverCode2 += "i"; break;
case "æ": beverCode2 += "m"; break;
case "ø": beverCode2 += "j"; break;
case "å": beverCode2 += "k"; break;
case "A": beverCode2 += "Q"; break;
case "B": beverCode2 += "L"; break;
case "C": beverCode2 += "S"; break;
case "D": beverCode2 += "T"; break;
case "E": beverCode2 += "O"; break;
case "F": beverCode2 += "U"; break;
case "G": beverCode2 += "X"; break;
case "H": beverCode2 += "Y"; break;
case "I": beverCode2 += "Z"; break;
case "J": beverCode2 += "Ø"; break;
case "K": beverCode2 += "Å"; break;
case "L": beverCode2 += "B"; break;
case "M": beverCode2 += "Æ"; break;
case "N": beverCode2 += "V"; break;
case "O": beverCode2 += "E"; break;
case "P": beverCode2 += "R"; break;
case "Q": beverCode2 += "A"; break;
case "R": beverCode2 += "P"; break;
case "S": beverCode2 += "C"; break;
case "T": beverCode2 += "D"; break;
case "U": beverCode2 += "F"; break;
case "V": beverCode2 += "N"; break;
case "W": beverCode2 += ""; break;
case "X": beverCode2 += "G"; break;
case "Y": beverCode2 += "H"; break;
case "Z": beverCode2 += "I"; break;
case "Æ": beverCode2 += "M"; break;
case "Ø": beverCode2 += "J"; break;
case "Å": beverCode2 += "K"; break;
case "1": beverCode2 += "1"; break;
case "2": beverCode2 += "2"; break;
case "3": beverCode2 += "3"; break;
case "4": beverCode2 += "4"; break;
case "5": beverCode2 += "5"; break;
case "6": beverCode2 += "6"; break;
case "7": beverCode2 += "7"; break;
case "8": beverCode2 += "8"; break;
case "9": beverCode2 += "9"; break;
case "0": beverCode2 += "0"; break;
case ".": beverCode2 += "."; break;
case "?": beverCode2 += "?"; break;
case "!": beverCode2 += "!"; break;
case ",": beverCode2 += ","; break;
case "-": beverCode2 += "-"; break;
case " ": beverCode2 += " "; break;
default: beverCode2 += "fejl"; break;
}
}
for(j = 0;j<Ord.length;j++ )
{
for (i=0; i<beverCode2.length; i++)
{
if(beverCode2.substring(i, i+Ord[j].length) == Ord[j] )
{
antal++
}
}
}
document.beverData2.outbeverText2.value = beverCode2
document.matchbeverData2.outmatchbeverText2.value = antal
}
// -->
</script>
<script language="JavaScript">
<!--
function toulve(text)
{
var ulveCode = ""
var i=0
var antal = 0
var Ord=new Array("bliver","havde","lidt","se","bort","have","lige","selv","da","hele","lille","sidste","dag","heller","løb","sig","de","hen","man","siger","dem","hende","mange","sin","den","her","med","sine","der","hjem","meget","skal","deres","hun","men","skulle","det","hvad","mere","små","dig","hvem","mig","som","dog","hver","min","stor","et","hvilke","mod","store","far","hvis","må","så","fik","hvor","ned","tid","fin","igen","nej","til","for","ikke","noget","tog","forbi","ind","nok","ud","fordi","jeg","nu","under","fra","jer","når","var","fri","jeres","og","ved","få","jo","også","vi","gik","kan","om","vil","glad","kom","op","ville","godt","kommer","os","være","ham","kun","over","været","hans","kunne","på","år","har","lang","sagde","kode","koder","post","poster","hej");
for (i=0; i<text.length; i++) {
switch (text.substring(i, i+1)) {
case "a": ulveCode += "y"; break;
case "b": ulveCode += "x"; break;
case "c": ulveCode += "t"; break;
case "d": ulveCode += "s"; break;
case "e": ulveCode += "z"; break;
case "f": ulveCode += "r"; break;
case "g": ulveCode += "q"; break;
case "h": ulveCode += "p"; break;
case "i": ulveCode += "o"; break;
case "j": ulveCode += "n"; break;
case "k": ulveCode += "m"; break;
case "l": ulveCode += "ø"; break;
case "m": ulveCode += "k"; break;
case "n": ulveCode += "j"; break;
case "o": ulveCode += "i"; break;
case "p": ulveCode += "h"; break;
case "q": ulveCode += "g"; break;
case "r": ulveCode += "f"; break;
case "s": ulveCode += "d"; break;
case "t": ulveCode += "c"; break;
case "u": ulveCode += "å"; break;
case "v": ulveCode += "æ"; break;
case "w": ulveCode += ""; break;
case "x": ulveCode += "b"; break;
case "y": ulveCode += "a"; break;
case "z": ulveCode += "e"; break;
case "æ": ulveCode += "v"; break;
case "ø": ulveCode += "l"; break;
case "å": ulveCode += "u"; break;
case "A": ulveCode += "Y"; break;
case "B": ulveCode += "X"; break;
case "C": ulveCode += "T"; break;
case "D": ulveCode += "S"; break;
case "E": ulveCode += "Z"; break;
case "F": ulveCode += "R"; break;
case "G": ulveCode += "Q"; break;
case "H": ulveCode += "P"; break;
case "I": ulveCode += "O"; break;
case "J": ulveCode += "N"; break;
case "K": ulveCode += "M"; break;
case "L": ulveCode += "Ø"; break;
case "M": ulveCode += "K"; break;
case "N": ulveCode += "J"; break;
case "O": ulveCode += "I"; break;
case "P": ulveCode += "H"; break;
case "Q": ulveCode += "G"; break;
case "R": ulveCode += "F"; break;
case "S": ulveCode += "D"; break;
case "T": ulveCode += "C"; break;
case "U": ulveCode += "Å"; break;
case "V": ulveCode += "Æ"; break;
case "W": ulveCode += ""; break;
case "X": ulveCode += "B"; break;
case "Y": ulveCode += "A"; break;
case "Z": ulveCode += "E"; break;
case "Æ": ulveCode += "V"; break;
case "Ø": ulveCode += "L"; break;
case "Å": ulveCode += "U"; break;
case "1": ulveCode += "1"; break;
case "2": ulveCode += "2"; break;
case "3": ulveCode += "3"; break;
case "4": ulveCode += "4"; break;
case "5": ulveCode += "5"; break;
case "6": ulveCode += "6"; break;
case "7": ulveCode += "7"; break;
case "8": ulveCode += "8"; break;
case "9": ulveCode += "9"; break;
case "0": ulveCode += "0"; break;
case ".": ulveCode += "."; break;
case "?": ulveCode += "?"; break;
case "!": ulveCode += "!"; break;
case ",": ulveCode += ","; break;
case "-": ulveCode += "-"; break;
case " ": ulveCode += " "; break;
default: ulveCode += "fejl"; break;
}
}
for(j = 0;j<Ord.length;j++ )
{
for (i=0; i<ulveCode.length; i++)
{
if(ulveCode.substring(i, i+Ord[j].length) == Ord[j] )
{
antal++
}
}
}
document.ulveData.outulveText.value = ulveCode
document.matchulveData.outmatchulveText.value = antal
}
// -->
</script>
<script language="JavaScript">
<!--
function toulve2(text)
{
var ulveCode2 = ""
var i=0
var antal = 0
var Ord=new Array("bliver","havde","lidt","se","bort","have","lige","selv","da","hele","lille","sidste","dag","heller","løb","sig","de","hen","man","siger","dem","hende","mange","sin","den","her","med","sine","der","hjem","meget","skal","deres","hun","men","skulle","det","hvad","mere","små","dig","hvem","mig","som","dog","hver","min","stor","et","hvilke","mod","store","far","hvis","må","så","fik","hvor","ned","tid","fin","igen","nej","til","for","ikke","noget","tog","forbi","ind","nok","ud","fordi","jeg","nu","under","fra","jer","når","var","fri","jeres","og","ved","få","jo","også","vi","gik","kan","om","vil","glad","kom","op","ville","godt","kommer","os","være","ham","kun","over","været","hans","kunne","på","år","har","lang","sagde","kode","koder","post","poster","hej");
for (i=0; i<text.length; i++) {
switch (text.substring(i, i+1)) {
case "a": ulveCode2 += "q"; break;
case "b": ulveCode2 += "r"; break;
case "c": ulveCode2 += "s"; break;
case "d": ulveCode2 += "t"; break;
case "e": ulveCode2 += "p"; break;
case "f": ulveCode2 += "x"; break;
case "g": ulveCode2 += "y"; break;
case "h": ulveCode2 += "z"; break;
case "i": ulveCode2 += "æ"; break;
case "j": ulveCode2 += "ø"; break;
case "k": ulveCode2 += "å"; break;
case "l": ulveCode2 += "n"; break;
case "m": ulveCode2 += "u"; break;
case "n": ulveCode2 += "l"; break;
case "o": ulveCode2 += "v"; break;
case "p": ulveCode2 += "e"; break;
case "q": ulveCode2 += "a"; break;
case "r": ulveCode2 += "b"; break;
case "s": ulveCode2 += "c"; break;
case "t": ulveCode2 += "d"; break;
case "u": ulveCode2 += "m"; break;
case "v": ulveCode2 += "o"; break;
case "w": ulveCode2 += ""; break;
case "x": ulveCode2 += "f"; break;
case "y": ulveCode2 += "g"; break;
case "z": ulveCode2 += "h"; break;
case "æ": ulveCode2 += "i"; break;
case "ø": ulveCode2 += "j"; break;
case "å": ulveCode2 += "k"; break;
case "A": ulveCode2 += "Q"; break;
case "B": ulveCode2 += "R"; break;
case "C": ulveCode2 += "S"; break;
case "D": ulveCode2 += "T"; break;
case "E": ulveCode2 += "P"; break;
case "F": ulveCode2 += "X"; break;
case "G": ulveCode2 += "Y"; break;
case "H": ulveCode2 += "Z"; break;
case "I": ulveCode2 += "Æ"; break;
case "J": ulveCode2 += "Ø"; break;
case "K": ulveCode2 += "Å"; break;
case "L": ulveCode2 += "N"; break;
case "M": ulveCode2 += "U"; break;
case "N": ulveCode2 += "L"; break;
case "O": ulveCode2 += "V"; break;
case "P": ulveCode2 += "E"; break;
case "Q": ulveCode2 += "A"; break;
case "R": ulveCode2 += "B"; break;
case "S": ulveCode2 += "C"; break;
case "T": ulveCode2 += "D"; break;
case "U": ulveCode2 += "M"; break;
case "V": ulveCode2 += "O"; break;
case "W": ulveCode2 += ""; break;
case "X": ulveCode2 += "F"; break;
case "Y": ulveCode2 += "G"; break;
case "Z": ulveCode2 += "H"; break;
case "Æ": ulveCode2 += "I"; break;
case "Ø": ulveCode2 += "J"; break;
case "Å": ulveCode2 += "K"; break;
case "1": ulveCode2 += "1"; break;
case "2": ulveCode2 += "2"; break;
case "3": ulveCode2 += "3"; break;
case "4": ulveCode2 += "4"; break;
case "5": ulveCode2 += "5"; break;
case "6": ulveCode2 += "6"; break;
case "7": ulveCode2 += "7"; break;
case "8": ulveCode2 += "8"; break;
case "9": ulveCode2 += "9"; break;
case "0": ulveCode2 += "0"; break;
case ".": ulveCode2 += "."; break;
case "?": ulveCode2 += "?"; break;
case "!": ulveCode2 += "!"; break;
case ",": ulveCode2 += ","; break;
case "-": ulveCode2 += "-"; break;
case " ": ulveCode2 += " "; break;
default: ulveCode2 += "fejl"; break;
}
}
for(j = 0;j<Ord.length;j++ )
{
for (i=0; i<ulveCode2.length; i++)
{
if(ulveCode2.substring(i, i+Ord[j].length) == Ord[j] )
{
antal++
}
}
}
document.ulveData2.outulveText2.value = ulveCode2
document.matchulveData2.outmatchulveText2.value = antal
}
// -->
</script>
<script language="JavaScript">
<!--
function tojunior(text)
{
var juniorCode = ""
var i=0
var antal = 0
var Ord=new Array("bliver","havde","lidt","se","bort","have","lige","selv","da","hele","lille","sidste","dag","heller","løb","sig","de","hen","man","siger","dem","hende","mange","sin","den","her","med","sine","der","hjem","meget","skal","deres","hun","men","skulle","det","hvad","mere","små","dig","hvem","mig","som","dog","hver","min","stor","et","hvilke","mod","store","far","hvis","må","så","fik","hvor","ned","tid","fin","igen","nej","til","for","ikke","noget","tog","forbi","ind","nok","ud","fordi","jeg","nu","under","fra","jer","når","var","fri","jeres","og","ved","få","jo","også","vi","gik","kan","om","vil","glad","kom","op","ville","godt","kommer","os","være","ham","kun","over","været","hans","kunne","på","år","har","lang","sagde","kode","koder","post","poster","hej");
for (i=0; i<text.length; i++) {
switch (text.substring(i, i+1)) {
case "a": juniorCode += "v"; break;
case "b": juniorCode += "t"; break;
case "c": juniorCode += "s"; break;
case "d": juniorCode += "q"; break;
case "e": juniorCode += "p"; break;
case "f": juniorCode += "m"; break;
case "g": juniorCode += "l"; break;
case "h": juniorCode += "k"; break;
case "i": juniorCode += "z"; break;
case "j": juniorCode += "å"; break;
case "k": juniorCode += "h"; break;
case "l": juniorCode += "g"; break;
case "m": juniorCode += "f"; break;
case "n": juniorCode += "æ"; break;
case "o": juniorCode += "y"; break;
case "p": juniorCode += "e"; break;
case "q": juniorCode += "d"; break;
case "r": juniorCode += "x"; break;
case "s": juniorCode += "c"; break;
case "t": juniorCode += "b"; break;
case "u": juniorCode += "ø"; break;
case "v": juniorCode += "a"; break;
case "w": juniorCode += ""; break;
case "x": juniorCode += "r"; break;
case "y": juniorCode += "o"; break;
case "z": juniorCode += "i"; break;
case "æ": juniorCode += "n"; break;
case "ø": juniorCode += "u"; break;
case "å": juniorCode += "j"; break;
case "A": juniorCode += "V"; break;
case "B": juniorCode += "T"; break;
case "C": juniorCode += "S"; break;
case "D": juniorCode += "Q"; break;
case "E": juniorCode += "P"; break;
case "F": juniorCode += "M"; break;
case "G": juniorCode += "L"; break;
case "H": juniorCode += "K"; break;
case "I": juniorCode += "Z"; break;
case "J": juniorCode += "Å"; break;
case "K": juniorCode += "H"; break;
case "L": juniorCode += "G"; break;
case "M": juniorCode += "F"; break;
case "N": juniorCode += "Æ"; break;
case "O": juniorCode += "Y"; break;
case "P": juniorCode += "E"; break;
case "Q": juniorCode += "D"; break;
case "R": juniorCode += "X"; break;
case "S": juniorCode += "C"; break;
case "T": juniorCode += "B"; break;
case "U": juniorCode += "Ø"; break;
case "V": juniorCode += "A"; break;
case "W": juniorCode += ""; break;
case "X": juniorCode += "R"; break;
case "Y": juniorCode += "O"; break;
case "Z": juniorCode += "I"; break;
case "Æ": juniorCode += "N"; break;
case "Ø": juniorCode += "U"; break;
case "Å": juniorCode += "J"; break;
case "1": juniorCode += "1"; break;
case "2": juniorCode += "2"; break;
case "3": juniorCode += "3"; break;
case "4": juniorCode += "4"; break;
case "5": juniorCode += "5"; break;
case "6": juniorCode += "6"; break;
case "7": juniorCode += "7"; break;
case "8": juniorCode += "8"; break;
case "9": juniorCode += "9"; break;
case "0": juniorCode += "0"; break;
case ".": juniorCode += "."; break;
case "?": juniorCode += "?"; break;
case "!": juniorCode += "!"; break;
case ",": juniorCode += ","; break;
case "-": juniorCode += "-"; break;
case " ": juniorCode += " "; break;
default: juniorCode += "fejl"; break;
}
}
for(j = 0;j<Ord.length;j++ )
{
for (i=0; i<juniorCode.length; i++)
{
if(juniorCode.substring(i, i+Ord[j].length) == Ord[j] )
{
antal++
}
}
}
document.juniorData.outjuniorText.value = juniorCode
document.matchjuniorData.outmatchjuniorText.value = antal
}
// -->
</script>
<script language="JavaScript">
<!--
function tojunior2(text)
{
var juniorCode2 = ""
var i=0
var antal = 0
var Ord=new Array("bliver","havde","lidt","se","bort","have","lige","selv","da","hele","lille","sidste","dag","heller","løb","sig","de","hen","man","siger","dem","hende","mange","sin","den","her","med","sine","der","hjem","meget","skal","deres","hun","men","skulle","det","hvad","mere","små","dig","hvem","mig","som","dog","hver","min","stor","et","hvilke","mod","store","far","hvis","må","så","fik","hvor","ned","tid","fin","igen","nej","til","for","ikke","noget","tog","forbi","ind","nok","ud","fordi","jeg","nu","under","fra","jer","når","var","fri","jeres","og","ved","få","jo","også","vi","gik","kan","om","vil","glad","kom","op","ville","godt","kommer","os","være","ham","kun","over","været","hans","kunne","på","år","har","lang","sagde","kode","koder","post","poster","hej");
for (i=0; i<text.length; i++) {
switch (text.substring(i, i+1)) {
case "a": juniorCode2 += "t"; break;
case "b": juniorCode2 += "v"; break;
case "c": juniorCode2 += "x"; break;
case "d": juniorCode2 += "y"; break;
case "e": juniorCode2 += "z"; break;
case "f": juniorCode2 += "æ"; break;
case "g": juniorCode2 += "ø"; break;
case "h": juniorCode2 += "å"; break;
case "i": juniorCode2 += "p"; break;
case "j": juniorCode2 += "k"; break;
case "k": juniorCode2 += "j"; break;
case "l": juniorCode2 += "u"; break;
case "m": juniorCode2 += "n"; break;
case "n": juniorCode2 += "m"; break;
case "o": juniorCode2 += "q"; break;
case "p": juniorCode2 += "i"; break;
case "q": juniorCode2 += "o"; break;
case "r": juniorCode2 += "s"; break;
case "s": juniorCode2 += "r"; break;
case "t": juniorCode2 += "a"; break;
case "u": juniorCode2 += "l"; break;
case "v": juniorCode2 += "b"; break;
case "w": juniorCode2 += ""; break;
case "x": juniorCode2 += "c"; break;
case "y": juniorCode2 += "d"; break;
case "z": juniorCode2 += "e"; break;
case "æ": juniorCode2 += "f"; break;
case "ø": juniorCode2 += "g"; break;
case "å": juniorCode2 += "h"; break;
case "A": juniorCode2 += "T"; break;
case "B": juniorCode2 += "V"; break;
case "C": juniorCode2 += "X"; break;
case "D": juniorCode2 += "Y"; break;
case "E": juniorCode2 += "Z"; break;
case "F": juniorCode2 += "Æ"; break;
case "G": juniorCode2 += "Ø"; break;
case "H": juniorCode2 += "Å"; break;
case "I": juniorCode2 += "P"; break;
case "J": juniorCode2 += "K"; break;
case "K": juniorCode2 += "J"; break;
case "L": juniorCode2 += "U"; break;
case "M": juniorCode2 += "N"; break;
case "N": juniorCode2 += "M"; break;
case "O": juniorCode2 += "Q"; break;
case "P": juniorCode2 += "I"; break;
case "Q": juniorCode2 += "O"; break;
case "R": juniorCode2 += "S"; break;
case "S": juniorCode2 += "R"; break;
case "T": juniorCode2 += "A"; break;
case "U": juniorCode2 += "L"; break;
case "V": juniorCode2 += "B"; break;
case "W": juniorCode2 += ""; break;
case "X": juniorCode2 += "C"; break;
case "Y": juniorCode2 += "D"; break;
case "Z": juniorCode2 += "E"; break;
case "Æ": juniorCode2 += "F"; break;
case "Ø": juniorCode2 += "G"; break;
case "Å": juniorCode2 += "H"; break;
case "1": juniorCode2 += "1"; break;
case "2": juniorCode2 += "2"; break;
case "3": juniorCode2 += "3"; break;
case "4": juniorCode2 += "4"; break;
case "5": juniorCode2 += "5"; break;
case "6": juniorCode2 += "6"; break;
case "7": juniorCode2 += "7"; break;
case "8": juniorCode2 += "8"; break;
case "9": juniorCode2 += "9"; break;
case "0": juniorCode2 += "0"; break;
case ".": juniorCode2 += "."; break;
case "?": juniorCode2 += "?"; break;
case "!": juniorCode2 += "!"; break;
case ",": juniorCode2 += ","; break;
case "-": juniorCode2 += "-"; break;
case " ": juniorCode2 += " "; break;
default: juniorCode2 += "fejl"; break;
}
}
for(j = 0;j<Ord.length;j++ )
{
for (i=0; i<juniorCode2.length; i++)
{
if(juniorCode2.substring(i, i+Ord[j].length) == Ord[j] )
{
antal++
}
}
}
document.juniorData2.outjuniorText2.value = juniorCode2
document.matchjuniorData2.outmatchjuniorText2.value = antal
}
// -->
</script>
<script language="JavaScript">
<!--
function tosenior(text)
{
var seniorCode = ""
var i=0
var antal = 0
var Ord=new Array("bliver","havde","lidt","se","bort","have","lige","selv","da","hele","lille","sidste","dag","heller","løb","sig","de","hen","man","siger","dem","hende","mange","sin","den","her","med","sine","der","hjem","meget","skal","deres","hun","men","skulle","det","hvad","mere","små","dig","hvem","mig","som","dog","hver","min","stor","et","hvilke","mod","store","far","hvis","må","så","fik","hvor","ned","tid","fin","igen","nej","til","for","ikke","noget","tog","forbi","ind","nok","ud","fordi","jeg","nu","under","fra","jer","når","var","fri","jeres","og","ved","få","jo","også","vi","gik","kan","om","vil","glad","kom","op","ville","godt","kommer","os","være","ham","kun","over","været","hans","kunne","på","år","har","lang","sagde","kode","koder","post","poster","hej");
for (i=0; i<text.length; i++) {
switch (text.substring(i, i+1)) {
case "a": seniorCode += "v"; break;
case "b": seniorCode += "u"; break;
case "c": seniorCode += "t"; break;
case "d": seniorCode += "q"; break;
case "e": seniorCode += "ø"; break;
case "f": seniorCode += "p"; break;
case "g": seniorCode += "m"; break;
case "h": seniorCode += "l"; break;
case "i": seniorCode += "z"; break;
case "j": seniorCode += "k"; break;
case "k": seniorCode += "j"; break;
case "l": seniorCode += "h"; break;
case "m": seniorCode += "g"; break;
case "n": seniorCode += "æ"; break;
case "o": seniorCode += "y"; break;
case "p": seniorCode += "f"; break;
case "q": seniorCode += "d"; break;
case "r": seniorCode += "x"; break;
case "s": seniorCode += "å"; break;
case "t": seniorCode += "c"; break;
case "u": seniorCode += "b"; break;
case "v": seniorCode += "a"; break;
case "w": seniorCode += ""; break;
case "x": seniorCode += "r"; break;
case "y": seniorCode += "o"; break;
case "z": seniorCode += "i"; break;
case "æ": seniorCode += "n"; break;
case "ø": seniorCode += "e"; break;
case "å": seniorCode += "s"; break;
case "A": seniorCode += "V"; break;
case "B": seniorCode += "U"; break;
case "C": seniorCode += "T"; break;
case "D": seniorCode += "Q"; break;
case "E": seniorCode += "Ø"; break;
case "F": seniorCode += "P"; break;
case "G": seniorCode += "M"; break;
case "H": seniorCode += "L"; break;
case "I": seniorCode += "Z"; break;
case "J": seniorCode += "K"; break;
case "K": seniorCode += "J"; break;
case "L": seniorCode += "H"; break;
case "M": seniorCode += "G"; break;
case "N": seniorCode += "Æ"; break;
case "O": seniorCode += "Y"; break;
case "P": seniorCode += "F"; break;
case "Q": seniorCode += "D"; break;
case "R": seniorCode += "X"; break;
case "S": seniorCode += "Å"; break;
case "T": seniorCode += "C"; break;
case "U": seniorCode += "B"; break;
case "V": seniorCode += "A"; break;
case "W": seniorCode += ""; break;
case "X": seniorCode += "R"; break;
case "Y": seniorCode += "O"; break;
case "Z": seniorCode += "I"; break;
case "Æ": seniorCode += "N"; break;
case "Ø": seniorCode += "E"; break;
case "Å": seniorCode += "S"; break;
case "1": seniorCode += "1"; break;
case "2": seniorCode += "2"; break;
case "3": seniorCode += "3"; break;
case "4": seniorCode += "4"; break;
case "5": seniorCode += "5"; break;
case "6": seniorCode += "6"; break;
case "7": seniorCode += "7"; break;
case "8": seniorCode += "8"; break;
case "9": seniorCode += "9"; break;
case "0": seniorCode += "0"; break;
case ".": seniorCode += "."; break;
case "?": seniorCode += "?"; break;
case "!": seniorCode += "!"; break;
case ",": seniorCode += ","; break;
case "-": seniorCode += "-"; break;
case " ": seniorCode += " "; break;
default: seniorCode += "fejl"; break;
}
}
for(j = 0;j<Ord.length;j++ )
{
for (i=0; i<seniorCode.length; i++)
{
if(seniorCode.substring(i, i+Ord[j].length) == Ord[j] )
{
antal++
}
}
}
document.seniorData.outseniorText.value = seniorCode
document.matchseniorData.outmatchseniorText.value = antal
}
// -->
</script>
<script language="JavaScript">
<!--
function tosenior2(text)
{
var seniorCode2 = ""
var i=0
for (i=0; i<text.length; i++) {
switch (text.substring(i, i+1)) {
case "a": seniorCode2 += "u"; break;
case "b": seniorCode2 += "v"; break;
case "c": seniorCode2 += "x"; break;
case "d": seniorCode2 += "y"; break;
case "e": seniorCode2 += "l"; break;
case "f": seniorCode2 += "z"; break;
case "g": seniorCode2 += "æ"; break;
case "h": seniorCode2 += "ø"; break;
case "i": seniorCode2 += "p"; break;
case "j": seniorCode2 += "å"; break;
case "k": seniorCode2 += "s"; break;
case "l": seniorCode2 += "e"; break;
case "m": seniorCode2 += "n"; break;
case "n": seniorCode2 += "m"; break;
case "o": seniorCode2 += "q"; break;
case "p": seniorCode2 += "i"; break;
case "q": seniorCode2 += "o"; break;
case "r": seniorCode2 += "t"; break;
case "s": seniorCode2 += "k"; break;
case "t": seniorCode2 += "r"; break;
case "u": seniorCode2 += "a"; break;
case "v": seniorCode2 += "b"; break;
case "w": seniorCode2 += ""; break;
case "x": seniorCode2 += "c"; break;
case "y": seniorCode2 += "d"; break;
case "z": seniorCode2 += "f"; break;
case "æ": seniorCode2 += "g"; break;
case "ø": seniorCode2 += "h"; break;
case "å": seniorCode2 += "j"; break;
case "A": seniorCode2 += "U"; break;
case "B": seniorCode2 += "V"; break;
case "C": seniorCode2 += "X"; break;
case "D": seniorCode2 += "Y"; break;
case "E": seniorCode2 += "L"; break;
case "F": seniorCode2 += "Z"; break;
case "G": seniorCode2 += "Æ"; break;
case "H": seniorCode2 += "Ø"; break;
case "I": seniorCode2 += "P"; break;
case "J": seniorCode2 += "Å"; break;
case "K": seniorCode2 += "S"; break;
case "L": seniorCode2 += "E"; break;
case "M": seniorCode2 += "N"; break;
case "N": seniorCode2 += "M"; break;
case "O": seniorCode2 += "Q"; break;
case "P": seniorCode2 += "I"; break;
case "Q": seniorCode2 += "O"; break;
case "R": seniorCode2 += "T"; break;
case "S": seniorCode2 += "K"; break;
case "T": seniorCode2 += "R"; break;
case "U": seniorCode2 += "A"; break;
case "V": seniorCode2 += "B"; break;
case "W": seniorCode2 += ""; break;
case "X": seniorCode2 += "C"; break;
case "Y": seniorCode2 += "D"; break;
case "Z": seniorCode2 += "F"; break;
case "Æ": seniorCode2 += "G"; break;
case "Ø": seniorCode2 += "H"; break;
case "Å": seniorCode2 += "J"; break;
case "1": seniorCode2 += "1"; break;
case "2": seniorCode2 += "2"; break;
case "3": seniorCode2 += "3"; break;
case "4": seniorCode2 += "4"; break;
case "5": seniorCode2 += "5"; break;
case "6": seniorCode2 += "6"; break;
case "7": seniorCode2 += "7"; break;
case "8": seniorCode2 += "8"; break;
case "9": seniorCode2 += "9"; break;
case "0": seniorCode2 += "0"; break;
case ".": seniorCode2 += "."; break;
case "?": seniorCode2 += "?"; break;
case "!": seniorCode2 += "!"; break;
case ",": seniorCode2 += ","; break;
case "-": seniorCode2 += "-"; break;
case " ": seniorCode2 += " "; break;
default: seniorCode2 += "fejl"; break;
}
}
document.seniorData2.outseniorText2.value = seniorCode2
}
// -->
</script>
<script language="JavaScript">
<!--
function toclan(text)
{
var clanCode = ""
var i=0
for (i=0; i<text.length; i++) {
switch (text.substring(i, i+1)) {
case "a": clanCode += "æ"; break;
case "b": clanCode += "y"; break;
case "c": clanCode += "å"; break;
case "d": clanCode += "x"; break;
case "e": clanCode += "v"; break;
case "f": clanCode += "u"; break;
case "g": clanCode += "t"; break;
case "h": clanCode += "s"; break;
case "i": clanCode += "r"; break;
case "j": clanCode += "q"; break;
case "k": clanCode += "p"; break;
case "l": clanCode += "ø"; break;
case "m": clanCode += "o"; break;
case "n": clanCode += "z"; break;
case "o": clanCode += "m"; break;
case "p": clanCode += "k"; break;
case "q": clanCode += "j"; break;
case "r": clanCode += "i"; break;
case "s": clanCode += "h"; break;
case "t": clanCode += "g"; break;
case "u": clanCode += "f"; break;
case "v": clanCode += "e"; break;
case "w": clanCode += ""; break;
case "x": clanCode += "d"; break;
case "y": clanCode += "b"; break;
case "z": clanCode += "n"; break;
case "æ": clanCode += "a"; break;
case "ø": clanCode += "l"; break;
case "å": clanCode += "c"; break;
case "A": clanCode += "Æ"; break;
case "B": clanCode += "Y"; break;
case "C": clanCode += "Å"; break;
case "D": clanCode += "X"; break;
case "E": clanCode += "V"; break;
case "F": clanCode += "U"; break;
case "G": clanCode += "T"; break;
case "H": clanCode += "S"; break;
case "I": clanCode += "R"; break;
case "J": clanCode += "Q"; break;
case "K": clanCode += "P"; break;
case "L": clanCode += "Ø"; break;
case "M": clanCode += "O"; break;
case "N": clanCode += "Z"; break;
case "O": clanCode += "M"; break;
case "P": clanCode += "K"; break;
case "Q": clanCode += "J"; break;
case "R": clanCode += "I"; break;
case "S": clanCode += "H"; break;
case "T": clanCode += "G"; break;
case "U": clanCode += "F"; break;
case "V": clanCode += "E"; break;
case "W": clanCode += ""; break;
case "X": clanCode += "D"; break;
case "Y": clanCode += "B"; break;
case "Z": clanCode += "N"; break;
case "Æ": clanCode += "A"; break;
case "Ø": clanCode += "L"; break;
case "Å": clanCode += "C"; break;
case "1": clanCode += "1"; break;
case "2": clanCode += "2"; break;
case "3": clanCode += "3"; break;
case "4": clanCode += "4"; break;
case "5": clanCode += "5"; break;
case "6": clanCode += "6"; break;
case "7": clanCode += "7"; break;
case "8": clanCode += "8"; break;
case "9": clanCode += "9"; break;
case "0": clanCode += "0"; break;
case ".": clanCode += "."; break;
case "?": clanCode += "?"; break;
case "!": clanCode += "!"; break;
case ",": clanCode += ","; break;
case "-": clanCode += "-"; break;
case " ": clanCode += " "; break;
default: clanCode += "fejl"; break;
}
}
document.clanData.outclanText.value = clanCode
}
// -->
</script>
<script language="JavaScript">
<!--
function toclan2(text)
{
var clanCode2 = ""
var i=0
for (i=0; i<text.length; i++) {
switch (text.substring(i, i+1)) {
case "a": clanCode2 += "q"; break;
case "b": clanCode2 += "s"; break;
case "c": clanCode2 += "o"; break;
case "d": clanCode2 += "t"; break;
case "e": clanCode2 += "u"; break;
case "f": clanCode2 += "v"; break;
case "g": clanCode2 += "x"; break;
case "h": clanCode2 += "y"; break;
case "i": clanCode2 += "z"; break;
case "j": clanCode2 += "æ"; break;
case "k": clanCode2 += "ø"; break;
case "l": clanCode2 += "p"; break;
case "m": clanCode2 += "å"; break;
case "n": clanCode2 += "r"; break;
case "o": clanCode2 += "c"; break;
case "p": clanCode2 += "l"; break;
case "q": clanCode2 += "a"; break;
case "r": clanCode2 += "n"; break;
case "s": clanCode2 += "b"; break;
case "t": clanCode2 += "d"; break;
case "u": clanCode2 += "e"; break;
case "v": clanCode2 += "f"; break;
case "w": clanCode2 += ""; break;
case "x": clanCode2 += "g"; break;
case "y": clanCode2 += "h"; break;
case "z": clanCode2 += "i"; break;
case "æ": clanCode2 += "j"; break;
case "ø": clanCode2 += "k"; break;
case "å": clanCode2 += "m"; break;
case "A": clanCode2 += "Q"; break;
case "B": clanCode2 += "S"; break;
case "C": clanCode2 += "O"; break;
case "D": clanCode2 += "T"; break;
case "E": clanCode2 += "U"; break;
case "F": clanCode2 += "V"; break;
case "G": clanCode2 += "X"; break;
case "H": clanCode2 += "Y"; break;
case "I": clanCode2 += "Z"; break;
case "J": clanCode2 += "Æ"; break;
case "K": clanCode2 += "Ø"; break;
case "L": clanCode2 += "P"; break;
case "M": clanCode2 += "Å"; break;
case "N": clanCode2 += "R"; break;
case "O": clanCode2 += "C"; break;
case "P": clanCode2 += "L"; break;
case "Q": clanCode2 += "A"; break;
case "R": clanCode2 += "N"; break;
case "S": clanCode2 += "B"; break;
case "T": clanCode2 += "D"; break;
case "U": clanCode2 += "E"; break;
case "V": clanCode2 += "F"; break;
case "W": clanCode2 += ""; break;
case "X": clanCode2 += "G"; break;
case "Y": clanCode2 += "H"; break;
case "Z": clanCode2 += "I"; break;
case "Æ": clanCode2 += "J"; break;
case "Ø": clanCode2 += "K"; break;
case "Å": clanCode2 += "M"; break;
case "1": clanCode2 += "1"; break;
case "2": clanCode2 += "2"; break;
case "3": clanCode2 += "3"; break;
case "4": clanCode2 += "4"; break;
case "5": clanCode2 += "5"; break;
case "6": clanCode2 += "6"; break;
case "7": clanCode2 += "7"; break;
case "8": clanCode2 += "8"; break;
case "9": clanCode2 += "9"; break;
case "0": clanCode2 += "0"; break;
case ".": clanCode2 += "."; break;
case "?": clanCode2 += "?"; break;
case "!": clanCode2 += "!"; break;
case ",": clanCode2 += ","; break;
case "-": clanCode2 += "-"; break;
case " ": clanCode2 += " "; break;
default: clanCode2 += "fejl"; break;
}
}
document.clanData2.outclanText2.value = clanCode2
}
// -->
</script>
<script language="JavaScript">
<!--
function toklan(text)
{
var klanCode = ""
var i=0
for (i=0; i<text.length; i++) {
switch (text.substring(i, i+1)) {
case "a": klanCode += "æ"; break;
case "b": klanCode += "y"; break;
case "c": klanCode += "x"; break;
case "d": klanCode += "v"; break;
case "e": klanCode += "u"; break;
case "f": klanCode += "t"; break;
case "g": klanCode += "s"; break;
case "h": klanCode += "r"; break;
case "i": klanCode += "q"; break;
case "j": klanCode += "p"; break;
case "k": klanCode += "å"; break;
case "l": klanCode += "ø"; break;
case "m": klanCode += "o"; break;
case "n": klanCode += "z"; break;
case "o": klanCode += "m"; break;
case "p": klanCode += "j"; break;
case "q": klanCode += "i"; break;
case "r": klanCode += "h"; break;
case "s": klanCode += "g"; break;
case "t": klanCode += "f"; break;
case "u": klanCode += "e"; break;
case "v": klanCode += "d"; break;
case "w": klanCode += ""; break;
case "x": klanCode += "c"; break;
case "y": klanCode += "b"; break;
case "z": klanCode += "n"; break;
case "æ": klanCode += "a"; break;
case "ø": klanCode += "l"; break;
case "å": klanCode += "k"; break;
case "A": klanCode += "Æ"; break;
case "B": klanCode += "Y"; break;
case "C": klanCode += "X"; break;
case "D": klanCode += "V"; break;
case "E": klanCode += "U"; break;
case "F": klanCode += "T"; break;
case "G": klanCode += "S"; break;
case "H": klanCode += "R"; break;
case "I": klanCode += "Q"; break;
case "J": klanCode += "P"; break;
case "K": klanCode += "Å"; break;
case "L": klanCode += "Ø"; break;
case "M": klanCode += "O"; break;
case "N": klanCode += "Z"; break;
case "O": klanCode += "M"; break;
case "P": klanCode += "J"; break;
case "Q": klanCode += "I"; break;
case "R": klanCode += "H"; break;
case "S": klanCode += "G"; break;
case "T": klanCode += "F"; break;
case "U": klanCode += "E"; break;
case "V": klanCode += "D"; break;
case "W": klanCode += ""; break;
case "X": klanCode += "C"; break;
case "Y": klanCode += "B"; break;
case "Z": klanCode += "N"; break;
case "Æ": klanCode += "A"; break;
case "Ø": klanCode += "L"; break;
case "Å": klanCode += "K"; break;
case "1": klanCode += "1"; break;
case "2": klanCode += "2"; break;
case "3": klanCode += "3"; break;
case "4": klanCode += "4"; break;
case "5": klanCode += "5"; break;
case "6": klanCode += "6"; break;
case "7": klanCode += "7"; break;
case "8": klanCode += "8"; break;
case "9": klanCode += "9"; break;
case "0": klanCode += "0"; break;
case ".": klanCode += "."; break;
case "?": klanCode += "?"; break;
case "!": klanCode += "!"; break;
case ",": klanCode += ","; break;
case "-": klanCode += "-"; break;
case " ": klanCode += " "; break;
default: klanCode += "fejl"; break;
}
}
document.klanData.outklanText.value = klanCode
}
// -->
</script>
<script language="JavaScript">
<!--
function toMorse(text)
{
var morseCode = ""
var i=0
for (i=0; i<text.length; i++) {
switch (text.substring(i, i+1)) {
case "a": morseCode += ".-/"; break;
case "b": morseCode += "-.../"; break;
case "c": morseCode += "-.-./"; break;
case "d": morseCode += "-../"; break;
case "e": morseCode += "./"; break;
case "f": morseCode += "..-./"; break;
case "g": morseCode += "--./"; break;
case "h": morseCode += "..../"; break;
case "i": morseCode += "../"; break;
case "j": morseCode += ".---/"; break;
case "k": morseCode += "-.-/"; break;
case "l": morseCode += ".-../"; break;
case "m": morseCode += "--/"; break;
case "n": morseCode += "-./"; break;
case "o": morseCode += "---/"; break;
case "p": morseCode += ".--./"; break;
case "q": morseCode += "--.-/"; break;
case "r": morseCode += ".-./"; break;
case "s": morseCode += ".../"; break;
case "t": morseCode += "-/"; break;
case "u": morseCode += "..-/"; break;
case "v": morseCode += "...-/"; break;
case "w": morseCode += ".--/"; break;
case "x": morseCode += "-..-/"; break;
case "y": morseCode += "-.--/"; break;
case "z": morseCode += "--../"; break;
case "æ": morseCode += ".-.-/"; break;
case "ø": morseCode += "---./"; break;
case "å": morseCode += ".--.-/"; break;
case "A": morseCode += ".-/"; break;
case "B": morseCode += "-.../"; break;
case "C": morseCode += "-.-./"; break;
case "D": morseCode += "-../"; break;
case "E": morseCode += "./"; break;
case "F": morseCode += "..-./"; break;
case "G": morseCode += "--./"; break;
case "H": morseCode += "..../"; break;
case "I": morseCode += "../"; break;
case "J": morseCode += ".---/"; break;
case "K": morseCode += "-.-/"; break;
case "L": morseCode += ".-../"; break;
case "M": morseCode += "--/"; break;
case "N": morseCode += "-./"; break;
case "O": morseCode += "---/"; break;
case "P": morseCode += ".--./"; break;
case "Q": morseCode += "--.-/"; break;
case "R": morseCode += ".-./"; break;
case "S": morseCode += ".../"; break;
case "T": morseCode += "-/"; break;
case "U": morseCode += "..-/"; break;
case "V": morseCode += "...-/"; break;
case "W": morseCode += ".--/"; break;
case "X": morseCode += "-..-/"; break;
case "Y": morseCode += "-.--/"; break;
case "Z": morseCode += "--../"; break;
case "Æ": morseCode += ".-.-/"; break;
case "Ø": morseCode += "---./"; break;
case "Å": morseCode += ".--.-/"; break;
case "1": morseCode += ".----/"; break;
case "2": morseCode += "..---/"; break;
case "3": morseCode += "...--/"; break;
case "4": morseCode += "....-/"; break;
case "5": morseCode += "...../"; break;
case "6": morseCode += "-..../"; break;
case "7": morseCode += "--.../"; break;
case "8": morseCode += "---../"; break;
case "9": morseCode += "----./"; break;
case "0": morseCode += "-----/"; break;
case ".": morseCode += ""; break;
case "?": morseCode += ""; break;
case "!": morseCode += ""; break;
case ",": morseCode += ""; break;
case "-": morseCode += ""; break;
case " ": morseCode += "/"; break;
default: morseCode += "fejl"; break;
}
}
document.outData.outText.value = morseCode
}
// -->
</script>
<script language="JavaScript">
<!--
function toAk(text)
{
var ak = ""
var i=0
for (i=0; i<text.length; i++) {
switch (text.substring(i, i+1)) {
case "a": ak += "k"; break;
case "b": ak += "l"; break;
case "c": ak += "m"; break;
case "d": ak += "n"; break;
case "e": ak += "o"; break;
case "f": ak += "p"; break;
case "g": ak += "q"; break;
case "h": ak += "r"; break;
case "i": ak += "s"; break;
case "j": ak += "t"; break;
case "k": ak += "u"; break;
case "l": ak += "v"; break;
case "m": ak += "w"; break;
case "n": ak += "x"; break;
case "o": ak += "y"; break;
case "p": ak += "z"; break;
case "q": ak += "æ"; break;
case "r": ak += "ø"; break;
case "s": ak += "å"; break;
case "t": ak += "a"; break;
case "u": ak += "b"; break;
case "v": ak += "c"; break;
case "w": ak += "d"; break;
case "x": ak += "e"; break;
case "y": ak += "f"; break;
case "z": ak += "g"; break;
case "æ": ak += "h"; break;
case "ø": ak += "i"; break;
case "å": ak += "j"; break;
case "A": ak += "K"; break;
case "B": ak += "L"; break;
case "C": ak += "M"; break;
case "D": ak += "N"; break;
case "E": ak += "O"; break;
case "F": ak += "P"; break;
case "G": ak += "Q"; break;
case "H": ak += "R"; break;
case "I": ak += "S"; break;
case "J": ak += "T"; break;
case "K": ak += "U"; break;
case "L": ak += "V"; break;
case "M": ak += "W"; break;
case "N": ak += "X"; break;
case "O": ak += "Y"; break;
case "P": ak += "Z"; break;
case "Q": ak += "Æ"; break;
case "R": ak += "Ø"; break;
case "S": ak += "Å"; break;
case "T": ak += "A"; break;
case "U": ak += "B"; break;
case "V": ak += "C"; break;
case "W": ak += "D"; break;
case "X": ak += "E"; break;
case "Y": ak += "F"; break;
case "Z": ak += "G"; break;
case "Æ": ak += "H"; break;
case "Ø": ak += "I"; break;
case "Å": ak += "J"; break;
case "1": ak += "1"; break;
case "2": ak += "2"; break;
case "3": ak += "3"; break;
case "4": ak += "4"; break;
case "5": ak += "5"; break;
case "6": ak += "6"; break;
case "7": ak += "7"; break;
case "8": ak += "8"; break;
case "9": ak += "9"; break;
case "0": ak += "0"; break;
case ".": ak += "."; break;
case "?": ak += "?"; break;
case "!": ak += "!"; break;
case ",": ak += ","; break;
case "-": ak += "-"; break;
case " ": ak += " "; break;
default: ak += "fejl"; break;
}
}
document.outData2.outText2.value = ak
}
// -->
</script>
<script language="JavaScript">
<!--
function toAk2(text)
{
var ak2 = ""
var i=0
for (i=0; i<text.length; i++) {
switch (text.substring(i, i+1)) {
case "a": ak2 += "t"; break;
case "b": ak2 += "u"; break;
case "c": ak2 += "v"; break;
case "d": ak2 += "w"; break;
case "e": ak2 += "x"; break;
case "f": ak2 += "y"; break;
case "g": ak2 += "z"; break;
case "h": ak2 += "æ"; break;
case "i": ak2 += "ø"; break;
case "j": ak2 += "å"; break;
case "k": ak2 += "a"; break;
case "l": ak2 += "b"; break;
case "m": ak2 += "c"; break;
case "n": ak2 += "d"; break;
case "o": ak2 += "e"; break;
case "p": ak2 += "f"; break;
case "q": ak2 += "g"; break;
case "r": ak2 += "h"; break;
case "s": ak2 += "i"; break;
case "t": ak2 += "j"; break;
case "u": ak2 += "k"; break;
case "v": ak2 += "l"; break;
case "w": ak2 += "m"; break;
case "x": ak2 += "n"; break;
case "y": ak2 += "o"; break;
case "z": ak2 += "p"; break;
case "æ": ak2 += "q"; break;
case "ø": ak2 += "r"; break;
case "å": ak2 += "s"; break;
case "A": ak2 += "T"; break;
case "B": ak2 += "U"; break;
case "C": ak2 += "V"; break;
case "D": ak2 += "W"; break;
case "E": ak2 += "X"; break;
case "F": ak2 += "Y"; break;
case "G": ak2 += "Z"; break;
case "H": ak2 += "Æ"; break;
case "I": ak2 += "Ø"; break;
case "J": ak2 += "Å"; break;
case "K": ak2 += "A"; break;
case "L": ak2 += "B"; break;
case "M": ak2 += "C"; break;
case "N": ak2 += "D"; break;
case "O": ak2 += "E"; break;
case "P": ak2 += "F"; break;
case "Q": ak2 += "G"; break;
case "R": ak2 += "H"; break;
case "S": ak2 += "I"; break;
case "T": ak2 += "J"; break;
case "U": ak2 += "K"; break;
case "V": ak2 += "L"; break;
case "W": ak2 += "M"; break;
case "X": ak2 += "N"; break;
case "Y": ak2 += "O"; break;
case "Z": ak2 += "P"; break;
case "Æ": ak2 += "Q"; break;
case "Ø": ak2 += "R"; break;
case "Å": ak2 += "S"; break;
case "1": ak2 += "1"; break;
case "2": ak2 += "2"; break;
case "3": ak2 += "3"; break;
case "4": ak2 += "4"; break;
case "5": ak2 += "5"; break;
case "6": ak2 += "6"; break;
case "7": ak2 += "7"; break;
case "8": ak2 += "8"; break;
case "9": ak2 += "9"; break;
case "0": ak2 += "0"; break;
case ".": ak2 += "."; break;
case "?": ak2 += "?"; break;
case "!": ak2 += "!"; break;
case ",": ak2 += ","; break;
case "-": ak2 += "-"; break;
case " ": ak2 += " "; break;
default: ak2 += "fejl"; break;
}
}
document.outData3.outText3.value = ak2
}
// -->
</script>
<body link="#FFFFFF" vlink="#FFFFFF">
<center>
<table border="1" width="712" bgcolor="#0000FF">
<tr>
<td width="353" bgcolor="#000080" align="left">
<p align="center"><b>
<font face="Arial, Helvetica, sans-serif" size="4" color="#FFFFFF">Kode</font></b><font color="#FFFFFF" size="4"
face="Arial, Helvetica, sans-serif"><b>oversætteren </b></font></td>
<td width="343" bgcolor="#000080" align="left">
<p align="center"><b>
<font face="Arial, Helvetica, sans-serif" size="4" color="#FFFFFF">
Ordfinderen </font></b><font color="#FFFFFF" size="4"
face="Arial, Helvetica, sans-serif"><b> </b></font></td>
</tr>
<tr>
<td width="353"><form name="inData">
<p align="left"><font color="#FFFFFF" size="3" face="Arial, Helvetica, sans-serif"><strong>Kildetekst:</strong></font><br>
<textarea name="inText" rows="4" cols="40" wrap="PHYSICAL"></textarea></p>
<p align="center"><input type="button" name="Translate" value="Oversæt" onclick="toAk(document.inData.inText.value);toMorse(document.inData.inText.value);toAk2(document.inData.inText.value);tobever(document.inData.inText.value);tobever2(document.inData.inText.value);toulve(document.inData.inText.value)
;toulve2(document.inData.inText.value);tojunior(document.inData.inText.value);tojunior2(document.inData.inText.value);tosenior(document.inData.inText.value)
;tosenior2(document.inData.inText.value);toclan(document.inData.inText.value);toclan2(document.inData.inText.value);toklan(document.inData.inText.value)"> <input type="reset" name="Reset"
value=" Ryd "> </p>
</form>
<form name="beverData">
<p align="left"><strong><font color="#FFFFFF" size="3" face="Arial, Helvetica, sans-serif">
<a name="Bæverkode (korrekt):">Bæverkode (korrekt</a></font><a name="Bæverkode (korrekt):"><font
color="#FFFFFF">):</font></a></strong><br>
<textarea name="outbeverText1" rows="4" cols="40" wrap="VIRTUAL"></textarea> </p>
</form>
<form name="beverData2">
<p align="left"><strong><font color="#FFFFFF" size="3" face="Arial, Helvetica, sans-serif">
<a name="Bæverkode (omvendt):">Bæverkode (</a></font><a name="Bæverkode (omvendt):"><font face="Arial, Helvetica, sans-serif" color="#FFFFFF">omvendt</font><font
color="#FFFFFF">):</font></a></strong><br>
<textarea name="outbeverText2" rows="4" cols="40" wrap="VIRTUAL"></textarea> </p>
</form>
<form name="ulveData">
<p align="left"><strong><font color="#FFFFFF" size="3" face="Arial, Helvetica, sans-serif">
<a name="Ulvekode (korrekt):">Ulvekode (korrekt</a></font><a name="Ulvekode (korrekt):"><font
color="#FFFFFF">):</font></a></strong><br>
<textarea name="outulveText" rows="4" cols="40" wrap="VIRTUAL"></textarea> </p>
</form>
<form name="ulveData2">
<p align="left"><strong><font color="#FFFFFF" size="3" face="Arial, Helvetica, sans-serif">
<a name="Ulvekode (omvendt):">Ulvekode (omvendt</a></font><a name="Ulvekode (omvendt):"><font
color="#FFFFFF">):</font></a></strong><br>
<textarea name="outulveText2" rows="4" cols="40" wrap="VIRTUAL"></textarea> </p>
</form>
<form name="juniorData">
<p align="left"><strong>
<font face="Arial, Helvetica, sans-serif" color="#FFFFFF">
<a name="Junior (korrekt):">Junior</a></font><a name="Junior (korrekt):"><font color="#FFFFFF" size="3" face="Arial, Helvetica, sans-serif">
(korrekt</font><font
color="#FFFFFF">):</font></a></strong><br>
<textarea name="outjuniorText" rows="4" cols="40" wrap="VIRTUAL"></textarea> </p>
</form>
<form name="juniorData2">
<p align="left"><strong>
<font face="Arial, Helvetica, sans-serif" color="#FFFFFF">
<a name="Junior (omvendt):">Junior</a></font><a name="Junior (omvendt):"><font color="#FFFFFF" size="3" face="Arial, Helvetica, sans-serif">
(omvendt</font><font
color="#FFFFFF">):</font></a></strong><br>
<textarea name="outjuniorText2" rows="4" cols="40" wrap="VIRTUAL"></textarea> </p>
</form>
<form name="seniorData">
<p align="left"><strong>
<font face="Arial, Helvetica, sans-serif" color="#FFFFFF">
<a name="Senior (korrekt):">Senior </a> </font>
<a name="Senior (korrekt):"><font color="#FFFFFF" size="3" face="Arial, Helvetica, sans-serif">
(korrekt</font><font
color="#FFFFFF">):</font></a></strong><br>
<textarea name="outseniorText" rows="4" cols="40" wrap="VIRTUAL"></textarea></p>
</form>
<form name="seniorData2">
<p align="left"><strong>
<font face="Arial, Helvetica, sans-serif" color="#FFFFFF">Senior </font><font color="#FFFFFF" size="3" face="Arial, Helvetica, sans-serif">
(omvendt</font><font
color="#FFFFFF">):</font></strong><br>
<textarea name="outseniorText2" rows="4" cols="40" wrap="VIRTUAL"></textarea> </p>
</form>
<form name="clanData">
<p align="left"><strong>
<font face="Arial, Helvetica, sans-serif" color="#FFFFFF">Clan </font><font color="#FFFFFF" size="3" face="Arial, Helvetica, sans-serif">
(korrekt</font><font
color="#FFFFFF">):</font></strong><br>
<textarea name="outclanText" rows="4" cols="40" wrap="VIRTUAL"></textarea> </p>
</form>
<form name="clanData2">
<p align="left"><strong>
<font face="Arial, Helvetica, sans-serif" color="#FFFFFF">Clan </font><font color="#FFFFFF" size="3" face="Arial, Helvetica, sans-serif">
(omvendt</font><font
color="#FFFFFF">):</font></strong><br>
<textarea name="outclanText2" rows="4" cols="40" wrap="VIRTUAL"></textarea> </p>
</form>
<form name="klanData">
<p align="left"><strong>
<font face="Arial, Helvetica, sans-serif" color="#FFFFFF">Klan </font><font color="#FFFFFF" size="3" face="Arial, Helvetica, sans-serif">
(korrekt</font><font
color="#FFFFFF">):</font></strong><br>
<textarea name="outklanText" rows="4" cols="40" wrap="VIRTUAL"></textarea> </p>
</form>
<form name="outData">
<p align="left"><strong><font color="#FFFFFF" size="3" face="Arial, Helvetica, sans-serif">
Til Morsekode</font><font
color="#FFFFFF">:</font></strong><br>
<textarea name="outText" rows="4" cols="40" wrap="VIRTUAL"></textarea> </p>
</form>
<form name="outData2">
<p align="left"><strong><font color="#FFFFFF" size="3" face="Arial, Helvetica, sans-serif">A-K
med W (omvendt)</font><font
color="#FFFFFF">:</font></strong><br>
<textarea name="outText2" rows="4" cols="40" wrap="VIRTUAL"></textarea> </p>
</form>
<form name="outData3">
<p align="left"><strong><font color="#FFFFFF" size="3" face="Arial, Helvetica, sans-serif">A-K med W (korrekt</font><font
color="#FFFFFF">):</font></strong><br>
<textarea name="outText3" rows="4" cols="40" wrap="VIRTUAL"></textarea> </p>
</form>
</td>
<td width="343">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="100%"><form name="matchbeverData">
<p align="left">
<input name="outmatchbeverText1" size="2" wrap="VIRTUAL"><b><font color="#FFFFFF" size="3" face="Arial, Helvetica, sans-serif"><a href="#Bæverkode (korrekt):">Match
i "Bæverkode (korrekt</a></font><a href="#Bæverkode (korrekt):"><font
color="#FFFFFF">)"</font></a></b></p>
</form></td>
</tr>
<tr>
<td width="100%"><form name="matchbeverData2">
<p align="left">
<input name="outmatchbeverText2" size="2" wrap="VIRTUAL"><b><font color="#FFFFFF" size="3" face="Arial, Helvetica, sans-serif"><a href="#Bæverkode (omvendt):">Match
i "Bæverkode (</a></font><a href="#Bæverkode (omvendt):"><font face="Arial, Helvetica, sans-serif" color="#FFFFFF">omvendt</font><font
color="#FFFFFF">)"</font></a></b></p>
</form>
</td>
</tr>
<tr>
<td width="100%"><form name="matchulveData">
<p align="left">
<input name="outmatchulveText" size="2" wrap="VIRTUAL"><b><font color="#FFFFFF" size="3" face="Arial, Helvetica, sans-serif"><a href="#Ulvekode (korrekt):">Match
i "Ulvekode (korrekt</a></font><a href="#Ulvekode (korrekt):"><font
color="#FFFFFF">)"</font></a></b></p>
</form>
</td>
</tr>
<tr>
<td width="100%"><form name="matchulveData2">
<p align="left">
<input name="outmatchulveText2" size="2" wrap="VIRTUAL"><b><font color="#FFFFFF" size="3" face="Arial, Helvetica, sans-serif"><a href="#Ulvekode (omvendt):">Match
i "Ulvekode (omvendt</a></font><a href="#Ulvekode (omvendt):"><font
color="#FFFFFF">)"</font></a></b></p>
</form>
</td>
</tr>
<tr>
<td width="100%"><form name="matchjuniorData">
<p align="left">
<input name="outmatchjuniorText" size="2" wrap="VIRTUAL"><b><font color="#FFFFFF" size="3" face="Arial, Helvetica, sans-serif"><a href="#Junior (korrekt):">Match
i "Juniorkode (korrekt</a></font><a href="#Junior (korrekt):"><font
color="#FFFFFF">)"</font></a></b></p>
</form></td>
</tr>
<tr>
<td width="100%"><form name="matchjuniorData2">
<p align="left">
<input name="outmatchjuniorText2" size="2" wrap="VIRTUAL"><b><font color="#FFFFFF" size="3" face="Arial, Helvetica, sans-serif"><a href="#Junior (omvendt):">Match
i "Juniorkode (omvendt</a></font><a href="#Junior (omvendt):"><font
color="#FFFFFF">)"</font></a></b></p>
</form></td>
</tr>
<tr>
<td width="100%"><form name="matchseniorData">
<p align="left">
<input name="outmatchseniorText" size="2" wrap="VIRTUAL"><b><font color="#FFFFFF" size="3" face="Arial, Helvetica, sans-serif"><a href="#Senior (korrekt):">Match
i "Seniorkode (korrekt</a></font><a href="#Senior (korrekt):"><font
color="#FFFFFF">)"</font></a></b></p>
</form></td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
</table>
</td>
</tr>
</table>
</center>
<p align="left"> </p>
</body>
</html>
men jeg ville gerne have det sådan at de koder der har "0" match slet ikke bliver vist i ordfinderen, og at de bliver soteret i rækkefølge ¨ådan at den med flest match er i toååen
klik her for at se min kode "live"
http://www.strandboerne.dk/kode.htmprøv at skriv "zn oym zn" i Kildetekst