var errArt=new Array('Text','EMail','URL','PWD','Nick','Zahl','DZahl','Name','Datum','Tel','JN');var errReg=new Array(/^([0-9a-zA-ZäöüßÄÖÜ\@\~\§\!\%\_\´\`\°\&\<\>\^\#\:\;\,\'\"\-\$\/\(\)\=\?\+\*\.\}\{\|\]\[\2\\s]+)$/,/^[_\.0-9a-zA-Z\-]+@([0-9a-zA-Z][0-9a-zA-Z\-]+\.)+[a-z]{2,4}$/,/^([0-9a-zA-Z\-\_\\@\(\+\.\)\$!\*\:\?\=\&\/\;]+)$/,/^([0-9a-zA-ZäöüßÄÖÜ\&\@\§\%\_\!\?\$\/\#\.\:\(\)\=\+\-\*]+)$/,/^([0-9a-zA-ZäöüßÄÖÜ\-_]+)$/,/^([0-9]+)$/,/^[0-9\,\.\-]+$/,/^([a-zA-ZäöüßÄÖÜ\.\- ]+)$/,/^([a-zA-ZäöüßÄÖÜ0-9_ \-\:\.\,\;\/]+)$/,/^([0-9 \-\+\:\.\,\;\/]+)$/,/[JN]/);var errName=new Array('Text','E-Mail-Adresse','URL','Passwort','Kennwort','Zahl','Dezimalzahl','Namen','Datum','Telefonnummer','J/N-Auswahl');var n=0;function neuePos(a,c,b){if(n==0){document.getElementById("NeueAPos").innerHTML+='<div class="erftd1"><h3>'+a+"</h3><h3>"+c+"</h3><h3>"+b+'</h3></div><div class="erftd2"><h3><input name="pswd" type="password" maxlength="20" size="20"></h3><h3><input name="pswd1" type="password" maxlength="20" size="20"></h3><h3><input name="pswd2" type="password" maxlength="20" size="20"></h3></div><br clear="all"><br>';n=1;document.getElementById("rbutton").className="unsichtbar"}}function tagselect(a){switch(document.getElementById(a+"2").value){case "0":document.getElementById(a+"tagdiv").innerHTML=tag[a+"0"];break;case "2":if(document.getElementById(a+"1").value%4==0)document.getElementById(a+"tagdiv").innerHTML=tag[a+"3"];else document.getElementById(a+"tagdiv").innerHTML=tag[a+"4"];break;case "4":case "6":case "9":case "11":document.getElementById(a+"tagdiv").innerHTML=tag[a+"2"];break;default:document.getElementById(a+"tagdiv").innerHTML=tag[a+"1"]}}function feldadd(a){a=0;document.getElementById("bnameform").action=formaction;document.getElementById("Error").className="unsichtbar";document.getElementById("Errortext").value="";for(var c=0;c<feldadd.arguments.length;c++){var b=new Array(3);b=feldadd.arguments[c].split(":");if(b[1]=="ltest")a+=feldlengtest(b[0],b[2]);else{a+=eingabetest(b[0],b[1],b[2]);document.getElementById("bnameform").action+="&"+b[0]+"="+document.getElementById(b[0]).value}}if(a>0)return false;else{document.getElementById("bnameform").action+="')";return true}}function feldtest(p){var a=0;document.getElementById("Error").className="unsichtbar";document.getElementById("Errortext").value="";for(var c=0;c<feldtest.arguments.length;c++){var b=new Array(3);b=feldtest.arguments[c].split(":");a+=b[1]=="ltest"?feldlengtest(b[0],b[2]):eingabetest(b[0],b[1],b[2])}return a>0?false:true}function eingabetest(a,c,b){var e=0;for(var d in errArt)if(errArt[d]==c)e=d;d=0;if(document.getElementById(a).value==""){if(b==1){d=1;document.getElementById("Errortext").value=" Bitte um Eingabe"}}else if(c!="Text")if(errReg[e].test(document.getElementById(a).value)==false){document.getElementById("Errortext").value=" Nicht erlaubtes Format\noder Zeichen im Eingabefeld! ";d=1}if(d==1){document.getElementById("Error").className="sichtbar";document.getElementById("Error").action='javascript: hilfefenster("eingabehilfe.php?Art='+c+'", "einhilfe1", 540, 240)';a=="pswd"?document.getElementById("pswd1").focus():document.getElementById(a).focus()}return d}function feldlengtest(a,c){var b=document.getElementById(a).value;if(b.length>c){document.getElementById("Errortext").value=" Der Text darf\nnur "+c+" Zeichen\nlang sein! Textl\u00e4nge: "+b.length;document.getElementById("Error").className="sichtbar";document.getElementById("Error").action="#";document.getElementById(a).focus();return 1}else return 0}function hilfefenster(a,c,b,e){view_win=window.open(a,c,"width="+b+", height="+e+", resizable=yes");view_win.focus()}function thumbbig(a,c){a='<img src="'+a+'"';if(c>0)a+=" width="+c;document.getElementById("thumbpic").innerHTML=a+">";document.getElementById("thumbpic").className="sichtbar"}function thumbout(){document.getElementById("thumbpic").className="unsichtbar"};function resetchat(){view_win=window.open("onlineuser.php?chatreset=true","da_name0","WIDTH=1,HEIGHT=1,RESIZABLE=yes,toolbar=no,BORDER=0,STATUS=0,SCROLLBARS=yes");window.parent.focus()}function thumbpp(a){view_win=window.open(a,"da_name4","WIDTH=980,HEIGHT=740,LOCATION=no,MENUBAR=no,RESIZABLE=yes,toolbar=no,BORDER=0,STATUS=no,SCROLLBARS=yes");view_win.focus()}function mailpp(a){view_win=window.open(a,"da_name5","WIDTH=650,HEIGHT=650,LOCATION=no,MENUBAR=no,RESIZABLE=no,toolbar=no,BORDER=0,STATUS=0,SCROLLBARS=yes");view_win.focus()}function profilpp(a){view_win=window.open(a,"da_name6","WIDTH=650,HEIGHT=650,LOCATION=no,MENUBAR=no,RESIZABLE=no,toolbar=no,BORDER=0,STATUS=no,SCROLLBARS=yes");view_win.focus()}function smiliepp(a){view_win=window.open(a,"da_name7","WIDTH=240,HEIGHT=900,LOCATION=no,MENUBAR=no,RESIZABLE=yes,toolbar=no,BORDER=0,STATUS=no,SCROLLBARS=yes");view_win.focus()}function showColor(a,b,c){document.forms[b].elements[c].value=a;document.getElementById("fbild").innerHTML="&nbsp;"}function defColor(a){document.getElementById("fbild").innerHTML='&nbsp; Klicke auf die gew&uuml;nschte<br>&nbsp; Web-sichere Farbe, um sie in<br>&nbsp; das aktuelle Feld zu &uuml;bernehmen:<br>&nbsp; <img usemap="#'+a+'map" border=0 width=108 height=72 src="pics/farbwahl.gif" alt="Auswahl Web-Farben">'};
