var marked_row = new Array; var alarmtimer_array=new Array(1,1,1); var xx=200; var yy=0; function alarmtimer(xx2,yy2){ xx=xx2; yy=yy2; alarmtimer_array=new Array(0,0,0); //setInterval("alarmtimer2()",1000); } function alarmtimer2(){ zz=yy-30; ww=yy-60; if(xx>=zz&&!alarmtimer_array[0]){ alert("Achtung!!! Du wirst in ca. 30 Sekunden automatisch abgemeldet!\n\nUm diese automatische Abmeldung zu verhindern führe irgentwelche Aktionen aus!"); alarmtimer_array[0]=true; } if(xx>=ww&&!alarmtimer_array[1]){ alert("Achtung!!! Du wirst in ca. 60 Sekunden automatisch abgemeldet!\n\nUm diese automatische Abmeldung zu verhindern führe irgentwelche Aktionen aus!"); alarmtimer_array[1]=true; } if(xx>=yy&&!alarmtimer_array[2]){ location.reload(); alert("Auf Wiedersehen!\n\nDu wurdest gerade erfolgreich abgemeldet!"); alarmtimer_array[2]=true; } xx++; } //Berechnung der CHMOD Rechte einer Datei function check_chmod(){ besitz=0; gruppe=0; offen=0; besitz+=((document.forms['edform'].ownerr.checked) ? 4 : 0); besitz+=((document.forms['edform'].ownerw.checked) ? 2 : 0); besitz+=((document.forms['edform'].ownere.checked) ? 1 : 0); gruppe+=((document.forms['edform'].groupr.checked) ? 4 : 0); gruppe+=((document.forms['edform'].groupw.checked) ? 2 : 0); gruppe+=((document.forms['edform'].groupe.checked) ? 1 : 0); offen+=((document.forms['edform'].publicr.checked) ? 4 : 0); offen+=((document.forms['edform'].publicw.checked) ? 2 : 0); offen+=((document.forms['edform'].publice.checked) ? 1 : 0); document.forms["edform"].chmodnr.value=besitz+''+gruppe+''+offen; }//End-function check_chmod() //Sicherheitsabfrage bei der Löschung eines Eintrags function del_entry(link,num){ var weiter=confirm('Soll der Datensatz Nr. '+num+' wirklich gelöscht werden?\n\n(Kann nicht mehr rückgängig gemacht werden!)'); if(weiter) window.location.href=link; }//End-function del_entry() function confirm_action(action,msg){ var weiter=confirm(msg); if(weiter) eval(action); }//End-function del_entry function confirm_link(link,msg){ var weiter=confirm(msg); if(weiter) window.location.href=link; }//End-function del_entry() //Sicherheitsabfrage bei der Löschung eines Eintrags function del_entry1(link,msg){ var weiter=confirm(msg); if(weiter) window.location.href=link; }//End-function del_entry() //Sicherheitsabfrage bei der Löschung einer Datei function del_entry2(link,num){ var weiter=confirm('Soll die Datei '+num+' wirklich gelöscht werden?\n\n(Kann nicht mehr rückgängig gemacht werden!)'); if(weiter) window.location.href=link; }//End-function del_entry2() //Überprüfung eines Datums function test_datum(x){ monat=x.monat.value; tag=x.tag.value; jahr=x.jahr.value; val1=true; val2=true; val3=false; if(tag!=""&&monat!=""&&jahr!=""){ if((monat==4||monat==6||monat==9||monat==11)&&tag==31){ val1=false; } if(jahr % 400 == 0 ||(jahr % 4 == 0 && jahr % 100 != 0)){ val3=true; } if(monat==2&&((val3&&tag>28)||(!val3&&tag>27))) { val2=false; } if(!val1||!val2){ alert("Datum falsch!"); }else{ if(x.stunde.value==''||x.minute.value==''||x.stunde.value>23||x.minute.value>59) alert("Uhrzeit falsch!"); else x.submit(); } }else alert("Angaben unvollständig, Eintrag nicht möglich!"); }//End-function test_datum() //Überprüfung eines Datums, Usermanagement function test_member(x){ datum1=false; monat=x.monat.value; tag=x.tag.value; jahr=x.jahr.value; val1=true; val2=true; val3=false; if(tag!=""&&monat!=""&&jahr!=""){ if((monat==4||monat==6||monat==9||monat==11)&&tag==31){ val1=false; } if(jahr % 400 == 0 ||(jahr % 4 == 0 && jahr % 100 != 0)){ val3=true; } if(monat==2&&((val3&&tag>28)||(!val3&&tag>27))) { val2=false; } if(!val1||!val2){ alert("Geburtsdatum falsch!"); datum1=false; }else{ datum1=true } }else alert("Geburtsdatum falsch!"); datum2=false; monat=x.monat2.value; tag=x.tag2.value; jahr=x.jahr2.value; val1=true; val2=true; val3=false; if(tag!=""&&monat!=""&&jahr!=""){ if((monat==4||monat==6||monat==9||monat==11)&&tag==31){ val1=false; } if(jahr % 400 == 0 ||(jahr % 4 == 0 && jahr % 100 != 0)){ val3=true; } if(monat==2&&((val3&&tag>28)||(!val3&&tag>27))) { val2=false; } if(!val1||!val2){ alert("Eintrittsdatum falsch!"); datum2=false; }else{ datum2=true } }else alert("Eintrittsdatum falsch!"); formok1=false; formok2=false; if(x.username.value!=""&&(x.pass1.value==""||x.pass2.value==""||x.pass2.value!=x.pass1.value||x.pass1.value.length<6)){ alert("Anmeldedaten sind unvollständig oder inkorrekt!"); formok1=false; }else formok1=true if(x.vorname.value==""||x.nachname.value==""||x.strasse.value==""||x.plz.value==""||x.ort.value==""||x.standesbuch.value==""||x.dienstgrad.value==""||x.einteilung.value==""){ alert("Nicht alle Pflichtfelder ausgefüllt!"); formok2=false; }else formok2=true; if(formok2&&formok1&&datum2&&datum1) x.submit(); }//End-function test_member() //Überprüfung Usermanagement function test_member_update(x){ datum1=false; monat=x.monat.value; tag=x.tag.value; jahr=x.jahr.value; val1=true; val2=true; val3=false; if(tag!=""&&monat!=""&&jahr!=""){ if((monat==4||monat==6||monat==9||monat==11)&&tag==31){ val1=false; } if(jahr % 400 == 0 ||(jahr % 4 == 0 && jahr % 100 != 0)){ val3=true; } if(monat==2&&((val3&&tag>28)||(!val3&&tag>27))) { val2=false; } if(!val1||!val2){ alert("Geburtsdatum falsch!"); datum1=false; }else{ datum1=true } }else alert("Geburtsdatum falsch!"); datum2=false; monat=x.monat2.value; tag=x.tag2.value; jahr=x.jahr2.value; val1=true; val2=true; val3=false; if(tag!=""&&monat!=""&&jahr!=""){ if((monat==4||monat==6||monat==9||monat==11)&&tag==31){ val1=false; } if(jahr % 400 == 0 ||(jahr % 4 == 0 && jahr % 100 != 0)){ val3=true; } if(monat==2&&((val3&&tag>28)||(!val3&&tag>27))) { val2=false; } if(!val1||!val2){ alert("Eintrittsdatum falsch!"); datum2=false; }else{ datum2=true } }else alert("Eintrittsdatum falsch!"); formok1=false; formok2=false; if(x.pass1.value!=""&&x.pass2.value!=""&&x.pass2.value==x.pass1.value&&x.pass1.value.length>=6){ formok1=true; }else{ if(x.pass1.value==""&&x.pass2.value=="") formok1=true; else alert("Anmeldedaten sind unvollständig oder inkorrekt!"); } if(x.vorname.value==""||x.nachname.value==""||x.strasse.value==""||x.plz.value==""||x.ort.value==""||x.standesbuch.value==""||x.dienstgrad.value==""||x.einteilung.value==""){ alert("Nicht alle Pflichtfelder ausgefüllt!"); formok2=false; }else formok2=true; if(formok2&&formok1&&datum2&&datum1) x.submit(); }//End-function test_member_update() //Öffnen des Imagefinders function get_imgnr(x){ var breit=630; var hoch=500; var link = (window.screen.width/2) - ((breit/2) + 10); var oben = (window.screen.height/2) - ((hoch/2) + 30); window.open("intern.php?kat=imagefinder"+x,'1',"height="+hoch+",width="+breit+",left="+link+",top="+oben+",scrollbars=yes"); }//End-function get_imgnr() //Öffnen des Storyfinders function get_story(x){ var breit=630; var hoch=500; var link = (window.screen.width/2) - ((breit/2) + 10); var oben = (window.screen.height/2) - ((hoch/2) + 30); window.open("intern.php?kat=storyfinder"+x,'1',"dependent=yes,height="+hoch+",width="+breit+",left="+link+",top="+oben+",scrollbars=yes"); }//End-function get_story() //Öffnen des Photoalbums function album(x){ var breit=500; var hoch=525; var link = (window.screen.width/2) - ((breit/2) + 10); var oben = (window.screen.height/2) - ((hoch/2) + 30); window.open("album.php?fid="+x,'1',"height="+hoch+",width="+breit+",left="+link+",top="+oben+",scrollbars=yes"); }//End-function album() function texte(x){ var breit=500; var hoch=525; var link = (window.screen.width/2) - ((breit/2) + 10); var oben = (window.screen.height/2) - ((hoch/2) + 30); window.open("texte.php?kennung="+x,'1',"height="+hoch+",width="+breit+",left="+link+",top="+oben+",scrollbars=yes"); }//End-function texte() function dienstgrad(x){ //var breit=600; //var hoch=170; //var link = window.screen.width- breit; //var oben = window.screen.height - (hoch + 30); //window.open("dienstgrade.php?dg="+x,'1',"dependent=yes,height="+hoch+",width="+breit+",left="+link+",top="+oben+",scrollbars=no"); open_dienstgrad("?modul=ZGllbnN0Z3JhZGU=&display_intern_menu=0&subkat=display&dg="+x+"") }//End-function dienstgrad() //Öffnen des Imagefinders, zum einfügen als liteHTML Befehl function get_imgnr_tag(x){ var breit=630; var hoch=500; var link = (window.screen.width/2) - ((breit/2) + 10); var oben = (window.screen.height/2) - ((hoch/2) + 30); window.open("intern.php?kat=imagefinder&tag"+x,'1',"height="+hoch+",width="+breit+",left="+link+",top="+oben+",scrollbars=yes"); }//End-function get_imgnr_tag function swf_popup(w,h,src){ var breit=w; var hoch=h; var link = (window.screen.width/2) - ((breit/2) + 10); var oben = (window.screen.height/2) - ((hoch/2) + 30); window.open(src,'3',"dependent=yes,height="+hoch+",width="+breit+",left="+link+",top="+oben+",scrollbars=no"); } function js_fenster(w,h,src){ var breit=w; var hoch=h; var link = (window.screen.width/2) - ((breit/2) + 10); var oben = (window.screen.height/2) - ((hoch/2) + 30); window.open(src,'3',"dependent=yes,height="+hoch+",width="+breit+",left="+link+",top="+oben+",scrollbars=no"); } //Einfügen eines Wertes aus einem neuen Fenster in ein Formular des Hauptfensters function fill_in(x){ if(typeof window.opener.document.forms['edform0'] !="undefined" &&typeof window.opener.document.forms['edform0'].elements['uid'] !="undefined"){ window.opener.document.forms['edform0'].elements['uid'].value=x; }else{ if(typeof window.opener.document.forms['edform'].elements['bild'] !="undefined"){ window.opener.document.forms['edform'].elements['bild'].value=x; } } }//End-function fill_in() //Öffnen des PopUp Fensters "image loading" in dem die Bildinformationen geholt werden und dann das ImagePopup geöffnet wird function loading_popup(bild,text){ hoch=150; breit=250; var link = (window.screen.width/2) - ((breit/2) + 10); var oben = (window.screen.height/2) - ((hoch/2) + 30); if(bild.substr(0,1)=="j") var win=window.open("grabimg.php?jugend&sid="+bild.substr(1,(bild.length-1))+"&text="+text,"preloader","dependent=yes,height="+hoch+",width="+breit+",left="+link+",top="+oben+",scrollbars=no"); else var win=window.open("grabimg.php?sid="+bild+"&text="+text,"preloader","dependent=yes,height="+hoch+",width="+breit+",left="+link+",top="+oben+",scrollbars=no"); }//End-function loading_popup() function open_ipic(bild,album){ hoch=275; breit=365; var link = (window.screen.width/2) - ((breit/2) + 10); var oben = (window.screen.height/2) - ((hoch/2) + 30); var win=window.open("ipic.php?id="+album+"&id2="+bild,"ipic","dependent=yes,height="+hoch+",width="+breit+",left="+link+",top="+oben+",resizable=yes,dependent=yes,menubar=no,toolbar=no,location=no,personalbar=no,status=yes,scrollbars=no"); }//End-function loading_popup() //Öffnen eines PopUp Fensters für ein darzustellendes Bild function img_popup(imageSRC,imageWidth,imageHeight,imageTitle) { var posLeft = (screen.width/2) - ((imageWidth/2)); var posTop = (screen.height/2) - ((imageHeight/2)); win = window.open("","Image","dependent=yes,width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop); win.document.open(); win.document.write(''+imageTitle+''); win.document.write('
'); win.document.write('Click screen to close'); win.document.write('
'); win.document.close(); win.focus(); } //Öffnen des Downloadfensters function download(http){ var breit=400; var hoch=280; var link = (window.screen.width/2) - ((breit/2) + 10); var oben = (window.screen.height/2) - ((hoch/2) + 30); var win=window.open(http,"Download","dependent=yes,height="+hoch+",width="+breit+",left="+link+",top="+oben+",dependent=yes,hotkeys=no,menubar=no,resizable=no,status=no,toolbar=no,scrollbars=no"); }//End-function download() ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // Orginalcode 1:1 von Wikipedia, der freien Enzyklopädie // übernommen! // www.wikipedia.org //// apply tagOpen/tagClose to selection in textarea, //// use sampleText instead of selection if there is none //// copied and adapted from phpBB function insertTags(tagOpen, tagClose, sampleText,feldname,formname) { var txtarea = document.forms[formname].elements[feldname]; // IE if(document.selection) { var theSelection = document.selection.createRange().text; if(!theSelection) { theSelection=sampleText;} txtarea.focus(); if(theSelection.charAt(theSelection.length - 1) == " "){// exclude ending space char, if any theSelection = theSelection.substring(0, theSelection.length - 1); document.selection.createRange().text = tagOpen + theSelection + tagClose + " "; } else { document.selection.createRange().text = tagOpen + theSelection + tagClose; } // Mozilla -- disabled because it induces a scrolling bug which makes it virtually unusable } else if(txtarea.selectionStart || txtarea.selectionStart == '0') { var startPos = txtarea.selectionStart; var endPos = txtarea.selectionEnd; var scrollTop=txtarea.scrollTop; var myText = (txtarea.value).substring(startPos, endPos); if(!myText) { myText=sampleText;} if(myText.charAt(myText.length - 1) == " "){ // exclude ending space char, if any subst = tagOpen + myText.substring(0, (myText.length - 1)) + tagClose + " "; } else { subst = tagOpen + myText + tagClose; } txtarea.value = txtarea.value.substring(0, startPos) + subst + txtarea.value.substring(endPos, txtarea.value.length); txtarea.focus(); var cPos=startPos+(tagOpen.length+myText.length+tagClose.length); txtarea.selectionStart=cPos; txtarea.selectionEnd=cPos; txtarea.scrollTop=scrollTop; // All others } else { // Append at the end: Some people find that annoying //txtarea.value += tagOpen + sampleText + tagClose; //txtarea.focus(); var re=new RegExp("\\n","g"); tagOpen=tagOpen.replace(re,""); tagClose=tagClose.replace(re,""); document.infoform.infobox.value=tagOpen+sampleText+tagClose; txtarea.focus(); } // reposition cursor if possible if (txtarea.createTextRange) txtarea.caretPos = document.selection.createRange().duplicate(); }//End-function insertTags() function addButton(imageFile, speedTip, tagOpen, tagClose, sampleText,field,formname) { speedTip=escapeQuotes(speedTip); tagOpen=escapeQuotes(tagOpen); tagClose=escapeQuotes(tagClose); sampleText=escapeQuotes(sampleText); document.write(""); document.write("\""+speedTip+"\""); document.write(""); return; }//End-function addButton() function addButton1(imageFile, speedTip, tagOpen, tagClose, sampleText,field,formname) { speedTip=escapeQuotes(speedTip); tagOpen=escapeQuotes(tagOpen); tagClose=escapeQuotes(tagClose); sampleText=escapeQuotes(sampleText); document.write(""); document.write("\""+speedTip+"\""); document.write(""); return; }//End-function addButton() function escapeQuotes(text) { var re=new RegExp("'","g"); text=text.replace(re,"\\'"); re=new RegExp('"',"g"); text=text.replace(re,'"'); re=new RegExp("\\n","g"); text=text.replace(re,"\\n"); return text; }//End-function escapeQuotes() ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// function kalender_tracker(form_id,tag,monat,jahr){ kalender_tracker_param(form_id,tag,monat,jahr,''); } function kalender_tracker_param(form_id,tag,monat,jahr,param){ window.open("index.php?modul=aWNhbA==&kalender_tracker_form_name="+form_id+"&kalender_tracker_form_feld_tag="+tag+"&kalender_tracker_form_feld_monat="+monat+"&kalender_tracker_form_feld_jahr="+jahr+""+param,"Kalender",position(160,180)+",scrollbars=no"); } function open_popup(link,width,height){ window.open(link,"EXTERN_1173550386",position(width,height)+",scrollbars=yes"); } function open_dienstgrad(link){ var width=800; var height=170; var top=window.screen.height-height; var left=window.screen.width-width; window.open(link,"DG","width="+width+",height="+height+",top="+top+",left="+left+",scrollbars=yes"); } function position(width,height){ var top=(window.screen.height/2) - ((height/2) + 30); var left=(window.screen.width/2) - ((width/2) + 10); return "width="+width+",height="+height+",top="+top+",left="+left; } function mark_textfield(objekt,classname){ objekt.className=classname; } var form_buffer=""; function check_form_buffer(obj){ form_buffer=obj.value; } function check_form_against(allow,obj,msg){ var ok=true; switch(allow){ case '0-9': allow="0123456789"; break; case 'a-z': allow="abcdefghijklmnopqrstuvwxyz"; allow+=allow.toUpperCase(); break; case 'a-z+': allow="abcdefghijklmnopqrstuvwxyz.:;,-_/ öäüß"; allow+=allow.toUpperCase(); break; } var msgzusatz="" msgzusatz+="\n\nErlaubte Zeichen:\n"+allow.split("") if(allow!='all'&&allow!='*'){ for (var a=0;a28)||(!val3&&tag>27))) { val2=false; } if(!val1||!val2){ return false; }else{ return true; } }else return false; }