/* file format Unicode (UTF-8, no BOM) */

text = "";

m0 = new Array( "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z","SCH","CH","CK","DH","PH","SS","TH","TS","TZ");
m1 = new Array(1488,1489,1490,1491,1488,1508,1490,1492,1488,1497,1499,1500,1502,1504,1488,1508,1511,1512,1494,1496,1488,1493,1489,1495,1506,1494, 1513,1495,1495,1491,1508,1494,1496,1510,1510);
m2 = new Array(1506,1000,1000,1000,1506,1000,1000,1000,1497,1000,1511,1000,1000,1000,1493,1000,1000,1000,1505,1514,1493,1000,1493,1514,1497,1510, 1000,1499,1499,1000,1000,1513,1510,1000,1000);
m3 = new Array(1020,1000,1000,1000,1020,1000,1000,1000,1506,1000,1000,1000,1000,1000,1506,1000,1000,1000,1513,1000,1506,1000,1000,1000,1000,1000, 1000,1511,1511,1000,1000,1000,1514,1000,1000);
m4 = new Array(1000,1000,1000,1000,1000,1000,1000,1000,1020,1000,1000,1000,1000,1000,1020,1000,1000,1000,1000,1000,1020,1000,1000,1000,1000,1000, 1000,1000,1000,1000,1000,1000,1000,1000,1000);
m5 = new Array("vu","zu","zu","zu","vu","zu","zu","zu","vu","zu","ku","zu","zu","zu","vu","zu","zu","zu","ku","ku","vu","zu","ku","ku","ku","ku","zu", "ku","ku","zu","zu","ku","ku","zu","zu");

endzeichen = new Array(1498,1501,1503,1507,1509);
glyphen =  new Array(1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1499,1500,1502,1504,1505,1506,1508,1510,1511,1512,1513,1514,1498,1501,1503,1507,1509,1020);
zahlen =   new Array(   1,   2,   3,   4,   5,   6,   7,   8,   9,  10,  20,  30,  40,  50,  60,  70,  80,  90, 100, 200, 300, 400,  20,  40,  50,  80,  90,   0);
athbasch = new Array( 400, 300, 200, 100,  90,  80,  70,  60,  50,  40,  30,  20,  10,   9,   8,   7,   6,   5,   4,   3,   2,   1,  30,  10,   9,   6,   5,   0);
verborg2 = new Array( 110, 410,  70, 430,  10,  16,  60, 400, 400,  10,  80,  44,  40,  56,  48,  60,   5,  14,  86, 310,  60,   6,  80,  40,  56,   5,  14,1020);
verborg3 = new Array(1020,1020,1020,1020,   5,   7,1020,1020,1020,   4,1020,1020,1020,1020,1020,1020,1020,1020,1020,1020,1020,1020,1020,1020,1020,1020,1020,1020);
verborg4 = new Array(1020,1020,1020,1020,   1,   6,1020,1020,1020,1020,1020,1020,1020,1020,1020,1020,1020,1020,1020,1020,1020,1020,1020,1020,1020,1020,1020,1020);
verborg5 = new Array("wz","wz","wz","wz","wu","wu","wz","wz","wz","wu","wz","wz","wz","wz","wz","wz","wz","wz","wz","wz","wz","wz","wz","wz","wz","wz","wz","sp");

deutung = new Array("Schöpfer, Schöpferkraft",
"Dualität, Polarität",
"Synthese, Verbindung",
"Öffnung (Liebe)",
"Sichtweise, Erkennen",
"Verbindung",
"Vielheit",
"Zusammenfassung",
"Spiegel, das Neue",
"Gott",
"Aktivität",
"treibende Kraft",
"Zeit",
"Existenz",
"Raumzeit",
"Augenblick/Quelle",
"Sprache",
"Geburt",
"wirklicher Mensch/Affe",
"rationale Logik/Logos",
"Gedanken",
"Erscheinungen",
"göttliche Aktivität",
"statische Zeit",
"inkarnierte Existenz",
"Endsprache (Frängisch)",
"Gottgeburt");


function setAttribute(x,a){
document.getElementById(x).setAttribute('className',a);
document.getElementById(x).setAttribute('class',a);
}

function getAttribute(x){
var a = document.getElementById(x).getAttribute('className');
if (a != null){return a}
var a = document.getElementById(x).getAttribute('class');
if (a != null){return a}
}

function setVisibility(x,a){
document.getElementById(x).style.visibility = a;
}

function setText(x,a){
document.getElementById(x).firstChild.nodeValue = a;
}

function select(x){
var a = getAttribute(x);
if (a == 'wu'){setAttribute(x,'ws');}
if (a == 'ku'){setAttribute(x,'ks');}
if (a == 'vu'){setAttribute(x,'vs');}
if (a == 'bu'){setAttribute(x,'bs');}
if (a == 'cu'){setAttribute(x,'cs');}
}

function unselect(x){
var a = getAttribute(x);
if (a == 'ws'){setAttribute(x,'wu');}
if (a == 'ks'){setAttribute(x,'ku');}
if (a == 'vs'){setAttribute(x,'vu');}
if (a == 'bs'){setAttribute(x,'bu');}
if (a == 'cs'){setAttribute(x,'cu');}
}

function clr(c){
if (c == 0){document.f.e.value = "";}
document.f.a.value = "";
document.f.e.focus();
hidden(0);
setAttribute('b0','bz');
setAttribute('b1','bz');
setAttribute('b2','cz');
setAttribute('b3','cz');
setAttribute('b4','cz');
setAttribute('b5','bz');
setAttribute('b6','cz');
document.f.c.value = "";
document.h.anf.value = "";
document.f.t.value = "";
document.h.za.value = "";
document.h.ath.value = "";
document.h.vol.value = "";
document.h.vrb.value = "";
document.h.pyr.value = "";
}

function hidden(h){
for (i = h; i < 80; i++){
x = 'id'+String(eval(i+1));
setVisibility(x,"hidden");
setText(x," ");setAttribute(x,"sp");}
}

function cli(x){
var a = getAttribute(x);
if (a == "ws"){choose2(x,"wz");}
if (a == "ks"){choose(x,"zu");}
if (a == "vs"){choose(x,"zu");}
}

function main(x){
var a = getAttribute(x);
if (a != "bz"){
hidden(0);
setAttribute('b2','cz');
setAttribute('b3','cz');
setAttribute('b4','cz');
setAttribute('b5','bz');
setAttribute('b6','cz');
document.f.c.value = "";
document.h.anf.value = "";
document.f.t.value = "";
document.h.za.value = "";
document.h.ath.value = "";
document.h.vol.value = "";
document.h.vrb.value = "";
su = new Array(0,0,0,0,0,0);
su[0] = new Array(0);su[1] = new Array(0);su[2] = new Array(0);su[3] = new Array(0);su[4] = new Array(0);su[5] = new Array(0);
transForm2();
visible();
check();}
}

function aktivate(){
clr(1);
text = document.f.e.value; 
vowels();
setUpperCase();
transForm1();
if (text.length > 0){setAttribute('b1','bu');}
if (text.length > 0){setAttribute('b0','bu');}
}

function control(){
var chr = "";
txte = document.f.e.value;
txta = document.f.a.value;
txta = txta.replace(/-/ig,"");
txe = txte.split("");
txa = txta.split("");
for (i = 0; i < txa.length; i++){if (txa[i] != txe[i]){chr = txa[i];txta = txta.substr(0,i)+txta.substr(i+1);;i = txa.length}}
if (text.charAt(0) == "-"){transForm1();}
if (text.charAt(text.length-1) == "-"){transForm1();}
if (txta != txte){transForm1();}
if (chr != ""){transForm1();}
else {text = document.f.a.value;}
if (text.charAt(0) == "-"){text = text.substr(1);document.f.a.value = text;}
if (text.charAt(text.length-1) == "-"){text = text.substr(0,text.length-1);document.f.a.value = text;}
text = text.replace(/sc-h/ig,"S-C-H");
text = text.replace(/--/ig,"-");
document.f.a.value = text;
}

function vowels(){
text = document.f.e.value; 
text = text.replace(/ä/ig,"ae");
text = text.replace(/ö/ig,"oe");
text = text.replace(/ü/ig,"ue");
text = text.replace(/ß/ig,"ss");
text = text.replace(/[^a-zA-Z]/ig,"");
document.f.e.value = text;
}

function setUpperCase(){
text = document.f.e.value; 
document.f.e.value = text.toUpperCase();
}

function transForm1(){
text = document.f.e.value;
text = text.replace(/sch/ig,"1");
text = text.replace(/ch/ig,"2");
text = text.replace(/ck/ig,"3");
text = text.replace(/dh/ig,"4");
text = text.replace(/ph/ig,"5");
text = text.replace(/ss/ig,"6");
text = text.replace(/th/ig,"7");
text = text.replace(/ts/ig,"8");
text = text.replace(/tz/ig,"9");
tr = text.split("");
text = "";
for (i = 0; i < tr.length; i++){text = text+"-"+tr[i];}
text = text.substring(1);
text = text.replace(/1/ig,"SCH");
text = text.replace(/2/ig,"CH");
text = text.replace(/3/ig,"CK");
text = text.replace(/4/ig,"DH");
text = text.replace(/5/ig,"PH");
text = text.replace(/6/ig,"SS");
text = text.replace(/7/ig,"TH");
text = text.replace(/8/ig,"TS");
text = text.replace(/9/ig,"TZ");
document.f.a.value = text;
}

function transForm2(){
text = document.f.a.value;
tr = text.split("-");
for (i = 0; i < tr.length; i++){for (k = 0; k < m0.length; k++){if (tr[i] == m0[k]){
su[0][su[0].length] = m0[k];su[1][su[1].length] = m1[k];su[2][su[2].length] = m2[k];su[3][su[3].length] = m3[k];su[4][su[4].length] = m4[k];su[5][su[5].length] = m5[k];}}}
su[0] == su[0].reverse();su[1] = su[1].reverse();su[2] = su[2].reverse();su[3] = su[3].reverse();su[4] = su[4].reverse();su[5] = su[5].reverse();
}

function transForm3(){
text = "";
for (i = 0; i < su[1].length; i++){if (su[1][i] == 1020){text = text+"";} else {text = text+String.fromCharCode(su[1][i]);}
if (text.length == 1){
for (k = 0; k < endzeichen.length; k++){
if (su[1][i] == endzeichen[k]+1){su[1][i] = endzeichen[k];}}
if (su[0][i] == "A"){transForm4(i);}
if (su[0][i] == "E"){transForm4(i);}
}}
hidden(0);
visible();
}

function transForm4(i){
su[1][i] = 1488;
su[2][i] = 1492;
su[3][i] = 1506;
su[4][i] = 1020;
}

function choose(x,attr){
x = eval(x.substr(2));
if (x > 60 && x <= 80){a = x-61;su[0][a] = "";su[1][a] = su[4][a];su[2][a] = 1000;su[3][a] = 1000;su[4][a] = 1000;su[5][a] = attr;}
if (x > 40 && x <= 60){a = x-41;su[0][a] = "";su[1][a] = su[3][a];su[2][a] = 1000;su[3][a] = 1000;su[4][a] = 1000;su[5][a] = attr;}
if (x > 20 && x <= 40){a = x-21;su[0][a] = "";su[1][a] = su[2][a];su[2][a] = 1000;su[3][a] = 1000;su[4][a] = 1000;su[5][a] = attr;}
if (x > 0 && x <= 20){a = x-1;su[0][a] = "";su[1][a] = su[1][a];su[2][a] = 1000;su[3][a] = 1000;su[4][a] = 1000;su[5][a] = attr;}
hidden(0);
visible();
check();
}

function visible(){
for (i = 0; i < su[5].length; i++){
x = 'id'+String(eval(i+1));
if (su[1][i] != 1000){setVisibility(x,"visible");setAttribute(x,su[5][i]);}
if (su[1][i] == 1020){setText(x," ");}
if (su[1][i] > 1020){setText(x,String.fromCharCode(su[1][i]));}
x = 'id'+String(eval(i+21));
if (su[2][i] != 1000){setVisibility(x,"visible");setAttribute(x,su[5][i]);}
if (su[2][i] == 1020){setText(x," ");}
if (su[2][i] > 1020){setText(x,String.fromCharCode(su[2][i]));}
x = 'id'+String(eval(i+41));
if (su[3][i] != 1000){setVisibility(x,"visible");setAttribute(x,su[5][i]);}
if (su[3][i] == 1020){setText(x," ");}
if (su[3][i] > 1020){setText(x,String.fromCharCode(su[3][i]));}
x = 'id'+String(eval(i+61));
if (su[4][i] != 1000){setVisibility(x,"visible");setAttribute(x,su[5][i]);}
if (su[4][i] == 1020){setText(x," ");}
if (su[4][i] > 1020){setText(x,String.fromCharCode(su[4][i]));}
}}

function check(){
transForm3();
combi();
cl = 0;
hebrew = "";
for (i = 0; i < su[5].length; i++){if (su[5][i] != "zu"){cl = cl+1}}
if (cl == 0){for (i = 0; i < su[1].length; i++){if (su[1][i] != 1020){hebrew = String.fromCharCode(su[1][i])+hebrew;}}
document.h.anf.value = hebrew;
setAttribute('b2','cu');
setAttribute('b3','cu');
setAttribute('b4','cu');
setAttribute('b5','bu');
setAttribute('b6','cu');
setDeutung();
gesamtWert();
athbaschWert();
pyramidenWert();
}}

function calc(x){
var a = getAttribute(x);
if (a != "bz"){
document.h.vol.value = "";
document.h.vrb.value = "";
su[5] = new Array(0);
sv2 = new Array(0);sv3 = new Array(0);sv4 = new Array(0);
su[2] = new Array(0);su[3] = new Array(0);su[4] = new Array(0);
for (i = 0; i < su[1].length; i++){for (k = 0; k < glyphen.length; k++){
if (su[1][i] == glyphen[k]){
sv2[sv2.length] = verborg2[k]+zahlen[k];su[2][su[2].length] = verborg2[k];
sv3[sv3.length] = verborg3[k]+zahlen[k];su[3][su[3].length] = verborg3[k];
sv4[sv4.length] = verborg4[k]+zahlen[k];su[4][su[4].length] = verborg4[k];
su[5][su[5].length] = verborg5[k];}
}}
visible2();
check2();
}}

function choose2(x,attr){
x = eval(x.substr(2));
if (x > 60 && x <= 80){a = x-61;sv2[a] = sv4[a];su[2][a] = su[4][a];su[3][a] = 1020;su[4][a] = 1020;su[5][a] = attr;}
if (x > 40 && x <= 60){a = x-41;sv2[a] = sv3[a];su[2][a] = su[3][a];su[3][a] = 1020;su[4][a] = 1020;su[5][a] = attr;}
if (x > 20 && x <= 40){a = x-21;sv2[a] = sv2[a];su[2][a] = su[2][a];su[3][a] = 1020;su[4][a] = 1020;su[5][a] = attr;}
hidden(20);
visible2();
check2();
}

function visible2(){
rt = String.fromCharCode(13,10);
sp1 = String.fromCharCode(160);
sp2 = String.fromCharCode(160,160);
sp3 = String.fromCharCode(160,160,160);
for (i = 0; i < su[5].length; i++){
x = 'id'+String(eval(i+21));
if (su[2][i] != 1000){setVisibility(x,"visible");setAttribute(x,su[5][i]);}
text1 = ""
if (String(sv2[i]).length == 3){text1 = sp1+String(sv2[i]);}
if (String(sv2[i]).length == 2){text1 = sp2+String(sv2[i]);}
if (String(sv2[i]).length == 1){text1 = sp3+String(sv2[i]);}
text2 = ""
if (String(su[2][i]).length == 3){text2 = sp1+String(su[2][i]);}
if (String(su[2][i]).length == 2){text2 = sp2+String(su[2][i]);}
if (String(su[2][i]).length == 1){text2 = sp3+String(su[2][i]);}
if (su[2][i] != 1020){setText(x,text1+rt+text2);}
if (su[2][i] == 1020){setText(x," ");setAttribute(x,"sp");}
x = 'id'+String(eval(i+41));
if (su[3][i] != 1000){setVisibility(x,"visible");setAttribute(x,su[5][i]);}
text1 = ""
if (String(sv3[i]).length == 3){text1 = sp1+String(sv3[i]);}
if (String(sv3[i]).length == 2){text1 = sp2+String(sv3[i]);}
if (String(sv3[i]).length == 1){text1 = sp3+String(sv3[i]);}
text2 = ""
if (String(su[3][i]).length == 3){text2 = sp1+String(su[3][i]);}
if (String(su[3][i]).length == 2){text2 = sp2+String(su[3][i]);}
if (String(su[3][i]).length == 1){text2 = sp3+String(su[3][i]);}
if (su[3][i] != 1020){setText(x,text1+rt+text2);}
if (su[3][i] == 1020){setText(x," ");setAttribute(x,"sp");}
x = 'id'+String(eval(i+61));
if (su[4][i] != 1000){setVisibility(x,"visible");setAttribute(x,su[5][i]);}
text1 = ""
if (String(sv4[i]).length == 3){text1 = sp1+String(sv4[i]);}
if (String(sv4[i]).length == 2){text1 = sp2+String(sv4[i]);}
if (String(sv4[i]).length == 1){text1 = sp3+String(sv4[i]);}
text2 = ""
if (String(su[4][i]).length == 3){text2 = sp1+String(su[4][i]);}
if (String(su[4][i]).length == 2){text2 = sp2+String(su[4][i]);}
if (String(su[4][i]).length == 1){text2 = sp3+String(su[4][i]);}
if (su[4][i] != 1020){setText(x,text1+rt+text2);}
if (su[4][i] == 1020){setText(x," ");setAttribute(x,"sp");}
}}

function check2(){
combi2();
cl = 0;
for (i = 0; i < su[5].length; i++){if (su[5][i] == "wu"){cl = cl+1}}
if (cl == 0){
vollerWert();
verborgenerWert();}
}

function setDeutung(){
var text = "";
hebrew = document.h.anf.value; 
hebrew = hebrew.split("");
for (i = 0; i < hebrew.length; i++){for (k = 0; k < glyphen.length; k++){
if (hebrew[i] == String.fromCharCode(glyphen[k])){deuten = deutung[k]+String.fromCharCode(13,10);text = text.concat(deuten);}}}
document.f.t.value = text;
}

function gesamtWert(){
var text = "";var summe = 0;
hebrew = document.h.anf.value;
hebrew = hebrew.split("");
for (i = 0; i < hebrew.length; i++){for (k = 0; k < glyphen.length; k++){
if (hebrew[i] == String.fromCharCode(glyphen[k])){zahl = "-"+zahlen[k];text = text.concat(zahl);summe = summe + zahlen[k];}}}
if (text.charAt(0) == "-"){text = text.substring(1);}
if (summe == 0){text = "0";}
document.h.za.value = text+"  ÄußererWert = "+summe;
}

function athbaschWert(){
var text = "";var summe = 0;
hebrew = document.h.anf.value; 
hebrew = hebrew.split("");
for (i = 0; i < hebrew.length; i++){for (k = 0; k < glyphen.length; k++){
if (hebrew[i] == String.fromCharCode(glyphen[k])){zahl = "-"+athbasch[k];text = text.concat(zahl);summe = summe + athbasch[k];}}}
if (text.charAt(0) == "-"){text = text.substring(1);}
if (summe == 0){text = "0";}
document.h.ath.value = text+"  AthbaschWert = "+summe;
}

function vollerWert(){
var text = "";var summe = 0;sv2.reverse();
for (i = 0; i < sv2.length; i++){if (sv2[i] < 1000){wert = "-"+sv2[i];text = text.concat(wert);summe = summe + sv2[i];}}
if (text.charAt(0) == "-"){text = text.substring(1);}
if (summe == 0){text = "0";}
document.h.vol.value = text+"  VollerWert = "+summe;
}

function verborgenerWert(){
var text = "";var summe = 0;su[2].reverse();
for (i = 0; i < su[2].length; i++){if (su[2][i] < 1000){wert = "-"+su[2][i];text = text.concat(wert);summe = summe + su[2][i];}}
if (text.charAt(0) == "-"){text = text.substring(1);}
if (summe == 0){text = "0";}
document.h.vrb.value = text+"  VerborgenerWert = "+summe;
}

function pyramidenWert(){
var text = "";var summe = 0;
hebrew = document.h.anf.value;
hebrew = hebrew.split("");
for (i = 0; i < hebrew.length; i++){for (k = 0; k < glyphen.length; k++){
if (hebrew[i] == String.fromCharCode(glyphen[k])){zahl = "-("+(hebrew.length-i)+"*"+zahlen[k]+")";text = text.concat(zahl);summe = summe + (hebrew.length-i)*zahlen[k];}}}
if (text.charAt(0) == "-"){text = text.substring(1);}
if (summe == 0){text = "0";}
if (text.length > 80){text = "[Berechnung ...]";}
document.h.pyr.value = text+"  PyramidenWert = "+summe;
}

function sendholofeeling(x){
var a = getAttribute(x);
if (a == "cs"){convert();hebrew = encodeURIComponent(document.h.anf.value);
window.open("http://gematrie.holofeeling.net/index.php?dsPerPage=10&suchfeld=heb&suchtext="+hebrew,"GEMATRIE-Explorer");}
}

function sendBabylon(x){
var a = getAttribute(x);
if (a == "cs"){convert();hebrew = encodeURIComponent(document.h.anf.value);
window.open("http://www.babylon.com/definition/"+hebrew+"/German","Babylon");}
}

function sendHebDe(x){
var a = getAttribute(x);
if (a == "cs"){convert();hebrew = encodeURIComponent(document.h.anf.value);
window.open("http://www.hebde.org/search.aspx?src="+hebrew,"HebDe");}
}

function sendMilonLi(x){
var a = getAttribute(x);
if (a == "cs"){convert();document.h.submit();}
}

function convert(){
text = document.h.anf.value;
t = text.split('');
for (i = 0; i < t.length-1; i++){
if (t[i].charCodeAt(0) == 1498){t[i] = String.fromCharCode(1499);}
if (t[i].charCodeAt(0) == 1501){t[i] = String.fromCharCode(1502);}
if (t[i].charCodeAt(0) == 1503){t[i] = String.fromCharCode(1504);}
if (t[i].charCodeAt(0) == 1507){t[i] = String.fromCharCode(1508);}
if (t[i].charCodeAt(0) == 1509){t[i] = String.fromCharCode(1510);}}
document.h.anf.value = t.join('');
}

function combi(){
co = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
prz = 1;
text = document.f.a.value;
tr = text.split("-");
for (i = 0; i < tr.length; i++){for (k = 1; k <= 4; k++){if (su[k][i] != 1000){co[i] = co[i]+1;}}}
for (i = 0; i < tr.length; i++){if (co[i] == 0){co[i] = 1;};prz = prz*co[i];}
txt ="";if (prz > 1){txt = "en"}
prs = String(prz).split("");prs = prs.reverse();text = "";
for (i = 0; i < prs.length; i++){text = prs[i]+text;if ((i+1)%3 == 0){text = "."+text;}}
if (text.charAt(0) == "."){text = text.substring(1);}
if (prz == 1){text = "Eine"}
document.f.c.value = text+" Kombination"+txt+" für diese RADIX";
}

function combi2(){
co = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
prz = 1;
text = document.f.a.value;
tr = text.split("-");
for (i = 0; i < tr.length; i++){for (k = 2; k <= 4; k++){if (su[k][i] != 1020){co[i] = co[i]+1;}}}
for (i = 0; i < tr.length; i++){if (co[i] == 0){co[i] = 1;};prz = prz*co[i];}
txt ="";if (prz > 1){txt = "en"}
prs = String(prz).split("");prs = prs.reverse();text = "";
for (i = 0; i < prs.length; i++){text = prs[i]+text;if ((i+1)%3 == 0){text = "."+text;}}
if (text.charAt(0) == "."){text = text.substring(1);}
if (prz == 1){text = "Eine"}
document.f.c.value = text+" Kombination"+txt+" für Voller- bzw. Verborgener Wert";
}

function clr2(){
setAttribute('b1','bz');
setAttribute('b2','cz');
setAttribute('b3','cz');
setAttribute('b4','cz');
setAttribute('b6','cz');
document.h.t.value = "";
document.h.anf.value = "";
document.h.za.value = "";
}

function cli2(x){
text = document.h.anf.value;
text = text.concat(String.fromCharCode(glyphen[x-1]));
document.h.anf.value = text;
setNum(x);setBed(x);
if (text.length > 0){setAttribute('b1','bu');}
if (text.length > 0){setAttribute('b2','cu');}
if (text.length > 0){setAttribute('b3','cu');}
if (text.length > 0){setAttribute('b4','cu');}
if (text.length > 0){setAttribute('b6','cu');}
}

function setNum(x){
x = String.fromCharCode(glyphen[x-1])
var text = "";
text = document.h.za.value;
for (i = 0; i < glyphen.length; i++)
if (x.charCodeAt(0) == glyphen[i]){zahl = "-"+zahlen[i];text = text.concat(zahl);}
if (text.charAt(0) == "-"){text = text.substring(1);}
document.h.za.value = text;
}

function setBed(x){
x = String.fromCharCode(glyphen[x-1])
var text = "";
text = document.h.t.value;
for (i = 0; i < glyphen.length; i++)
if (x.charCodeAt(0) == glyphen[i]){deut = deutung[i]+String.fromCharCode(13,10);text = text.concat(deut);}
document.h.t.value = text;
}

function clr3(){
setAttribute('b11','bz');
setAttribute('b14','cz');
setAttribute('b12','cz');
setAttribute('b13','cz');
setAttribute('b16','cz');
document.d.anf.value = "";
document.d.anf.focus();
}

function aktivate2(){
text = document.d.anf.value; 
if (text.length > 0){setAttribute('b11','bu');}
if (text.length > 0){setAttribute('b14','cu');}
if (text.length > 0){setAttribute('b12','cu');}
if (text.length > 0){setAttribute('b13','cu');}
if (text.length > 0){setAttribute('b16','cu');}
}

function sendholofeeling3(x){
var a = getAttribute(x);
if (a == "cs"){deutsch = encodeURIComponent(document.d.anf.value);
window.open("http://gematrie.holofeeling.net/index.php?dsPerPage=10&suchfeld=deu&suchtext="+deutsch,"GEMATRIE-Explorer");}
}

function sendBabylon3(x){
var a = getAttribute(x);
if (a == "cs"){deutsch = encodeURIComponent(document.d.anf.value);
window.open("http://www.babylon.com/definition/"+deutsch+"/Hebrew","Babylon");}
}

function sendHebDe3(x){
var a = getAttribute(x);
if (a == "cs"){deutsch = encodeURIComponent(document.d.anf.value);
window.open("http://www.hebde.org/search.aspx?src="+deutsch,"HebDe");}
}

function sendMilonLi3(x){
var a = getAttribute(x);
if (a == "cs"){document.d.submit();}
}






