UD="undefined";GLOBALS={self: GLOBAL_DIR_CATALOG+(typeof GLOBALS.site!=UD?GLOBALS.site:'shopping_cart.php')+(typeof GLOBALS.sid!=UD?'?XTCsid='+GLOBALS.sid:''),sid:GLOBALS.sid, format: (typeof GLOBALS.format!=UD?GLOBALS.format:{})};check_onestep={errors:{},POSTS:[],PROCESS:0,ACTIONS:0,CASH:[],DEBUG:{a:false,report:true,err:'',clear:function(){this.err=[];}}};if(typeof(GLOBAL_FOCUS_STYLE_FOR_CHECK)==UD){GLOBAL_FOCUS_STYLE_FOR_CHECK=false;}if(typeof(GLOBAL_ERRORS_BIGGER)==UD){GLOBAL_ERRORS_BIGGER=false;}if(typeof(GLOBAL_FOCUS_EFFECT)==UD){GLOBAL_FOCUS_EFFECT=true;}if(typeof(GLOBAL_CHECK_STRNO2)==UD){GLOBAL_CHECK_STRNO2=true;}if(typeof(GLOBAL_CHECK_STRNO)==UD){GLOBAL_CHECK_STRNO=true;}if(typeof(GLOBAL_UPDATE_TIME)==UD){GLOBAL_UPDATE_TIME=600*1000;}if(typeof(GLOBAL_DIR_CATALOG)==UD){GLOBAL_DIR_CATALOG='/';}if(typeof(GLOBAL_CLASS_ERROR)==UD){GLOBAL_CLASS_ERROR='cart_error';}if(typeof(GLOBAL_CLASS_OVER)==UD){GLOBAL_CLASS_OVER='cart_over';}if(typeof(DEFAULT_TABLE_STYLE)==UD){DEFAULT_TABLE_STYLE='#shop_cart';}if(typeof(DEFAULT_SCROLL_ID)==UD){DEFAULT_SCROLL_ID='HTML';}if(typeof(GLOBAL_SPEED_SLIDEUP)==UD){GLOBAL_SPEED_SLIDEUP=500;}if(typeof(GLOBAL_SPEED_SLIDEDOWN)==UD){GLOBAL_SPEED_SLIDEDOWN=500;}$(document).ready(function(){if(GLOBAL_FOCUS_EFFECT==true){var Effekten_Arrays=["input:text","input:password","textarea","select"];for(var a in Effekten_Arrays){$(DEFAULT_TABLE_STYLE+' '+Effekten_Arrays[a]).addClass('inpu').mouseover(function(){$(this).addClass(GLOBAL_CLASS_OVER);}).mouseout(function(){$(this).removeClass(GLOBAL_CLASS_OVER);});$(DEFAULT_TABLE_STYLE+' '+Effekten_Arrays[a]).focus(function(){$(this).removeClass('inpu').addClass(GLOBAL_CLASS);});$(DEFAULT_TABLE_STYLE+' '+Effekten_Arrays[a]).blur(function(){$(this).removeClass(GLOBAL_CLASS).addClass('inpu');});}}if(GLOBAL_FOCUS_STYLE_FOR_CHECK){$(DEFAULT_TABLE_STYLE+' input:checkbox').addClass("check");$(DEFAULT_TABLE_STYLE+' input:radio').addClass("check");}$('div.cart_b').mouseover(function(){$(this).addClass('hoverbg');}).mouseout(function(){$(this).removeClass('hoverbg');});});function session_online_halten(){$.post(GLOBALS.self,{action:"process",a_process:"process2",SESSION_ID:GLOBALS.sid},function(data){if(data!=''){alert(data);}else{setTimeout(session_online_halten,GLOBAL_UPDATE_TIME);}});}function ajaxInhaltAction(value2,value,geht){$.post(GLOBALS.self,{action:'aktion',action2:geht,_name:value2,_wert:value});}function funkmenge(){var f=document.cart_quantity2;if(f&&f.products_qty&&f.products_id){f.products_qty.value=only_number(f.products_qty.value);if(f.products_id.value>0&&f.products_qty.value>0){f.submit();}}}function no_checked_fields(){if(typeof window.$=="function"){if(typeof(ZahlungsArray_IDS)!=UD){var A=ZahlungsArray_HIDE.toString().split(" ").join("").toString().split(","),B=ZahlungsArray_SHOW.toString().split(" ").join("").toString().split(",");for(var x in ZahlungsArray_IDS){var m=ZahlungsArray_IDS[x];if(m!=""){$("#"+m+"_i").attr("checked",false);}}}}}function zahlung_stop(wert,country){var M=ZahlungsArray[wert],country=((typeof wert!=UD&&typeof ZahlartAusnahme[wert]!=UD)?document.shopping.land.value:country),x=1;if(is_array(M)){if(in_array(country,M)){$("#"+wert+"_i").attr("disabled","");}else{$("#"+wert+"_i").attr("disabled","disabled").attr("checked", "");}}else{if(M==''){$("#"+wert+"_i").attr("disabled","");}}}function zahlung_deaktivieren(oneArray,country){if(typeof window.$=="function"){var c=country;if(is_array(ZahlungsArray)&&typeof(ZahlungsArray_IDS)!=UD){no_checked_fields();for(var x in ZahlungsArray_IDS){if(ZahlungsArray_IDS[x]!=''){zahlung_stop(ZahlungsArray_IDS[x],c);}}}}}function zahlung_deaktivieren_land(oneArray){var f=document.shopping,a=checkradio(f.alternativ_liefer),a=(a==1||a==2)?true:false;AutoShippingCost((a==false?f.land:f.hlland).value);if(a==false){zahlung_deaktivieren(ZahlungsArray,f.land.value);}else{zahlung_deaktivieren(ZahlungsArray,f.hlland.value);}}
function abfrage_return(v, b)
{
    if (typeof window.$ == "function")
    {
        if (typeof (ZahlungsArray) != UD && is_array(ZahlungsArray)) {
            zahlung_deaktivieren_land(ZahlungsArray);
        }
        no_checked_fields();
        // if (v.checked == true)
        // {
            // v.checked = true;
			var val=v.value;
		if(val==2){
            $("#cart_alternative").hide();
			$("#td4_str").html(err_m2['str_2']);
			$("#td4_company").html(err_m2['company_2']);
			// err_m["street_address"] = err_m["street_address_2"];
			// err_l["street_address"] = err_l["street_address_2"];
			// err_m["company"] = err_m["company_2"];
			// err_l["company"] = err_l["company_2"];

            $("#hadresse").val(TEXT_STR_AUTO2);
            //$("#hhausnummer").hide().html(".");
            $("#cart_alternative").slideDown(GLOBAL_SPEED_SLIDEDOWN);
            if (typeof (ZahlungsArray_IDS) != UD)
            {
                for (var x in ZahlungsArray_IDS)
                {
                    if (ZahlungsArray_SHOW.match(ZahlungsArray_IDS[x]) == ZahlungsArray_IDS[x]) {
                        $("#" + ZahlungsArray_IDS[x]).show("fast");
                    }
                    else {
                        $("#" + ZahlungsArray_IDS[x]).hide("fast");
                    }
                }
            }
		}else if(val==1){
            $("#cart_alternative").hide();
			$("#td4_str").html(err_m2['str_1']);
			$("#td4_company").html(err_m2['company_1']);
			
            $("#hadresse").val("");
            $("#cart_alternative").slideDown(GLOBAL_SPEED_SLIDEDOWN);
            if (typeof (ZahlungsArray_IDS) != UD)
            {
                for (var x in ZahlungsArray_IDS)
                {
                    if (ZahlungsArray_SHOW.match(ZahlungsArray_IDS[x]) == ZahlungsArray_IDS[x]) {
                        $("#" + ZahlungsArray_IDS[x]).show("fast");
                    }
                    else {
                        $("#" + ZahlungsArray_IDS[x]).hide("fast");
                    }
                }
            }
		}else{
            if (typeof (ZahlungsArray_IDS) != UD)
            {
                for (var x in ZahlungsArray_IDS)
                {
                    if (ZahlungsArray_HIDE.match(ZahlungsArray_IDS[x]) == ZahlungsArray_IDS[x]) {
                        $("#" + ZahlungsArray_IDS[x]).hide("fast");
                    }
                    else {
                        $("#" + ZahlungsArray_IDS[x]).show("fast");
                    }
                }
            }
            $("#cart_alternative").slideUp(GLOBAL_SPEED_SLIDEUP);
		}
            return val;
    }
	return 0;
}

function zahlart_beschreibung(z,t){if(typeof window.$=="function"){var id="cart_frage_box_beschreibung",h='';if(typeof(ZahlungsArray_INFO[z])!=UD){var h=ZahlungsArray_INFO[z];}if(h!='')$("#"+id).html(h).show(GLOBAL_SPEED_INFOSHOW);else $("#"+id).hide(GLOBAL_SPEED_INFOHIDE).html(h);}}function plus_waitpoint(n){var x='';for(var i=0;i<n;i++){x+=GLOBAL_WAITPOINT;}$('#please_wait').html(x);}function wait(p,text){if(typeof(text)==UD||text.length<4){var text=TEXT_PLEASE_WAIT;}var text_content='<span id="shop_cart_loading"><img border=0 height='+GLOBAL_PICWAIT_H+' width='+GLOBAL_PICWAIT_W+' src='+GLOBAL_DIR_STYLE+GLOBAL_PICWAIT+'><br /><span>'+text+'</span><span id=please_wait><br /></span></span>';if($.blockUI){if(p==1){$.unblockUI(text_content);}else{$.blockUI.defaults.message=text_content;$.blockUI(text_content);}}}function in_array(v,arr){for(var p=0;p<arr.length;p++){if(v==arr[p]){return true;}}return false;}function is_array(arr){return((arr!=null&&typeof arr!=UD&&arr.constructor==Array)?true:false);}function scrolling(v){$(DEFAULT_SCROLL_ID).scrollTo('#cart_errorBox',GLOBAL_SCROLL_SPEED,{axis:'y'});}function scroll(v){if(typeof(v)!='number'){var v=GLOBAL_SCROLL_POS_Y;}window.scrollTo(GLOBAL_SCROLL_POS_X,v);}function is_id(id){var e=document.getElementById(id);return e?e:{};}function maxtextlength(textar){if(textar.getAttribute("maxlength")){var maxlength=textar.getAttribute("maxlength");if(textar.value.length>maxlength){textar.value=textar.value.slice(0,maxlength);}}}function validEmail(e){return new RegExp("^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$").test(e);}function checkradio(feld){if(feld){if(feld.checked==true){return feld.value;}else{for(i=0;i<feld.length;i++){if(feld[i].checked==true){return feld[i].value;}}}}else{return false;}}function trim(v){return (v||'').replace(/(^\s+)|(\s+$)/g,'');}function str_replace(x,y,S){if(typeof S==UD||S==null){return '';}var y=(typeof y==UD||y==null?'':y),x=(typeof x==UD||x==null?'':x),m=S.toString(),i=0;if(x.constructor==Array){for(i in x){var m=m.split(x[i]).join(y);}return m;}return m.split(x).join(y);}function number_format(n,s,d,t){var s=(typeof s!=UD?s:0),d=(typeof d!=UD?d:"."),t=(typeof t!=UD?t:""),n=n.toFixed(s),z=n.split('.'),g=z[0].split('').reverse(),g=g.join(''),s='';for(var i=1;i<=g.length;i++){s+=g.charAt(i-1);if(i%3==0&&i!=g.length){s+=t;}}var g=s.split('').reverse(),de='';if(z[1]){var de=d+z[1];}var g=g.join('')+de;return g}function only_number(v){var v=((typeof v==UD)?'':v).toString(),r=v,s='';while(r.length>0){var m=r.slice(0,1).replace(/[0-9]/,"");if(m.toString().length==0){s+=r.slice(0,1);}var r = r.slice(1);}return s;}
String.prototype.str_replace=function(a,b){return str_replace(a,b,this)};String.prototype.trim=function(){return trim(this)};
function osoFormatNumber(Zahl){var r=(typeof GLOBALS.format.left!=UD?GLOBALS.format.left+GLOBALS.format.s+number_format(Zahl,GLOBALS.format.places,GLOBALS.format.decimal,GLOBALS.format.thousands)+GLOBALS.format.s+GLOBALS.format.right:Zahl).toString().trim(); return r}
function AutoShippingCost(Country_ID){if(typeof window.SHIPPING_AUTO_COST!=UD&&SHIPPING_AUTO_COST==true){var Country_ID=(typeof Country_ID==UD?'auto':Country_ID),F=document.shopping,Land_1=F.land.value,Land_2=F.hlland.value,Auf=checkradio(F.alternativ_liefer),Auf=(Auf==1||Auf==2)?true:false,Z=checkradio(F.zahlart);if(Country_ID){$.post(GLOBALS.self,{country_id:Country_ID,country_first:Land_1,payment:Z,country_second:Land_2,on:Auf,action:"process",g_process:"process"},function(data){if(typeof data!=UD&&typeof data.cost!=UD){var F=document.shopping,Versand=data.cost,X=osoFormatNumber(eval(Versand+'+'+GLOBAL_TOTAL_SUM)),Y=osoFormatNumber(Versand);$('#Gesamt_Summe').each(function(){$(this).html(X);});$('#Gesamt_Summe2').html(X);$('#Gesamt_Summe_SHIPPING2').html(Y);$('#Gesamt_Summe_SHIPPING').each(function(){$(this).html(Y);});$('#total_price').each(function(){$(this).html(X);});$('#total_price2').html(X);$('#shipping_cost_top2').html(Y);$('#shipping_cost_top').each(function(){$(this).html(Y);});if(F.versand_tmp&&data.id){$(F.versand_tmp).val(data.id);}if(data.module_cost){$('#Gesamt_Summe_SHIPPING2').html(data.module_cost);$('#Gesamt_Summe_SHIPPING').each(function(){$(this).html(data.module_cost);});}}},"json");return true;}}return false;}function payment_content_on(t){if(t.name&&t.name=='zahlart'){if(t.value){var halb_id=t.value;$("#"+halb_id+'_content').slideDown();for(var x in ZahlungsArray_IDS){if(ZahlungsArray_IDS[x]!=halb_id){$("#"+ZahlungsArray_IDS[x]+'_content').slideUp();}}AutoShippingCost();}}}function REP(v){return v.str_replace('&auml;','ä').str_replace('&Auml;','Ä').str_replace('&ouml;','ö').str_replace('&Ouml;','Ö').str_replace('&uuml;','ü').str_replace('&Uuml;','Ü').str_replace('&szlig;','ß');}
String.prototype.REP=function(){return REP(this)};
function paymentoption_change(s){var p=((typeof (s)==UD)?'moneyorder,paypal':s),p=p.toString().split(','),r=false;for(var i in p){p[i]=str_replace(' ','',p[i]);}for(var i in ZahlungsArray_IDS){$('#'+ZahlungsArray_IDS[i]+'_i').attr("checked",'');if(in_array(ZahlungsArray_IDS[i],p)){$('#'+ZahlungsArray_IDS[i]+'_i').attr("disabled",'');var r=true;}else{$('#'+ZahlungsArray_IDS[i]+'_i').attr("disabled",'disabled');}}return r;}function SendPOST_Fields(Zahlart_is,Step){var Xa=['"','\\'],s=(Zahlart_is=='wirecard_ccard'?'wirecard_ccard_':''),h=checkradio(document.shopping.alternativ_liefer),h=(h==1||h==2)?true:false,GetVariable='{"delivery":"'+(h?1:0)+'",';$('#'+Zahlart_is+'_content input').each(function(){GetVariable+='"'+s+this.name.replace('_expdate_','_expires_')+'":"'+str_replace(Xa,'',$(this).val())+'","'+this.name+'":"'+str_replace(Xa,'',$(this).val())+'",';});$('#'+Zahlart_is+'_content select').each(function(){GetVariable+='"'+s+this.name.replace('_expdate_','_expires_')+'":"'+str_replace(Xa,'',$(this).val())+'","'+this.name+'":"'+str_replace(Xa,'',$(this).val())+'",';});GetVariable+='"payment":"'+Zahlart_is+'","Zahlart":"'+Zahlart_is+'"}';return GetVariable;}
function process_start(){if(check_onestep.PROCESS>=1){return;}check_onestep.ACTIONS=0;wait(0);if(check_list()){AJAX_GO();setTimeout(function(){if(typeof check_onestep.PROCESS==UD||check_onestep.PROCESS<1){wait(1);}},5000);}}function AJAX_GO2(g,o){if(check_onestep&&is_array(check_onestep.CASH)){if(typeof g==UD||g.toString()===''){if(typeof check_onestep.CASH['account']!=UD){check_onestep.CASH['account'][1]='reg';check_user_with_ajax2=false;$('#cart_alternative input').each(function(){$(this).attr('readonly','readonly');});}else{check_onestep.CASH['account']=new Array(2);check_onestep.CASH['account'][0]='reg';check_user_with_ajax=false;$('#box_kunde input').each(function(){$(this).attr('readonly','readonly');});}}}AJAX_GO(g,o);}function AJAX_GO(g,o){var act=(typeof g==UD||g.toString()==='')?0:1;if(act==0){if(check_onestep&&is_array(check_onestep.POSTS)&&check_onestep.POSTS.join('')!==''){if(typeof check_onestep.PROCESS!=UD&&typeof check_onestep.ACTIONS!=UD){if(check_onestep.PROCESS>=1){if(typeof(check_onestep.POSTS[check_onestep.ACTIONS])!=UD){if(check_onestep.DEBUG.a===true){check_onestep.DEBUG.debug('POST away->'+check_onestep.POSTS.length+'/'+check_onestep.ACTIONS);}check_onestep.PROCESS=5;eval(check_onestep.POSTS[check_onestep.ACTIONS]);}else{if(check_onestep.DEBUG.a!==true){check_onestep.PROCESS=6;document.shopping.submit();}else{check_onestep.ACTIONS=0;check_onestep.DEBUG.debug('','submit');}}check_onestep.ACTIONS=check_onestep.ACTIONS+1;plus_waitpoint(check_onestep.ACTIONS);}}}}else{explode_errors(g);}}function check_extend(name,value,new_obj){var new_obj=(typeof new_obj==UD)?'errors':new_obj;eval("check_onestep."+new_obj+"."+name+" = function(a,b,c,d,e,f,g){return "+value+";}");return true;}
function explode_errors(v){if(typeof v!=UD){var v=v.toString();if(v===''||v===false){var v=error_create(err_m['default']);}if(check_onestep.DEBUG.report&&typeof check_onestep.errors.check_report!=UD){report_error_go(v);}$('#cart_errorBox').html(v).slideDown(600);$('#cart_action').show();scrolling();}check_onestep.PROCESS=0;wait(1);}function check_list(){if(check_onestep.PROCESS==1){return;}if(!required_fields()){if(typeof window.wait=='function'){wait(1);}return;}check_onestep.PROCESS=1;var errors=false,s=true,POSTS=[];for(var w in check_onestep.errors){var s=eval("check_onestep.errors."+w+"();");if((s||'').toString().slice(0,6)=='$.post'){POSTS[POSTS.length]=s;var s=true;if(check_onestep.DEBUG.a===true){check_onestep.DEBUG.debug(w);}}if(s===false||s!==true){var errors=true;break;}}if(errors){explode_errors(s);}if(POSTS.join('')!==''){check_onestep.POSTS=POSTS;}return (!errors);}function required_fields(){var f=document.shopping;if(!(f&&f.vorname&&f.nachname&&f.email_address&&f.tel_tag&&f.adresse&&f.plz&&f.oort)){check_onestep.POSTS='';check_onestep.PROCESS='';check_onestep.ACTIONS='';return false;}return true;}
function check_fields(ab,bis){check_onestep.ACTIONS=0;var s=document.shopping,ab=(typeof ab!=UD?ab:0),bis=(typeof bis!=UD?bis:1),Ret=true,err=new Array(1),err2=new Array(1),err3=new Array(1),fd=[];fd['gender']='anrede';fd['firstname']='vorname';fd['lastname']='nachname';fd['dob']='dob';fd['email_address']='email_address';fd['street_address']='adresse';fd['hausnummer']='hausnummer';fd['suburb']='suburb';fd['postcode']='plz';fd['city']='oort';fd['state']='state';fd['country']='land';fd['company']='firma';fd['telephone']='tel_tag';fd['fax']='fax';fd['vat']='ust_id';fd['password']='temp_passwort';fd['confirmation']='temp_passwortb';err3[0]='';err3[1]='';var h=checkradio(s.alternativ_liefer),h=(h==1||h==2)?true:false;for(var i=ab;i<bis;i++){if(i==0&&check_user_with_ajax||i==1&&h&&check_user_with_ajax2){var F='s.'+(i==1?'hl':''),per='',x='';for(var x in fd){var A=eval(F+fd[x]),r='';if(A){var newA=err_mark(A,x),r=newA[1];A.value=r;if(err.join('')!==''&&i==0){err3[0]=error_create(TEXT_ERROR_ONE);}if(i==1){err2[(err2.length+1)]=newA[0];}else{err[(err.length+1)]=newA[0];}if(err2.join('')!==''&&i==1){err3[1]=error_create(TEXT_ERROR_TWO);}}per+=',"'+x+'":"'+r+'"';}var f=((s.temp_passwort&&s.temp_passwort.value!='')?0:1),URL='create'+(f==1?'_guest':'')+'_account.php?XTCsid='+GLOBALS.sid,URL=((i==1)?GLOBALS.self:URL),Ret=(Ret===true?"":Ret),Ret='$.post("'+URL+'",{"action":"process"'+per+'},AJAX_GO2);'+Ret;}}var content=err3[0].toString()+error_create(err)+err3[1].toString()+error_create(err2),r=(content==''?Ret:content);return r;}function error_create(arr){var start='<span class="messageStackError">',s_and='<img src="'+GLOBAL_DIR_CATALOG+'images/icons/error.gif" alt=error title=" ICON_ERROR " width=10 height=10/>&nbsp;',end='</span><br/>',content='';if(is_array(arr)){for(var i in arr){if(arr[i]!=''){content+=start+s_and+arr[i]+end;}}}else{if(typeof arr!=UD&&arr.toString()!==''){content+=start+'<span class=cart_h3>'+arr.toString()+'</span>'+end;}}return content;}function err_mark(This,Key){var e='',v='';if(This){var v=trim(str_replace(Array('"',"\n","\\"),'',(typeof(This.value)!=UD?This.value:''))),e=err_length(v,Key,This);if(e===true){var e='';$(This).removeClass(GLOBAL_CLASS_ERROR);}else{$(This).addClass(GLOBAL_CLASS_ERROR);}}return [e,v];}function err_length(Value,Key,This){var z=0;if(Key===false||Key===true){var r=Key;}else{if(typeof err_l[Key]!=UD){

	var f=document.shopping,a=checkradio(f.alternativ_liefer),a=((a==1||a==2)&&(typeof This.name!=UD&&This.name.slice(0,2)=='hl'))?'_'+a:'_1';
	err_m["street_address"] = err_m["street_address"+a];
	err_l["street_address"] = err_l["street_address"+a];
	err_m["company"] = err_m["company"+a];
	err_m["company"] = err_m["company"+a];
	err_m["hausnummer"] = err_m["hausnummer"+a];
	err_l["hausnummer"] = err_l["hausnummer"+a];

var z=err_l[Key];}var r=err_mess(Key,z,Value,This);}return r;}function err_mess(Key,z,vz,This){var ausnahmen=['dob','email_address','street_address','city','company','vat','confirmation'],r=true,vzL=vz.length;if(z!=0&&vzL<z){var r=((typeof err_m[Key]!=UD)?str_replace('%replaced%',z,err_m[Key]):'');}if(in_array(Key,ausnahmen)){var r=((typeof err_m[Key]!=UD)?str_replace('%replaced%',z,err_m[Key]):'');switch(Key){case ausnahmen[0]:if(z==0||vzL==z){var r=true;}break;case ausnahmen[1]:if(z==0||vzL>=z&&validEmail(vz)){var r=true;}else{if(vzL<z&&typeof err_m[Key+'2']){var r=err_m[Key+'2'];}}break;case ausnahmen[2]:if(z==0||vzL>=z&&vz!=TEXT_STR_AUTO){var r=true;}break;case ausnahmen[3]:if(z==0||vzL>=z&&vz!=TEXT_ORT_AUTO){var r=true;}break;case ausnahmen[4]:if(z==0||vzL>=z||vzL==0){var r=true;}break;case ausnahmen[5]:if(z==0||vzL>=z||vzL==0){var r=true;}break;case ausnahmen[6]:if(z==0||document.shopping.temp_passwort&&(vzL>=z||vzL==0)&&vz==document.shopping.temp_passwort.value){var r=true;err_mark(document.shopping.temp_passwort,r);}else{err_mark(document.shopping.temp_passwort,false);}break; default:}}return r;}function check_rest_fields(){var f=document.shopping,r=true,err=[],Z=checkradio(f.zahlart),A=in_array(Z,ZahlungsArray_IDS),s=checkradio(f.alternativ_liefer),s=(s==1||s==2)?true:false;if(f.getrennt&&s&&f.hlgeschenk){f.hlgeschenk.value=(f.getrennt.checked)?f.getrennt.value:0;}if(f.versand_tmp){f.versand_tmp.value=GLOBAL_FREEAMOUNT_COUST?'freeamount_freeamount':'zones_zones';}if(Z=='cash'){f.versand_tmp.value='selfpickup_selfpickup';}if(GLOBAL_TOTAL_SUM<=0){err[(err.length+1)]=TEXT_SHOPPING_CART_E;}else{if(!A){err[(err.length+1)]=TEXT_PAYMENT_E;err_mark(is_id('cart_art'),false);}else{err_mark(is_id('cart_art'),true);}if(!f.conditions.checked){err[(err.length+1)]=TEXT_AGB_CHECK;err_mark(is_id('cart_agb_check'),false);}else{err_mark(is_id('cart_agb_check'),true);}}var r=error_create(err);return((r==='')?true:r);}function ajax_next_posts(x){var auswahl=['checkout_shipping.php','checkout_payment.php','checkout_confirmation.php'];if(typeof (auswahl[x])!=UD){var f=document.shopping,Zahlart_is=checkradio(f.zahlart),GetVariable='?Zahlart='+Zahlart_is,GetVariable2=((x==0||typeof GETVarsPOST_PAYMENT==UD)?SendPOST_Fields(Zahlart_is):GETVarsPOST_PAYMENT),r="$.post('"+auswahl[x]+GetVariable+(typeof GLOBALS.sid!=UD?"&XTCsid="+GLOBALS.sid:"")+"',"+str_replace('\n',' <br> ',GetVariable2)+",AJAX_GO)";if(x==0||typeof GETVarsPOST_PAYMENT==UD){GETVarsPOST_PAYMENT=GetVariable2;}return r;}return true;}function oneTest_Property(){var GetVariable="'z_process':'process',",Xa=['"','\\'];$('#checkout_payment input').each(function(){if(this.name!='action'&&this.name!=''){if(this.type=='radio'||this.type=='checkbox'){if($(this).is(":checked")){GetVariable+='"'+this.name+'":"'+str_replace(Xa,'',$(this).val())+'",';}}else{GetVariable+='"'+this.name+'":"'+str_replace(Xa,'',$(this).val())+'",';}}});$('#checkout_payment select').each(function(){if(this.name!=''){GetVariable+='"'+this.name+'":"'+str_replace(Xa,'',$(this).val())+'",';}});$('#checkout_payment textarea').each(function(){if(this.name!=''){GetVariable+='"'+this.name+'":"'+str_replace(Xa,' ',$(this).val())+'",';}});GetVariable+="'action':'process'";var x="$.post('"+GLOBALS.self+"',{"+str_replace("\n",' <br> ',GetVariable)+"},AJAX_GO)";return x;}function report_error_go(e){if(typeof console!=UD&&typeof console.error!=UD){console.error(e.str_replace(Array("<br>","<br/>","<br />"),"\n").replace(/<.*?>/gi, '').REP().str_replace('&nbsp;',' '));}$.post(GLOBALS.self,{z_process:'process',error:REP(e),a:1,action:'process'},function(data){});return true;}function userRegAllowed(){check_user_with_ajax=true;process_start();}