if(global_set_ats){if(global_atsa_id) window.onload=function(){if(document.ats_formular && document.ats_formular['newsletter['+global_atsa_id+'][senden]']) document.ats_formular['newsletter['+global_atsa_id+'][senden]'].onclick=function(){return ats_testen(document.ats_formular);}}};function check_ats(s){var a=false;var res=false;if(typeof(RegExp)=="function"){var b=new RegExp("abc");if(b.test("abc")==true){a=true;}};if(a==true){reg=new RegExp("^([a-zA-Z0-9\\-\\.\\_]+)(\\@)([a-zA-Z0-9äöüÄÖÜß\\-\\_\\.]+)(\\.)([a-zA-Z]{2,4}|museum|travel|[0-9]{1,3})$");res=(reg.test(s));}else{res=(s.search("@")>=1 && s.lastIndexOf(".")>s.search("@") && s.lastIndexOf(".")>=s.length-5);}return (res);};function ats_testen(f){var errstring="";if(global_atskey==0 && check_ats(f['newsletter['+global_atsa_id+'][email]'].value)==false) errstring=global_atserr1;if(global_atskey==1 && check_ats(f['newsletter['+global_atsa_id+'][emailan]'].value)==false) errstring=global_atserr2;if(global_atskey==1 && check_ats(f['newsletter['+global_atsa_id+'][emailvon]'].value)==false) errstring+=global_atserr3;if(errstring){document.getElementById("atserr").innerHTML='<table class="error" summary="versandfehler" cellspacing="'+global_atscsp+'" cellpadding="0"><tr'+'><td class="kalender">'+errstring+'<'+'/td><'+'/tr><'+'/table>';return false;}return true;};function play_flash(src,width,height,scale,salign,quality,play,name,bgcolor){str='<embed src="'+src+'"menu="false" wmode="transparent"';str+=(width)?' width="'+width+'"':'';str+=(height)?' height="'+height+'"':'';str+=(quality)?' quality="'+quality+'"':'';str+=(scale)?' scale="'+scale+'"':'';str+=(salign)?' salign="'+salign+'"':'';str+=(play)?' play="'+play+'"':'';str+=(name)?' name="'+name+'"':'';str+=(bgcolor)?' bgcolor="'+bgcolor+'"':'';str+='type="application/x-shockwave-flash"';str+=' pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>';document.write(str);};function str_rot13(str){return str.replace(/[A-Za-z]/g,function(c){return String.fromCharCode((((c=c.charCodeAt(0))& 223)-52)% 26+(c & 32)+65);});};function prml(b,a,c,d,bl){str='<a href="mailto:'+str_rot13(a)+'@'+str_rot13(b)+'.'+str_rot13(c)+str_rot13(d)+'" onclick="'+bl+'">';str+=str_rot13(a)+global_at+str_rot13(b)+global_dt+str_rot13(c)+'</a>';document.write(str);};var _new;function winp(href,w,h){rs=(_new)?1:0;if(h>screen.availHeight)h=screen.availHeight;if(w>screen.availWidth)w=screen.availWidth;if(h=="auto")h=screen.availHeight;if(w=="auto")w=screen.availWidth;_new=window.open(href,"neu"+global_ftt,"width="+w+",height="+h+",top=0,left=0,statusbar=no,menubar=yes,resizable=yes,scrollbars=yes");_new.focus();}function preview(href,width,height){width=(width>screen.availHeight-100)?screen.availWidth-100:width;height=(height>screen.availHeight-200)?screen.availHeight-200:height;_win=window.open(href,"preview"+global_ftt,"width="+width+",height="+height+",top=0,left=0,menubar=yes,statusbar=no,resizable=yes,scrollbars=no");_win.focus();}function set_selection(form){if(form.select_all.checked==true){if(!form['auswahl[]'].length)form['auswahl[]'].checked=true;else for(i=0;i<form['auswahl[]'].length;i++)form['auswahl[]'][i].checked=true;}else if(form.select_all.checked==false){if(!form['auswahl[]'].length)form['auswahl[]'].checked=false;else for(i=0;i<form['auswahl[]'].length;i++)form['auswahl[]'][i].checked=false;}};document.write('<style type="text/css">span.noscript{display:none;}<'+'/style>');function cuttext(lng,field){if(field.value.length>lng)field.value=field.value.substring(0,lng);};document.write('<style type="text/css">a{-moz-outline:0;-moz-user-select:none;-khtml-user-select: none;}<'+'/style>');if((navigator.plugins)&&(navigator.plugins.length>0)){var plugin=(navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;if(plugin){var words=navigator.plugins["Shockwave Flash"].description.split(" ");for(var i=0;i<words.length;++i){if(isNaN(parseInt(words[i])))continue;global_allflash=words[i];}}};if(global_sc_res){var _scrollcontrol = 0, _scht;function check_scrollbar(){_sc=global_bodymarg;if(window.innerHeight){_scht=window.innerHeight; if(document.getElementById("body").offsetHeight-_scht<=0 && document.getElementById("body").offsetWidth>=global_sc_rwd)_sc=_sc-global_sc_bar; if(_scrollcontrol !=_sc)document.getElementById("body").style.marginLeft=_sc+'px';} _scrollcontrol=_sc;};window.onresize=function(){check_scrollbar();}};
