// function for UBB code if (navigator.appName.indexOf("Microsoft")!=-1 && navigator.userAgent.indexOf("Opera") ==-1) ie=true; else ie=false; var isSelected=false; var toinsertObj=''; function TagButtons(){ if(ie){ outputtxt=' '; outputtxt+=''; outputtxt+=''; outputtxt+=''; outputtxt+=''; outputtxt+=''; outputtxt+=''; outputtxt+=''; outputtxt+='
'; document.write(outputtxt); outputtxt=''; } } function markSelection(thistextObj){ if(ie){ if (toinsertObj!=thistextObj) toinsertObj=thistextObj thisSelection=document.selection.createRange().duplicate(); isSelected = true; } } function insertTag(tvs,tve){ if (isSelected) { selectionlength=thisSelection.text.length; thisSelection.text=tvs+thisSelection.text+tve; if (selectionlength==0) isSelected = false; else markSelection(toinsertObj) } else alert('Bitte mit der Maus an die Stelle klicken, wo der Wert eingefügt werden soll.'); } // win popup function for all pop up function wp(u,h,w,r){ attr=''; wn=u.substring(0,u.indexOf(".")) attr=attr+'width='+w+',height='+h+',left='+Math.ceil(screen.width/2-w/2)+',top='+Math.ceil((screen.height-h)/2); if(r==1) attr=attr+',resizable,scrollbars'; wn=window.open(u,wn,attr) wn.focus(); } //_checkforum.cfm forumwechseln menu function ChangeForum(obj){ val=obj.id[obj.id.selectedIndex].value; sendto=val.substring(0,1); id=val.substring(1,val.length); if (sendto=='F') url='wmforum.cfm?id='+id else url='boardlist.cfm?ListID='+id self.location.href=url } // _moderate.cfm Beiträge freischalten function CheckAll(chk){ for (var i=0;i < document.f1.elements.length;i++) { var e=document.f1.elements[i]; if (e.type=="checkbox") e.checked=chk.checked; } } // fadmin.cfm while userverwaltung delete user or edit user function UserAction(id,act){ dosubmit=0; if (act=='del'){ document.f1.Do.value=''; var agree=confirm("Diesen User wirklich löschen?"); if (agree){ document.f1.action=document.f1.action+'&deluser='+id+'&start='+document.f2.Start.value; dosubmit=1; } } else if(act=='edit'){ document.f1.Do.value='editUser'; document.f1.action=document.f1.action+'&uid='+id+'&start='+document.f2.Start.value; dosubmit=1; } if(dosubmit==1) document.f1.submit(); } // for smilies function DoSmilie(addSmile){ var revisedMessage; var currentMessage=document.f1.body.value; revisedMessage=currentMessage+addSmile; document.f1.body.value=revisedMessage; document.f1.body.focus(); } // for cancel button function Cancel(url){ document.location.href=url; } // checks email(optional) function email_chk(req){ email=document.f1.email.value; msg=''; if (email.length <6 && req==1) msg=msg+'Bitte geben Sie eine Emailadresse ein (min. 5 Zeichen).\n'; else if(email.length >0){ if(email.indexOf("@")==-1) msg=msg+' Ihre Emailadresse enthält kein "@".\n'; if(email.indexOf("@")==0) msg=msg+' Ein "@" darf nicht am Anfang einer Emailadresse stehen.\n'; if(email.indexOf("@")==email.length-1) msg=msg+' Ein "@" darf nicht am Ende einer Emailadresse stehen.\n'; if(email.indexOf("@")!= email.lastIndexOf("@")) msg=msg+' Ihre Emailadresse darf maximal ein "@" enthalten.\n'; if(email.indexOf(".")==-1) msg=msg+' Ihre Emailadresse enthält keinen Punkt.\n'; if(email.indexOf(".")==0) msg=msg+' Ein Punkt darf nicht am Anfang einer Emailadresse stehen.\n'; if(email.indexOf(".")==email.length-1) msg=msg+' Ein Punkt darf nicht am Ende einer Emailadresse stehen.\n'; wrong=new Array(',','>','<',' ','*',':',';','(',')','"'); for(i=0;i-1) msg=msg+' Ihre Emailadresse darf kein "'+wrong[i]+'" enthalten.\n'; } for(i=0;i128) msg=msg+' Ihre Emailadresse darf kein "'+email.charAt(i)+'" enthalten.\n'; } } if (msg.length){ alert('Fehler in Emailadresse "'+email+'":\n'+msg); return false; } } // removes white spaces function trim(str){ return str.replace(/^\s+/g,'').replace(/\s+$/g,''); } // check blank of form fields function chk_some(){ msg=''; chka=chk.split(','); sha=sh.split(','); df=document.f1; for (i=0;i8000){ alert('Ihre Eingabe ist '+document.f1.body.value.length+' Zeichen lang.\nMaximal sind 8000 Zeichen erlaubt.\nBitte kürzen Sie Ihre Eingabe und wiederholen Sie den Vorgang!'); return false; } }