',inputEvent:'blur',grouped:true,singleError:false,formEvent:'submit',onBeforeValidate:function(e,els){clearPlaceholderValue(e,els);},onBeforeFail:function(e,els,matcher){setPlaceholderValue(e,els,matcher);},onFail:function(e,els){$('html,body').animate({"scrollTop":$(els[0].input).offset().top-50},1000);}});}var fakeTextarea=document.createElement('textarea'),textareaMaxlengthSupport=('maxlength'in fakeTextarea);if(!textareaMaxlengthSupport){$('textarea[maxlength]').each(function(){$(this).bind('keypress blur',function(){$(this).val($(this).val().substr(0,$(this).attr('maxlength')));});});}var fakeInput=document.createElement('input'),placeHolderSupport=('placeholder'in fakeInput);clearPlaceholderValues=function(){if(!placeHolderSupport){$('input:text, textarea').each(function(i){if($(this).val()===$(this).attr('placeholder')){$(this).val('');}});}};clearPlaceholderValue=function(e,els){if(!placeHolderSupport){$(this).removeClass('placeholder');if(els.val()===els.attr('placeholder')){els.val('');}}};setPlaceholderValue=function(e,els,matcher){if(!placeHolderSupport){if(els.val().length===0&&e.keyCode!=9&&els.attr('placeholder')!=undefined){els.val(els.attr('placeholder'));els.addClass('placeholder');}}};if(!placeHolderSupport){$('input:text, textarea').each(function(i){if($(this).val().length===0){var originalText=$(this).attr('placeholder');$(this).val(originalText);$(this).addClass('placeholder');$(this).bind('focus',function(i){$(this).removeClass('placeholder');if($(this).val()===$(this).attr('placeholder')){$(this).val('');}});}});$('form').bind('submit',function(){clearPlaceholderValues();});$(window).bind('unload',function(){clearPlaceholderValues();});}$('ul.powermail_multiplejs_tabs li a:first').addClass('act');if($.ui&&typeof($.ui.tabs)=='function'){$('.powermail_multiple_js .powermail_multiplejs_tabs_item a').each(function(id,item){var temp=item.href.split('#');var temp_last=temp[temp.length-1];var search=/^tx\-powermail\-pi1\_fieldset/;if(search.test(temp_last)){item.href='#'+temp_last;}});$('.powermail_multiple_js').tabs();}else{$('ul.powermail_multiplejs_tabs').tabs('div.fieldsets > fieldset');}$('ul.powermail_multiplejs_tabs li a').click(function(){$('ul.powermail_multiplejs_tabs li a').removeClass('act');$(this).addClass('act');if(!false){$(this).parent().parent().find('a').not('.current').each(function(id,item){var temp=item.href.split('#');var resetSelector=$('#'+temp[temp.length-1]+' :input');powermail_validator.data('validator').reset(resetSelector);});}});});})(jQuery);(function($){var powermail_customValidatorConfiguration={position:'top right',offset:[-5,-20],message:'
'};$.tools.validator.localize('en',{'*':'Bitte diesen Wert korrigieren','[required]':'Dies ist ein Pflichtfeld',':email':'Bitte eine gültige E-Mail-Adresse eingeben',':url':'Bitte eine gültige URL eingeben (z.B. http://www.test.de)',':number':'Bitte eine Nummer eintragen',':digits':'Bitte eine Nummer ohne Komma oder Punkt eintragen',':username':'Bitte nur Buchstaben (a-z) oder Zahlen (0-9) eingeben. Leer- oder andere Zeichen sind nicht erlaubt',':date':'Bitte ein gültiges Datum eingeben',':datetime':'Bitte ein gültiges Datum mit Uhrzeit eingeben',':time':'Ungültige Zeit','[max]':'Bitte einen Wert grösser als $1 eingeben','[min]':'Bitte einen Wert kleiner als $1 eingeben'});$.tools.dateinput.localize('en',{'months':'Januar,Februar,März,April,Mai,Juni,Juli,August,September,Oktober,November,Dezember','shortMonths':'Jan,Feb,Mrz,Apr,Mai,Jun,Jul,Aug,Sep,Okt,Nov,Dez','days':'Sonntag,Montag,Dienstag,Mittwoch,Donnerstag,Freitag,Samstag','shortDays':'So,Mo,Di,Mi,Do,Fr,Sa'});$(function(){$(':date').dateinput({format:'dd.mm.yyyy',firstDay:1,selectors:true,disabled:false,readonly:false,yearRange:[-99,99],change:function(event,date){timestampOfDate=new Date(this.getValue('yyyy,m,d')).getTime()/1000;oldTimestamp=this.getInput().nextAll('input[type=hidden]').val();if(this.getInput().nextAll('input[type=time]').length>0&&oldTimestamp!=''&&parseInt(oldTimestamp)==oldTimestamp){oldDate=new Date(oldTimestamp*1000);h=oldDate.getHours();m=oldDate.getMinutes();timestampOfDate+=h*3600+m*60;}this.getInput().nextAll('input[type=hidden]').val(timestampOfDate);}}).each(function(i){initTimestamp=$(this).nextAll('input[type=hidden]').val();if(initTimestamp!=''&&parseInt(initTimestamp)==initTimestamp){$(this).data('dateinput').setValue(new Date(parseInt(initTimestamp)*1000));}});$.tools.validator.fn('input:checkbox','required',function(input,value){checkboxes=input.parent().parent().find('input:checkbox');if(checkboxes.filter('.required_one').length>0){if(checkboxes.filter(':checked').length==0){return(input.filter('.required_one').length==0);}else{powermail_validator.data('validator').reset(checkboxes);}}return true;});$.tools.validator.localizeFn('input:time',{en:'Ungültige Zeit'});$.tools.validator.localizeFn('input:checkbox',{en:'Bitte treffen Sie mindestens eine Auswahl'});$.tools.validator.localizeFn('input:radio',{en:'Bitte treffen Sie mindestens eine Auswahl'});$.tools.validator.localizeFn('input:select.required',{en:'Dies ist ein Pflichtfeld'});powermail_validator=$('.tx_powermail_pi1_form').validator($.extend({inputEvent:'blur',grouped:true,singleError:false,onBeforeValidate:function(e,els){clearPlaceholderValue(e,els);},onBeforeFail:function(e,els,matcher){setPlaceholderValue(e,els,matcher);}},powermail_customValidatorConfiguration));});})(jQuery);