|
|
|
|
|
|
|
|
|
function versteckeText(DerDiv)
|
|
|
|
|
{
|
|
|
|
|
w = DynLayer.getInline(DerDiv);
|
|
|
|
|
//w.setAutoSize(true,true)
|
|
|
|
|
w.setVisible(false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function zeigeText(DerDiv)
|
|
|
|
|
{
|
|
|
|
|
w = DynLayer.getInline(DerDiv);
|
|
|
|
|
//w.setAutoSize(true,true)
|
|
|
|
|
w.setVisible(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function zeigeText_alt(DerDiv)
|
|
|
|
|
{
|
|
|
|
|
//alert(document.forms[0].elements.length);
|
|
|
|
|
//for(var i=0;i<=document.forms[0].elements.length;i++)
|
|
|
|
|
//{
|
|
|
|
|
// if(document.forms[0].elements[i].type.indexOf("select")>-1 )
|
|
|
|
|
// {
|
|
|
|
|
//alert(document.forms[0].elements[i].name + document.forms[0].elements[i].type + document.forms[0].elements[i].type.indexOf("select"));
|
|
|
|
|
//document.forms[0].elements[i].display=false;
|
|
|
|
|
//}
|
|
|
|
|
//}
|
|
|
|
|
meinDiv= new DynLayer(DerDiv);
|
|
|
|
|
alert("hihi" + _UserAgent());
|
|
|
|
|
//meinDiv= new DynLayer();
|
|
|
|
|
//meinDiv.show();
|
|
|
|
|
meinDiv.setVisible(true);
|
|
|
|
|
//delete meinDiv;
|
|
|
|
|
}
|
|
|
|
|
function MoveText(DerDiv)
|
|
|
|
|
{
|
|
|
|
|
meinDiv=new DynLayer(DerDiv)
|
|
|
|
|
meinDiv.path1 = new Path(meinDiv,'path1',
|
|
|
|
|
new Array(90,92,94,97,100,103,107,111,116,120,125,130,135,140,146,151,156,161,167,172,177,183,189,196,203,210,218,227,235,244,252,260,267,273,279,284,288,291,293,294,295,294,293,291,288,285,282,278,274,270,266,263,260,257,254,252,251,251,251,253,255,257,261,266,271,277,284,292,300,310,320,332,344,357,371,385,398,412,424,435),
|
|
|
|
|
new Array(73,73,72,72,73,73,74,75,77,79,82,85,89,94,101,108,116,125,136,147,158,169,180,191,200,208,215,221,226,229,231,231,230,228,225,220,215,209,202,194,187,179,171,163,155,147,139,132,126,119,114,109,104,100,96,92,88,84,81,77,74,71,68,66,64,63,63,64,65,68,73,79,86,96,107,119,131,143,155,165));
|
|
|
|
|
meinDiv.path1.play();
|
|
|
|
|
delete meinDiv;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function MoveTextHorizontal(DerDiv,x1,x2,y,speed)
|
|
|
|
|
{
|
|
|
|
|
meinDiv=new DynLayer(DerDiv)
|
|
|
|
|
var xArray=new Array();
|
|
|
|
|
var yArray=new Array();
|
|
|
|
|
for(var i=0;i<=x2-x1;i++)
|
|
|
|
|
{
|
|
|
|
|
xArray[i]=x1+speed;
|
|
|
|
|
x1=x1+speed;
|
|
|
|
|
yArray[i]=y;
|
|
|
|
|
}
|
|
|
|
|
meinDiv.path1 = new Path(meinDiv,'path1',xArray, yArray);
|
|
|
|
|
meinDiv.path1.play();
|
|
|
|
|
delete meinDiv;
|
|
|
|
|
}
|
|
|
|
|
function create_bookmark(url,caption)
|
|
|
|
|
{
|
|
|
|
|
// (C) 2000 www.CodeLifter.com
|
|
|
|
|
// http://www.codelifter.com
|
|
|
|
|
// Free for all users, but leave in this header
|
|
|
|
|
// message to show in non-IE browsers
|
|
|
|
|
var txt = "Erzeugen Sie ein Lesezeichen";
|
|
|
|
|
// do not edit below this line
|
|
|
|
|
// ===========================
|
|
|
|
|
var ver = navigator.appName;
|
|
|
|
|
var num = parseInt(navigator.appVersion);
|
|
|
|
|
alert(ver);
|
|
|
|
|
if ((ver == "Microsoft Internet Explorer")&&(num >= 4)) {
|
|
|
|
|
document.write('<A HREF="javascript:window.external.AddFavorite(url,caption);" ');
|
|
|
|
|
document.write('onMouseOver=" window.status=');
|
|
|
|
|
document.write("txt; return true ");
|
|
|
|
|
document.write('"onMouseOut=" window.status=');
|
|
|
|
|
document.write("' '; return true ");
|
|
|
|
|
document.write('">'+ txt + '</a>');
|
|
|
|
|
}else{
|
|
|
|
|
txt += " (Ctrl+D)"
|
|
|
|
|
document.write(txt)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Source: CodeFoot.com
|
|
|
|
|
// Please leave in this header.
|
|
|
|
|
|
|
|
|
|
var isReady = false;
|
|
|
|
|
function doSaveAs(){
|
|
|
|
|
if (document.execCommand){
|
|
|
|
|
if (isReady){document.execCommand("SaveAs");}
|
|
|
|
|
}else{
|
|
|
|
|
alert('Der automatische Dialog funktioniert nur im Internet Exlorer 4.0 oder höher. Wählen Sie die Druckversion, und speichern Sie diese mit Datei->Speichern');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function dateAusgabe(wert1,nameFeld)
|
|
|
|
|
{
|
|
|
|
|
var wert = wert1;
|
|
|
|
|
var tag = wert.getDate();
|
|
|
|
|
var monat = wert.getMonth();
|
|
|
|
|
monat = monat + 1;
|
|
|
|
|
var jahr = wert.getYear();
|
|
|
|
|
jahr = jahr + 1900;
|
|
|
|
|
document.forms[0].elements[nameFeld].value=(tag + "." + monat + "." + jahr);
|
|
|
|
|
zeigeCombosIE();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function sucheKey(myArray,feldname,id) //Schl<EFBFBD>ssel Suche im Sichten Fenster
|
|
|
|
|
{
|
|
|
|
|
var eingabe=prompt("Bitte geben Sie einen Schl<EFBFBD>ssel","Suchbegriff");
|
|
|
|
|
var gefunden=false;
|
|
|
|
|
for(var i=1;i < myArray.length;i++)
|
|
|
|
|
{
|
|
|
|
|
if(myArray[i][1]==eingabe)
|
|
|
|
|
{
|
|
|
|
|
alert("gefundener Begriff:"+ myArray[i][2] + "\nwurde <EFBFBD>bernommen");
|
|
|
|
|
document.forms[0].elements[feldname].value=myArray[i][1];
|
|
|
|
|
document.forms[0].elements[feldname+"_str"].value=myArray[i][2];
|
|
|
|
|
|
|
|
|
|
gefunden=true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if(gefunden)
|
|
|
|
|
{
|
|
|
|
|
versteckeText("sichtauswahl"+id);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
alert("nicht gefunden.");
|
|
|
|
|
}
|
|
|
|
|
//alert(myArray[1][1]);
|
|
|
|
|
}
|
|
|
|
|
function showPrompt(id) { //Prompt Fenster indem die gefundenen namen augelistet werden (DIV suchfunktion)
|
|
|
|
|
if(ie5||nn6) {
|
|
|
|
|
moveStatus=0;
|
|
|
|
|
xPrompt=120, yPrompt=80;
|
|
|
|
|
if(ie5) {
|
|
|
|
|
document.getElementById("prompt"+id).style.left=xPrompt+document.body.scrollLeft;
|
|
|
|
|
document.getElementById("prompt"+id).style.top=yPrompt+document.body.scrollTop;
|
|
|
|
|
document.forms[0].elements["promptinput"+id].style.display="inline";
|
|
|
|
|
}
|
|
|
|
|
else if(nn6) {
|
|
|
|
|
document.getElementById("prompt"+id).style.left=xPrompt+window.pageXOffset;
|
|
|
|
|
document.getElementById("prompt"+id).style.top=yPrompt+window.pageYOffset;
|
|
|
|
|
}
|
|
|
|
|
document.forms[0].elements["promptinput"+id].focus();
|
|
|
|
|
}
|
|
|
|
|
else promptAlternative();
|
|
|
|
|
}
|
|
|
|
|
function okPrompt(feldname,feldnameStr,id,tree,array) { //Im Auswahlfenster Suchen OK-Button
|
|
|
|
|
//alert(id+" " + document.forms[0].elements["promptinput"+id].options[1].text+" " + document.forms[0].elements["promptinput"+id].options[1].selected);
|
|
|
|
|
//alert(document.forms[0].elements["promptinput"+id].options[document.forms[0].elements["promptinput"+id].selectedIndex].text+" wird <EFBFBD>bernommen"); //hier wird dann die <EFBFBD>bergabe an die maske passieren
|
|
|
|
|
/*if(id==1)
|
|
|
|
|
{
|
|
|
|
|
if(document.forms[0].elements["promptinput"+id].value!='null')
|
|
|
|
|
{ oeffneMaske("../servlet/SuperXmlMaske;jsessionid=?tid="+document.forms[0].elements["promptinput"+id].value); }
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{*/
|
|
|
|
|
document.forms[0].elements[feldname].value=document.forms[0].elements["promptinput"+id].options[document.forms[0].elements["promptinput"+id].selectedIndex].value;
|
|
|
|
|
//document.forms[0].elements[feldnameStr].value=document.forms[0].elements["promptinput"+id].value;
|
|
|
|
|
document.forms[0].elements[feldnameStr].value=document.forms[0].elements["promptinput"+id].options[document.forms[0].elements["promptinput"+id].selectedIndex].text;
|
|
|
|
|
//}
|
|
|
|
|
abortPrompt(id);
|
|
|
|
|
//Hi Alex, ich habe das erstmal auskommentiert, weil mein Browser
|
|
|
|
|
//hier ne Timeout-Fehlermeldung gibt, und au<EFBFBD>erdem den Ast eh nicht aufklappt.
|
|
|
|
|
//baumparent(tree,array,document.forms[0].elements["promptinput"+id].value);
|
|
|
|
|
} //auch der baum muss hier ge<EFBFBD>ffnet werden
|
|
|
|
|
function abortPrompt(id) { //Im Auswahlfenster Suchen Abbrechen-Button
|
|
|
|
|
document.getElementById("prompt"+id).style.top=-500;
|
|
|
|
|
document.forms[0].elements["promptinput"+id].value="";
|
|
|
|
|
}
|
|
|
|
|
function promptAlternative() { //Wenn kein Javascript angeschaltet ist
|
|
|
|
|
alert("Sorry, aber Ihr Browser ist f<EFBFBD>r dieses Script leider nicht geeignet!");
|
|
|
|
|
}
|
|
|
|
|
function sucheKnoten(myArray,tid) { //Wenn Sie auf Button suchen im Sichten Fenster dr<EFBFBD>cken
|
|
|
|
|
var eingabe=prompt("Bitte geben Sie einen Suchbegriff ein","Suchbegriff");
|
|
|
|
|
var gefunden=false;
|
|
|
|
|
deleteElement(tid);
|
|
|
|
|
for(var i=1;i < myArray.length;i++)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
if(myArray[i][2].indexOf(eingabe) != -1 && myArray[i][1] !='null')
|
|
|
|
|
{
|
|
|
|
|
gefunden=true;
|
|
|
|
|
EintragHinzufuegen(myArray[i][1],myArray[i][2],tid);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(gefunden)
|
|
|
|
|
{
|
|
|
|
|
alert("Die Suche war erfolgreich");
|
|
|
|
|
showPrompt(tid);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{ alert("nicht gefunden."); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function EintragHinzufuegen(name,key,id)
|
|
|
|
|
{
|
|
|
|
|
NeuerEintrag = new Option( key,name, false, true);
|
|
|
|
|
//alert(NeuerEintrag);
|
|
|
|
|
document.forms[0].elements["promptinput"+id].options[document.forms[0].elements["promptinput"+id].options.length] = NeuerEintrag;
|
|
|
|
|
}
|
|
|
|
|
function deleteElement(id) {
|
|
|
|
|
|
|
|
|
|
while(document.forms[0].elements["promptinput"+id].length > 0) {
|
|
|
|
|
document.forms[0].elements["promptinput"+id].options[document.forms[0].elements["promptinput"+id].length - 1] = null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function mehrfachAddElement(feldname,auswahl,feldmaske)
|
|
|
|
|
{
|
|
|
|
|
//Das Element wird der Liste im Popup-Fenster...
|
|
|
|
|
NeuerEintrag = new Option(document.forms[0].elements[auswahl].options[document.forms[0].elements[auswahl].selectedIndex].text, document.forms[0].elements[auswahl].value, false, true);
|
|
|
|
|
document.forms[0].elements[feldname].options[document.forms[0].elements[feldname].options.length] = NeuerEintrag;
|
|
|
|
|
//und in der Maske im einfachen Klappmen<EFBFBD> hinzugef<EFBFBD>gt.
|
|
|
|
|
Eintrag = new Option(document.forms[0].elements[auswahl].options[document.forms[0].elements[auswahl].selectedIndex].text, document.forms[0].elements[auswahl].value, false, true);
|
|
|
|
|
document.forms[0].elements[feldmaske].options[document.forms[0].elements[feldmaske].options.length] = Eintrag;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
function mehrfachDeleteElement(feldname,auswahl,feldmaske)
|
|
|
|
|
{
|
|
|
|
|
if(document.forms[0].elements[feldname].length > 0) {
|
|
|
|
|
document.forms[0].elements[feldname].options[document.forms[0].elements[feldname].selectedIndex] = null;
|
|
|
|
|
}
|
|
|
|
|
if(document.forms[0].elements[feldmaske].length > 0) {
|
|
|
|
|
document.forms[0].elements[feldmaske].options[document.forms[0].elements[feldmaske].selectedIndex] = null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function uebernimmMehrfach(feldname,auswahl,hiddenmaske,typ,div)
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
var max=document.forms[0].elements[feldname].length;
|
|
|
|
|
var zs="";
|
|
|
|
|
//Das erste Element ist reserviert
|
|
|
|
|
for(var i=1;i < max;i++)
|
|
|
|
|
{
|
|
|
|
|
//if(typ=="char") zs+="'"+document.forms[0].elements[feldname].options[i].value+"'|";
|
|
|
|
|
/*else */zs+=document.forms[0].elements[feldname].options[i].value+"|";
|
|
|
|
|
}
|
|
|
|
|
var extract = zs.slice(0,zs.length-1);
|
|
|
|
|
//alert("ausgew<EFBFBD>hlt:"+ extract);
|
|
|
|
|
document.forms[0].elements[hiddenmaske].value=extract;
|
|
|
|
|
//zs muss jetzt in das unsichtbare Formularfeld, wie bei den Sichten
|
|
|
|
|
versteckeText(div);
|
|
|
|
|
zeigeCombosIE();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function versteckeCombosIE()
|
|
|
|
|
//Dies ist ein Workaround f<EFBFBD>r den IE
|
|
|
|
|
//Comboboxen scheinen beim IE durch Layer durch.
|
|
|
|
|
//siehe http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q177/3/78.asp&NoWebContent=1
|
|
|
|
|
//oder http://dotnetjunkies.com/WebLog/jking/archive/2003/07/21/488.aspx
|
|
|
|
|
//Alle Combos ausser Sichtenauswahlbuttons werden ausgeblendet.
|
|
|
|
|
{
|
|
|
|
|
for(var i=0;i < document.forms[0].elements.length;i++)
|
|
|
|
|
{
|
|
|
|
|
if(document.forms[0].elements[i].type.indexOf("select")>-1
|
|
|
|
|
&& document.forms[0].elements[i].name.indexOf("-Sicht") == -1
|
|
|
|
|
&& document.forms[0].elements[i].name.indexOf("mehrfachAuswahlfeld") == -1
|
|
|
|
|
&& document.forms[0].elements[i].name.indexOf("auswahlObjekte") == -1
|
|
|
|
|
&& ie5
|
|
|
|
|
&& document.forms[0].elements[i].type.indexOf("select-one") != -1 )
|
|
|
|
|
document.forms[0].elements[i].style.display="none";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function zeigeCombosIE()
|
|
|
|
|
{
|
|
|
|
|
for(var i=0;i < document.forms[0].elements.length;i++)
|
|
|
|
|
{
|
|
|
|
|
if(document.forms[0].elements[i].type.indexOf("select")>-1
|
|
|
|
|
&& document.forms[0].elements[i].name.indexOf("-Sicht") == -1
|
|
|
|
|
&& document.forms[0].elements[i].name.indexOf("mehrfachAuswahlfeld") == -1
|
|
|
|
|
&& document.forms[0].elements[i].name.indexOf("auswahlObjekte") == -1
|
|
|
|
|
&& ie5
|
|
|
|
|
&& document.forms[0].elements[i].type.indexOf("select-one") != -1)
|
|
|
|
|
document.forms[0].elements[i].style.display="inline";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function baumAuf(tree,array,parent)
|
|
|
|
|
{
|
|
|
|
|
/* for(var j=1;j < menue.length;j++)
|
|
|
|
|
{
|
|
|
|
|
if(array[j][3]!='') {expl2.unfold(array[j][3]);}
|
|
|
|
|
}*/
|
|
|
|
|
baumZu(tree,array);
|
|
|
|
|
while(parent!="")
|
|
|
|
|
{
|
|
|
|
|
if(tree=="expl") {expl.unfold(parent);}
|
|
|
|
|
if(tree=="expl2") {expl2.unfold(parent);}
|
|
|
|
|
for(var j=1;j < array.length;j++)
|
|
|
|
|
{
|
|
|
|
|
if(parent==array[j][1])
|
|
|
|
|
{
|
|
|
|
|
parent=array[j][3];
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function baumZu(tree,array)
|
|
|
|
|
{
|
|
|
|
|
for(var j=1;j < array.length;j++)
|
|
|
|
|
{
|
|
|
|
|
if(array[j][3]!='' && array[j][3] !='null')
|
|
|
|
|
{
|
|
|
|
|
if(tree=="expl") {expl.fold(array[j][3]);}
|
|
|
|
|
if(tree=="expl2") {expl2.fold(array[j][3]);}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function baumparent(tree,array,feldname)
|
|
|
|
|
{
|
|
|
|
|
var key = feldname;
|
|
|
|
|
for(var j=1;j < array.length;j++)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
if(key==array[j][1])
|
|
|
|
|
{
|
|
|
|
|
key=array[j][3];
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
baumAuf(tree,array,key);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function oeffneMaske(DerPfad)
|
|
|
|
|
{
|
|
|
|
|
NeuWI=open('','Maske','width=800,height=600,scrollbars=2,resizable=1,menubar=1,location=1');
|
|
|
|
|
NeuDoc=NeuWI.document;
|
|
|
|
|
NeuDoc.location=DerPfad;
|
|
|
|
|
void(NeuDoc.close());
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
function uebernimmEinfach(einfachname,tid)
|
|
|
|
|
{
|
|
|
|
|
document.forms[0].elements[einfachname].value=document.forms[0].elements["einfachAuswahlfeld"+tid].options[document.forms[0].elements["einfachAuswahlfeld"+tid].selectedIndex].value;
|
|
|
|
|
document.forms[0].elements[einfachname+"_str"].value=document.forms[0].elements["einfachAuswahlfeld"+tid].options[document.forms[0].elements["einfachAuswahlfeld"+tid].selectedIndex].text;
|
|
|
|
|
zeigeCombosIE();
|
|
|
|
|
versteckeText("einfachauswahl"+tid);
|
|
|
|
|
}
|
|
|
|
|
function leereEinfach(einfachname,tid)
|
|
|
|
|
{
|
|
|
|
|
document.forms[0].elements[einfachname].value="";
|
|
|
|
|
document.forms[0].elements[einfachname+"_str"].value="";
|
|
|
|
|
zeigeCombosIE();
|
|
|
|
|
versteckeText("einfachauswahl"+tid);
|
|
|
|
|
}
|