// JavaScriptBibliothek
// 1998-1999, sinErgo, Szócska
////////////////////////////////////////////////////////////////////////////////////////
// általános függvények
////////////////////////////////////////////////////////////////////////////////////////
// alert("js.bibl");
function eintragen(oldal) {
var prov = window.location.hostname;
// alert(prov + oldal);
if (prov != "localhost") {
var tgt = "http://www.excite.de/cgi/guide_add_url.cgi?url=" + prov + oldal + "&email=szocska.janos@excite.de&webmaster_name=Szócska, János&webmaster_email=szocska.janos@excite.de&languages= &country=Deutschland &look=excite";
top.jobbra.location.href = tgt;
}
}
function ansicht(ziel) {
top.seite = top.lent.inhalt.location;
// alert(top.seite);
top.lent.inhalt.location.href = "/sinergo.tri/" + ziel;
}
function eMailAdr() {
var erg = "mailto:info@";
var mailAdr = window.location.hostname;
var l = mailAdr.length;
if (mailAdr.substring(0, 3) == "www") {
erg += mailAdr.substring(4, l);
} else {
erg += mailAdr;
}
return erg;
}
function sinergoMailAdr() {
return "mailto:sinergo@web.de";
}
function eMailAdrKlick() {
return "" + eMailAdr() + "\n";
}
function refMailAdr(pont) {
return "\n";
}
function selfoc1(feld) {
feld.focus()
}
function weiter(seite) {
top.inhalt.location.href = seite;
}
function helpWindow(helpfile) {
openpopup = window.open(helpfile, "popupwin", "width=300, height=250, left=5, top=400, scrollbars=yes, resizable=yes,");
openpopup.opener.name = "opener";
}
function gross() {
top.resizeTo(640, 450);
}
function klein() {
top.resizeTo(300, 250);
}
function csukdbe(delay) {
for (i=0; i= document.DDFORM.DDMENU.length) {
sIndex = 1;
}
document.DDFORM.DDMENU.options[sIndex].selected = true;
top.inhalt.location.href = document.DDFORM.DDMENU.options[document.DDFORM.DDMENU.selectedIndex].value;
} else {
alert("Klicken Sie bitte aus das nebenstehende Feld!");
}
}
function displayErrorMsg() {
alert(errorMsg);
}
function isSomeFieldsEmpty() {
var returnVal3 = false;
if (document.WfLoginForm.KEY_USERNAME.value == "" || document.WfLoginForm.KEY_USERNAME.value == null) {
errorMsg += " " + "Benutzername" + "\n";
returnVal3 = true;
}
if (document.WfLoginForm.KEY_PASSWORD.value == "" || document.WfLoginForm.KEY_PASSWORD.value == null) {
errorMsg += " " + "Paßwort" + "\n";
returnVal3 = true;
}
return (returnVal3);
}
function upCase(text) {
var erg = "";
var l = text.length;
var ch = "";
for (var i = 0; i < l; i++) {
ch = text.substring(i, i + 1);
switch (ch) {
case "ä" : erg += "Ä"; break;
case "ö" : erg += "Ö"; break;
case "ü" : erg += "Ü"; break;
case "ß" : erg += "SS"; break;
default : erg += ch.toUpperCase(); break;
}
}
return erg;
} // upCase
function GetBasis() {
var Temp;
var Len;
Temp = location.pathname;
Len = Temp.length;
for (var i = Len - 1; i >= 0; i--) {
if ((Temp.charAt(i) == '/') || (Temp.charAt(i) == '\\')) break;
}
return Temp.substring(0, i + 1);
} // GetBasis
function runden(wert) {
k = (Math.round(100 * (wert + 0.00001)) / 100 + 0.001) + '';
k = k.substring(0, k.indexOf('.') + 3);
return k;
} // runden
////////////////////////////////////////////////////////////////////////////////////////
// explorer like tree functions
////////////////////////////////////////////////////////////////////////////////////////
// objekt Menüeintrag
function fejezet(Nr, Link, Titel) {
this.Nr = Nr;
this.Titel = Titel;
this.Link = Link;
this.Ebene = 0;
for (var i = 0; i < Nr.length; i++) {
if (Nr.charAt(i) == '.') {
this.Ebene++;
}
}
this.Status = 0
} // fejezet
// Objekt "Menü(MaxIndex)"
function kTyp(MaxIndex) {
this.length = MaxIndex;
this.Add = kTyp_Add;
this.Change = kTyp_Change;
this.Open = kTyp_Open;
this.Goto = kTyp_Goto;
this.Goto1 = kTyp_Goto1;
this.Find = kTyp_Find;
this.Inhalt = kTyp_Inhalt;
this.Leer = "";
this.Anz = 0;
this.Index = 0;
return this;
} // kTyp
function kTyp_Add(zwg) {
this[this.Anz] = zwg;
if (this.Anz > 0) {
if (this[this.Anz - 1].Ebene < this[this.Anz].Ebene) {
this[this.Anz - 1].Status = 1;
}
}
this.Anz++;
} // kTyp_Add
function kTyp_Change(Index) {
this[Index].Status = 3 - this[Index].Status; // aus 2 wird 1, aus 1 wird 2
this.Index = Index;
top.lent.nav.location = 'JavaScript:top.Menu.Inhalt(' + Index + ')';
} // kTyp_Change
function kTyp_Open(Index) {
this[Index].Status = 2;
this.Index = Index;
top.lent.nav.location = 'JavaScript:top.Menu.Inhalt(' + Index + ')';
} // kTyp_Open
function kTyp_Goto(Index) {
if (this[Index].Status == 1) this[Index].Status = 2;
this.Index = Index;
top.lent.nav.location = 'JavaScript:top.Menu.Inhalt(' + Index + ')';
top.lent.inhalt.location = this[Index].Link;
top.sbg = top.lent.nav.document.FRMKERES.SBG.value;
} // kTyp_Goto
function kTyp_Goto1(Index) {
if (this[Index].Status == 1) this[Index].Status = 2;
this.Index = Index;
top.lent.nav.location = 'JavaScript:top.Menu.Inhalt(' + Index + ')';
if (navigator.appName.substring(0, 9) == "Netscape") {
top.lent.inhalt.location.href = "." + this[Index].Link;
} else {
top.lent.inhalt.location.href = this[Index].Link;
}
top.sbg = top.lent.nav.document.FRMKERES.SBG.value;
} // kTyp_Goto1
function kTyp_Find(Name, TextLink) {
var i;
for (i=0; i";
// alert("kTyp_Inhalt(" + Index + ")");
HTML += "\n";
HTML += "
\n\n
\n";
HTML += "\n";
for (var i=0; i < this.Anz; i++) {
with (this[i]) {
Einrueck = "\n";
for (var j = 0; j0) Grafik = Grafik.link("JavaScript:top.Menu.Change(" + i + ")");
Text = (Titel).link("JavaScript:top.Menu.Goto(" + i + ")");
HTML += Einrueck + Grafik + space + "\n\n" + Text + "\n" + "
\n";
while ((Status == 1) && (i©1997-2002 sinErgo®, Szócska";
return HTML + "\n