/* #################### form ######################################### */ function chkContact(){ if(document.contactform){ var $form=document.contactform; if($form.name.value=='' && $form.email.value==''){ alert('Bitte geben Sie Ihren Namen oder Ihre eMail Adresse an!'); return false; } if($form.email.value!=''){ if(!chkjsemail($form.email.value)){ return false; } } if($form.memo.value==''){ alert('Bitte geben Sie Ihre Nachricht ein!'); return false; } } return true; } function chkmail(txt) { if (txt.search(/ /) != -1){ return false; } if ( txt == ""){ return false; } ary1=txt.split('\@'); if ( ary1[0].length < 2){ return false; } if ( ary1[1] == null || ary1[1] == "" ){ return false; } ary2=ary1[1].split('\.'); if ( ary2[1] == null || ary2[1] == "" ){ return false; } return true; } function isValidEmail(eMail){ if(!eMail || !chkmail(eMail)){ alert('Bitte geben Sie eine gültige eMailadresse ein.'); return false; } return true; } /*######################### Forum #######################*/ function addForum(artikel,forum,contenttype){ fb=560; fh=370; bb=screen.availWidth; bh=screen.availHeight; l=(bb-fb)/2; t=(bh-fh)/2; page="/forum.php?artikel="+artikel+"&forum="+forum+"&contenttype="+contenttype; ForumWin = this.open(page, "ForumWin", "toolbar=no,menubar=no,location=no,scrollbars=auto,resizable=no,fullscreen=0"); ForumWin.resizeTo(fb,fh); ForumWin.moveTo(l,t); } function chkForum(){ if (!chkfilled(document.forum.titel,'Titel')){ return false; } if (!chkfilled(document.forum.name,'Name')){ return false; } if(document.forum.email.value!=''){ if(!isValidEmail(document.forum.email.value)){ return false; } } return true; } function chkfilled(feld,feldname) { if (feld.value == "") { alert('Bitte füllen Sie das Feld ' + feldname + ' aus!'); feld.focus(); return false; } return true; } /*###########################################################*/ function reSize(fb){//für forum & co. if(!fb)fb=560; var ok=false; if(document.all){//ie fh=document.all.endtag.offsetTop+60; ok=true; }else if(document.getElementById){//dom fh=document.getElementById("endtag").offsetTop+60; ok=true; } if(ok){ bb=screen.availWidth; bh=screen.availHeight-30; if(fh>bh){ fh=bh; self.scrollbars=true; } self.resizeTo(fb,fh); l=(bb-fb)/2; t=(bh-fh)/2; self.moveTo(l,t); } } /*###########################################################*/ function preloadMe(ImgList){ var ImgList=ImgList.split(','); var ImgAray=new Array(ImgList.length); for(var x=0;x