var httpRequest=null;var error=new Array();var pictureCount=0;var formelement=new Array();var locationDropdownCancel=null;var switchAnimateBox=false;var menuHideRequested=false;var charTextLimit;var inputBgImage;var selectBgImage;var inputBgImageError;var selectBgImageError;function setRequest(){httpRequest=false;try{if(window.XMLHttpRequest){httpRequest=new XMLHttpRequest();if(httpRequest.overrideMimeType){httpRequest.overrideMimeType("text/xml")}}else{if(window.ActiveXObject){try{httpRequest=new ActiveXObject("Msxml2.XMLHTTP")}catch(A){try{httpRequest=new ActiveXObject("Microsoft.XMLHTTP")}catch(A){alert("No support for Ajax, please update your browser!")}}}}}catch(A){getDebug("setRequest",A)}return httpRequest}function getDebug(B,A){if(DEBUG_JAVASCRIPT){alert("Error at "+B+":\n"+A)}}function setFormData(D){var C=new Array();C[0]=new Array();var A="";try{for(var B=0;B<document.forms[D].length;B++){switch(document.forms[D].elements[B].tagName){case"TEXTAREA":C[B]=new Array();C[B]["name"]=(document.forms[D].elements[B].id)?document.forms[D].elements[B].id:document.forms[D].elements[B].name;C[B]["value"]=document.forms[D].elements[B].value;A+="&"+C[B]["name"]+"="+encodeURIComponent(C[B]["value"]);break;case"SELECT":C[B]=new Array();C[B]["name"]=(document.forms[D].elements[B].id)?document.forms[D].elements[B].id:document.forms[D].elements[B].name;C[B]["value"]=document.forms[D].elements[B].value;A+="&"+C[B]["name"]+"="+C[B]["value"];break;case"INPUT":switch(document.forms[D].elements[B].type){case"checkbox":if(document.forms[D].elements[B].checked){C[B]=new Array();C[B]["name"]=(document.forms[D].elements[B].id)?document.forms[D].elements[B].id:document.forms[D].elements[B].name;C[B]["value"]=document.forms[D].elements[B].value;A+="&"+C[B]["name"]+"="+C[B]["value"]}else{C[B]=new Array();C[B]["name"]=(document.forms[D].elements[B].id)?document.forms[D].elements[B].id:document.forms[D].elements[B].name;C[B]["value"]="";A+="&"+C[B]["name"]+"="+C[B]["value"]}break;case"text":case"file":case"hidden":case"password":C[B]=new Array();C[B]["name"]=(document.forms[D].elements[B].id)?document.forms[D].elements[B].id:document.forms[D].elements[B].name;C[B]["value"]=encodeURIComponent(document.forms[D].elements[B].value);A+="&"+C[B]["name"]+"="+C[B]["value"];break;case"radio":C[B]=new Array();if(document.forms[D].elements[B].checked){C[B]["name"]=document.forms[D].elements[B].name;C[B]["value"]=document.forms[D].elements[B].value;A+="&"+C[B]["name"]+"="+C[B]["value"]}break}break}}}catch(E){getDebug("setFormData",E)}return A}function viewError(F){try{if(document.getElementById("regErrors")){document.getElementById("regErrors").style.display="block"}var E=270;for(var B=0;B<F.length;B++){if(document.getElementById("regErrors"+F[B])){document.getElementById("regErrors"+F[B]).style.display="block";if(F[B]=="_no_birthday_day"||F[B]=="_no_birthday_month"||F[B]=="_no_birthday_year"||F[B]=="_invalid_birthday"){if(document.getElementById("regErrors_invalid_birthday")){document.getElementById("regErrors_invalid_birthday").style.display="block"}}}if(document.getElementById("validationinfo"+F[B])){document.getElementById("validationinfo"+F[B]).style.display="block";if(document.getElementById("validationinfo"+F[B]).parentNode.getElementsByTagName("input")[0]){if(document.getElementById("regErrors")){document.getElementById("validationinfo"+F[B]).parentNode.getElementsByTagName("input")[0].style.backgroundImage=inputBgImageError}else{document.getElementById("validationinfo"+F[B]).parentNode.getElementsByTagName("input")[0].style.backgroundColor="#f88"}}if(document.getElementById("validationinfo"+F[B]).parentNode.getElementsByTagName("select")[0]){document.getElementById("validationinfo"+F[B]).parentNode.getElementsByTagName("select")[0].style.backgroundColor="#f88"}if(F[B]=="_no_birthday_day"||F[B]=="_no_birthday_month"||F[B]=="_no_birthday_year"||F[B]=="_invalid_birthday"){for(var A=0;A<F.length;A++){if(F[A]=="_invalid_birthdaycomplete"){var C=true}}if(C!=true){if(document.getElementById("validationinfo_invalid_birthday")){document.getElementById("validationinfo_invalid_birthday").style.display="block"}}}}else{if(document.getElementById(F[B])){document.getElementById(F[B]).style.display="block"}}if(document.getElementById("regErrors")&&E==270){if(F[B]=="_no_birthday_day"||F[B]=="_no_birthday_month"||F[B]=="_no_birthday_year"||F[B]=="_invalid_birthdaycomplete"){E=100}else{if(F[B]=="_no_zip"||F[B]=="_invalid_zip"||F[B]=="_ambiguous_zipcode"){E=152}else{if(F[B]=="_no_username"||F[B]=="_invalid_username"||F[B]=="_exist_username"){E=178}else{if(F[B]=="_no_password"||F[B]=="_invalid_password"){E=204}else{if(F[B]=="_no_email"||F[B]=="_invalid_email"||F[B]=="_exist_email"){E=230}}}}}}}if(document.getElementById("regErrors")){document.getElementById("regErrors").style.marginTop=E+"px"}}catch(D){getDebug("viewError",D)}}function saveData(E,D){var A=setFormData(E);var B="&nextpage="+D;var C="&formname="+E;A+=B+C;httpRequest=setRequest();httpRequest.onreadystatechange=function(){if(httpRequest.readyState==4){if(httpRequest.status==200){var F=httpRequest.responseText;var G=F.split(",");if(G[0]==1){if(G[1]!="self"&&G[1]!="selfreload"){window.location.href=G[1]}else{if(G[1]=="selfreload"){window.location.reload()}else{return G[0]}}}else{error=G;viewError_1(G)}}}};httpRequest.open("POST","?request=formsetdata.php",true);httpRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded");httpRequest.send(A)}function charCounter(A,D,F,C){charTextLimit=C;try{document.getElementById(D).innerHTML=F-document.getElementById(A).value.length;var B=document.getElementById(A);B.max_chars=F;B.spanCounter_id=D;B.onkeyup=counterUpdate}catch(E){getDebug("charCounter",E)}}function counterUpdate(){try{var C=this.value.length;var A=document.getElementById(this.spanCounter_id);if(A){A.innerHTML=this.max_chars-C}if(C>=this.max_chars){A.innerHTML=0;alert(charTextLimit);this.value=this.value.substring(0,this.max_chars);return false}}catch(B){getDebug("counterUpdate",B)}}function checkMaxLetters(A){if(A.value.length>800){A.value=A.value.substring(0,800)}}function hideObject(B){try{if(document.getElementById(B)){document.getElementById(B).style.display="none"}}catch(A){getDebug("hideObject",A)}}function hideShowObject(A,C){try{if(document.getElementById(C)){switch(A){case"show":document.getElementById(C).style.display="block";break;case"hide":document.getElementById(C).style.display="none";break}}}catch(B){getDebug("hideShowObject",B)}}function setLocationValue(C,A,B){try{document.forms[C].elements[A].value=B}catch(D){getDebug("hideShowObject",D)}}function addUploadPicture(D){try{pictureCount++;var B=document.createElement("div");B.setAttribute("id","divUploadPicture_"+pictureCount);var C=document.createElement("input");C.setAttribute("type","file");C.setAttribute("name","inputUploadPicture["+pictureCount+"]");B.appendChild(C);var A=document.createElement("a");A.setAttribute("class","uploadCancel");A.setAttribute("href","javascript:{removeUploadPicture("+pictureCount+")}");A.innerHTML="&nbsp;"+D;B.appendChild(A);document.getElementById("uploadPictures").appendChild(B)}catch(E){getDebug("addUploadPicture",E)}}function removeUploadPicture(A){try{if(document.getElementById("divUploadPicture_"+A)){document.getElementById("uploadPictures").removeChild(document.getElementById("divUploadPicture_"+A))}}catch(B){getDebug("removeUploadPicture",B)}}function changeContactType(A,D){try{clearInvalidField();for(var B=1;B<=4;B++){if(document.getElementById("contactTypes_"+B)){if(B==A){document.getElementById("contactTypes_"+B).style.display="block"}else{document.getElementById("contactTypes_"+B).style.display="none"}}if(document.getElementById("contactTypeInfos_"+B)){if(B==A){document.getElementById("contactTypeInfos_"+B).style.display="block"}else{document.getElementById("contactTypeInfos_"+B).style.display="none"}}}if(A==3&&D==1){clearInvalidField();document.getElementById("loginbox").style.display="none";document.getElementById("container_1").style.display="block";document.getElementById("feedback").style.display="block"}else{checkContactType()}}catch(C){getDebug("changeContactType",C)}}function switchContactChildren(B,A){try{for(var E=1;E<6;E++){for(var D=1;D<6;D++){if(document.getElementById("contactTypes_"+E+"_"+D)){for(var C=1;C<6;C++){if(document.getElementById("contactTypes_"+E+"_"+D+"_"+C)){if(E==B&&D==A){document.getElementById("contactTypes_"+E+"_"+D+"_"+C).style.display="block"}else{document.getElementById("contactTypes_"+E+"_"+D+"_"+C).style.display="none"}}}}}}}catch(F){getDebug("switchContactChildren",F)}}function checkContactType(C,B,A){clearInvalidField();try{for(var F=1;F<6;F++){for(var E=1;E<6;E++){if(document.getElementById("contactTypeInfos_"+F+"_"+E)){document.getElementById("contactTypeInfos_"+F+"_"+E).style.display="none"}for(var D=1;D<6;D++){if(document.getElementById("contactTypeInfos_"+F+"_"+E+"_"+D)){document.getElementById("contactTypeInfos_"+F+"_"+E+"_"+D).style.display="none"}}}}if(document.getElementById("contactTypeInfos_"+C+"_"+B)){document.getElementById("contactTypeInfos_"+C+"_"+B).style.display="block"}if(document.getElementById("contactTypeInfos_"+C+"_"+B+"_"+A)){document.getElementById("contactTypeInfos_"+C+"_"+B+"_"+A).style.display="block"}document.getElementById("_invalid_contactAuthorization").style.display="none";if(C==2&&B==3){document.getElementById("contact_service").style.display="block";document.getElementById("contactApi").value="cancelProfile";document.getElementById("contactInfoLabel").style.display="none";document.getElementById("contactProfileLabel").style.display="none";document.getElementById("contactInfo").style.display="none";document.getElementById("contactProfile").style.display="none"}else{if(C==3){document.getElementById("contactApi").value="cancelPremium";document.getElementById("contactProfileLabel").style.display="none";document.getElementById("contactProfile").style.display="none";document.getElementById("contactCategory").value=B;document.getElementById("contact_service").style.display="block";if(B==2){document.getElementById("contactInfoLabel").style.display="block";document.getElementById("contactInfo").style.display="block";document.getElementById("btn_sendContact").style.display="block"}else{document.getElementById("contactInfoLabel").style.display="none";document.getElementById("contactInfo").style.display="none";document.getElementById("btn_sendContact").style.display="none"}}else{if(C==4){document.getElementById("offense_form").style.display="block";document.getElementById("contactApi").value="contactSupport";if(B==3){document.getElementById("row_offense_1").style.display="block";document.getElementById("row_offense_2").style.display="none";document.getElementById("offenseCategory").value=1;document.getElementById("contactInfoLabel").style.display="block";document.getElementById("contactProfileLabel").style.display="none";document.getElementById("contactInfo").style.display="block";document.getElementById("contactProfile").style.display="none"}else{document.getElementById("row_offense_1").style.display="none";document.getElementById("row_offense_2").style.display="block";document.getElementById("offenseCategory").value=3;document.getElementById("contactInfoLabel").style.display="none";document.getElementById("contactProfileLabel").style.display="block";document.getElementById("contactInfo").style.display="none";document.getElementById("contactProfile").style.display="block"}document.getElementById("contactCategory").value=B}else{document.getElementById("contact_service").style.display="none"}}}}catch(G){getDebug("checkContactType",G)}}function sendContact(H){try{var F=setRequest();F.onreadystatechange=function(){if(F.readyState==4){if(F.status==200){try{var K=F.responseText;var M=K.split(",");if(M[0]==1){for(var L=1;L<M.length;L++){document.getElementById(M[L]).style.display="block"}}else{if(M[0]==2){window.location.href=M[1]}else{document.getElementById("contact_service").style.display="none";document.getElementById("contactRequest").style.display="none";document.getElementById("contactResponse").innerHTML=K;document.getElementById("spc_whitebox0").style.display="block"}}}catch(N){getDebug("sendContact",N)}}}};document.getElementById("_invalid_contactMail").style.display="none";document.getElementById("_invalid_accountMail").style.display="none";document.getElementById("_invalid_contactAuthorization").style.display="none";document.getElementById("_invalid_contactInfo").style.display="none";if(H=="cancel_confirm"){var G=document.forms[H].contactApi.value}else{var G=document.forms[H].contactApi.value;var J=document.forms[H].contactCategory.value;var C=document.forms[H].contactMail.value;var B=document.forms[H].accountMail.value;var A=document.forms[H].contactInfo.value;var D=document.forms[H].contactProfile.value}var E=(G?("&contactApi="+escape(G)):"")+(G?("&contactCategory="+escape(J)):"")+(C?("&contactMail="+escape(C)):"")+(B?("&accountMail="+escape(B)):"")+(A?("&contactInfo="+escape(A)):(D?("&contactInfo="+escape(D)):""));F.open("GET","?request=sendContact.php"+E,true);F.send(null)}catch(I){getDebug("sendContact",I)}}function clearInvalidField(){try{document.getElementById("_invalid_contactMail").style.display="none";document.getElementById("_invalid_accountMail").style.display="none";document.getElementById("_invalid_contactAuthorization").style.display="none";document.getElementById("_invalid_contactInfo").style.display="none";document.getElementById("contact_error").style.display="none";document.getElementById("error_service").style.display="none";document.getElementById("btn_nxt").style.display="none";document.getElementById("contacts").style.display="block";document.getElementById("offense_form").style.display="none";document.getElementById("feedback").style.display="none";document.getElementById("spc_whitebox1").style.display="none"}catch(A){getDebug("clearInvalidField",A)}}function getContacts(){try{document.getElementById("btn_nxt").style.display="block";document.getElementById("contacts").style.display="none";document.getElementById("contact_service").style.display="none";document.getElementById("container_1").style.display="none"}catch(A){getDebug("getContacts",A)}}function sendCancel(A,C){try{if(A=="yes"){sendContact(C);document.getElementById("spc_whitebox1").style.display="none";document.getElementById("spc_whitebox0").style.display="none"}else{if(A=="no"){window.location.href=C;document.getElementById("spc_whitebox0").style.display="none"}}}catch(B){getDebug("sendCancel",B)}}var customerPreviewStarted=null;function customerPreviewShow(D){try{var B=0,A=0;if(typeof (window.pageYOffset)=="number"){A=window.pageYOffset;B=window.pageXOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){A=document.body.scrollTop;B=document.body.scrollLeft}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){A=document.documentElement.scrollTop;B=document.documentElement.scrollLeft}}}if(typeof (window.innerWidth)=="number"){windowWidth=window.innerWidth;windowHeight=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){windowWidth=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){windowWidth=document.body.clientWidth;windowHeight=document.body.clientHeight}}}B=isNaN(B)?0:B;A=isNaN(A)?0:A;document.getElementById("customerPreview").style.left=((windowWidth+B-416)/2)+"px";document.getElementById("customerPreview").style.top=(A+(windowHeight-360)/2)+"px";document.getElementById("customerPreview").style.visibility="visible";customerProfileSwitch(D)}catch(C){getDebug("customerPreviewShow",C)}}function customerPreviewStart(B){try{if(document.getElementById("customerPreview").style.visibility!="visible"){customerPreviewStarted=setTimeout("customerPreviewShow('"+B+"')",1000)}}catch(A){getDebug("customerPreviewStart",A)}}function customerPreviewHide(){try{if("visible"==document.getElementById("customerPreview").style.visibility){document.getElementById("customerPreview").style.visibility="hidden"}clearTimeout(customerPreviewStarted)}catch(A){getDebug("hideCustomerPreview",A)}}var customerProfileCurrent;function customerProfileSwitch(A){try{if(document.getElementById("preview_"+A)){if(document.getElementById("preview_"+customerProfileCurrent)){document.getElementById("preview_"+customerProfileCurrent).style.display="none"}document.getElementById("preview_"+A).style.display="block";customerProfileCurrent=A}}catch(B){getDebug("hideCustomerPreview",B)}}function checkForParentFrame(){try{if(self!=top){top.location.href=self.location.href}}catch(A){getDebug("checkForParentFrame",A)}}function getLocationBySearch(F,A,H,E){try{if(A.value.length>=3&&H){var D=(F.which?F.which:F.keyCode);if(27==D){if(H){H.style.display="none";H.options.length=0}}else{if(40==D){H.focus();H.options.selectedIndex=0}else{var B=setRequest();B.onreadystatechange=function(){if(B.readyState==4){if(B.status==200){try{if(H){H.options.length=0;H.style.display="block";A.style.background="";var I=B.responseText;var L=I.split("|");for(var J=0;J<20;J++){if(L[J]){H.options[H.length]=new Option(L[J],L[J])}else{H.options[H.length]=null}}}}catch(K){getDebug("getLocationBySearch",K)}}}};A.style.background="url(images/ajaxloading.gif) no-repeat center right";H.style.display="none";var C=/[\d]+/;if(-1==(A.value).search(C)){B.open("GET","?request=locations.php&countryId="+E+"&searched="+escape(A.value),true);B.send(null)}else{A.style.background=""}}}}else{if(H){H.style.display="none";H.options.length=0}}if(document.getElementById("searchRadius")){if(A.value.length){if(document.getElementById("searchRadius").style.display=="none"){$("#searchRadius").slideDown()}}else{if(document.getElementById("searchRadius").style.display!="none"){$("#searchRadius").slideUp()}}}}catch(G){getDebug("getLocationBySearch",G)}}function setLocation(A,D,B){try{if(B&&27==(B.which?B.which:B.keyCode)){D.style.display="none";D.innerHTML="";A.focus()}else{if(!B||13==(B.which?B.which:B.keyCode)){A.value=D.options[D.options.selectedIndex].value;D.style.display="none";D.innerHTML=""}}}catch(C){getDebug("setLocation",C)}}function setCancel(){try{locationDropdownCancel=setTimeout("document.getElementById('searchLocations').style.display='none';document.getElementById('searchLocations').innerHTML='';",1000)}catch(A){getDebug("setCancel",A)}}function HideShow2(D){try{var C=new Array("ec","cc","cab","mopay","direct");for(var A=0;A<C.length;A++){if(document.getElementById("paymethod_"+formelement[A])){document.getElementById("paymethod_"+formelement[A]).style.display=(formelement[A]!=D?"none":"block")}}if(document.getElementById("methodheadder")){if("cc"==D){document.getElementById("methodheadder").style.display="block"}else{if("cab"==D||"direct"==D||"mopay"==D){document.getElementById("methodheadder").style.display="none"}}}}catch(B){getDebug("HideShow2",B)}}function submitFeedBack1(A){try{if(A=="paymentform_ec"||A=="activate_account"){if(document.getElementById("submit_static_ec")){document.getElementById("submit_static_ec").style.display="none"}if(document.getElementById("submit_loading_ec")){document.getElementById("submit_loading_ec").style.display="block"}}else{if(A=="paymentform_cc"||A=="changeMail"){if(document.getElementById("submit_static_cc")){document.getElementById("submit_static_cc").style.display="none"}if(document.getElementById("submit_loading_cc")){document.getElementById("submit_loading_cc").style.display="block"}}}}catch(B){getDebug("submitFeedBack1",B)}}function submitFeedBack2(A){try{if(A=="paymentform_ec"||A=="activate_account"){if(document.getElementById("submit_static_ec")){document.getElementById("submit_static_ec").style.display="block"}if(document.getElementById("submit_loading_ec")){document.getElementById("submit_loading_ec").style.display="none"}}else{if(A=="paymentform_cc"||A=="changeMail"){if(document.getElementById("submit_static_cc")){document.getElementById("submit_static_cc").style.display="block"}if(document.getElementById("submit_loading_cc")){document.getElementById("submit_loading_cc").style.display="none"}}}}catch(B){getDebug("submitFeedBack2",B)}}function hiddeErrorsForNewReg(){document.getElementById("regErrors").style.display="none";document.getElementById("regErrors_invalid_partner_age_from").style.display="none";document.getElementById("regErrors_invalid_birthday").style.display="none";document.getElementById("regErrors_invalid_birthdaycomplete").style.display="none";document.getElementById("regErrors_no_zip").style.display="none";document.getElementById("regErrors_invalid_zip").style.display="none";document.getElementById("regErrors_no_username").style.display="none";document.getElementById("regErrors_invalid_username").style.display="none";document.getElementById("regErrors_exist_username").style.display="none";document.getElementById("regErrors_no_password").style.display="none";document.getElementById("regErrors_invalid_password").style.display="none";document.getElementById("regErrors_no_email").style.display="none";document.getElementById("regErrors_invalid_email").style.display="none";document.getElementById("regErrors_exist_email").style.display="none";document.getElementById("regErrors_ambiguous_zipcode").style.display="none";document.getElementById("regErrors_no_accept_termsofuse").style.display="none";if(document.getElementById("regErrors_no_accept_termsofuse_2")){document.getElementById("regErrors_no_accept_termsofuse_2").style.display="none"}}function formValidation(G,F,E,B,C){try{if(G=="paymentform_cc"||G=="paymentform_ec"||G=="changeMail"||G=="activate_account"){submitFeedBack1(G)}if(document.getElementById(E)){document.getElementById(E).style.display="none"}else{if(document.getElementById("submit_static")){document.getElementById("submit_static").style.display="none"}}if(document.getElementById(C)){document.getElementById(C).style.display="none"}if(document.getElementById(B)){document.getElementById(B).style.display="block"}else{if(document.getElementById("submit_loading")){document.getElementById("submit_loading").style.display="block"}}if(document.getElementById("regErrors")){document.getElementById("regErrors").style.display="none"}if(document.getElementById("hiddendiv")){document.getElementById("hiddendiv").style.display="none"}if(document.getElementById("validationinfo_invalid_birthday")){document.getElementById("validationinfo_invalid_birthday").style.display="none"}if(document.getElementById("validationinfo_ambiguous_zipcode")){document.getElementById("validationinfo_ambiguous_zipcode").style.display="none"}if(document.getElementById("inputBgImageError")){inputBgImageError=document.forms[G].inputBgImageError.value;selectBgImageError=document.forms[G].selectBgImageError.value;inputBgImage=document.forms[G].inputBgImage.value;selectBgImage=document.forms[G].selectBgImage.value}for(var D=0;D<formelement.length;D++){if(document.getElementById("validationinfo"+formelement[D])){document.getElementById("validationinfo"+formelement[D]).style.display="none";if(document.getElementById("validationinfo"+formelement[D]).parentNode.getElementsByTagName("input")[0]){if(document.forms[G].inputColor){document.getElementById("validationinfo"+formelement[D]).parentNode.getElementsByTagName("input")[0].style.backgroundColor=document.forms[G].inputColor.value}else{if(document.getElementById("regErrors")){document.getElementById("validationinfo"+formelement[D]).parentNode.getElementsByTagName("input")[0].style.backgroundImage=inputBgImage}else{document.getElementById("validationinfo"+formelement[D]).parentNode.getElementsByTagName("input")[0].style.backgroundColor="#fff"}}}if(document.getElementById("validationinfo"+formelement[D]).parentNode.getElementsByTagName("select")[0]){if(document.forms[G].inputColor){document.getElementById("validationinfo"+formelement[D]).parentNode.getElementsByTagName("select")[0].style.backgroundColor=document.forms[G].inputColor.value}else{document.getElementById("validationinfo"+formelement[D]).parentNode.getElementsByTagName("select")[0].style.backgroundColor="#fff"}}}else{if(document.getElementById(formelement[D])){document.getElementById(formelement[D]).style.display="none"}}}if(G=="smallregister"){document.getElementById("username_hid").value=document.getElementById("username").value;document.getElementById("password_hid").value=document.getElementById("password").value;document.getElementById("email_hid").value=document.getElementById("email").value}if(G=="newregister"){hiddeErrorsForNewReg()}if(document.forms[G].elements.birthdaycomplete){document.forms[G].elements.birthdaycomplete.value=document.forms[G].elements.birthday_year.value+"-"+document.forms[G].elements.birthday_month.value+"-"+document.forms[G].elements.birthday_day.value}if(document.forms[G].elements.accept_termsofuse){if(document.forms[G].elements.accept_termsofuse.checked){if(document.getElementById("div_accept_termsofuse")){document.getElementById("div_accept_termsofuse").style.backgroundColor=""}}else{if(document.getElementById("div_accept_termsofuse")){document.getElementById("div_accept_termsofuse").style.backgroundColor="#f00"}}}if(document.forms[G].elements.accept_termsofuse_2){if(document.forms[G].elements.accept_termsofuse_2.checked){if(document.getElementById("div_accept_termsofuse_2")){document.getElementById("div_accept_termsofuse_2").style.backgroundColor=""}}else{if(document.getElementById("div_accept_termsofuse_2")){document.getElementById("div_accept_termsofuse_2").style.backgroundColor="#f00"}}}if(F){if(F=="back"){if(document.forms[G].elements.urlback){document.forms[G].elements.urlname.value=document.forms[G].elements.urlback.value}}else{if(F=="next"){if(document.forms[G].elements.urlnext){document.forms[G].elements.urlname.value=document.forms[G].elements.urlnext.value}}}}var A=setFormData(G);A+="&formname="+G;httpRequest=setRequest();httpRequest.onreadystatechange=function(){if(httpRequest.readyState==4){if(httpRequest.status==200){var I=httpRequest.responseText;var J=I.split(",");if(G=="generalinfos"){if(document.getElementById("form_upload")){document.getElementById("form_upload").submit()}}if(J[0]==1){if(G=="activate_account"){submitFeedBack2(G)}responseAction(J);if(document.getElementById(C)){document.getElementById(C).style.display="block"}}else{if(J[0]==2){document.hidenreg.submit()}else{if(G=="paymentform_cc"||G=="paymentform_ec"||G=="changeMail"||G=="activate_account"){submitFeedBack2(G)}if(document.getElementById("submit_static")){document.getElementById("submit_static").style.display="block"}if(document.getElementById("submit_loading")){document.getElementById("submit_loading").style.display="none"}formelement=J;viewError(J)}}if(document.getElementById("submit_static")){document.getElementById("submit_static").style.display="block"}if(document.getElementById(E)){document.getElementById(E).style.display="block"}if(document.getElementById(B)){document.getElementById(B).style.display="none"}}}};if(G=="paymentform_cab"||G=="paymentform_cc"||G=="paymentform_ec"||G=="paymentform_direct"||G=="paymentform_mopay"||G=="paymentform_dotpay"||G=="paymentform_mb"||G=="paymentform"||G=="payment"){httpRequest.open("POST","?request=payment.php",true)}else{httpRequest.open("POST","?request=formvalidate.php",true)}httpRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded");httpRequest.send(A)}catch(H){getDebug("formValidation",H)}}function responseAction(C){try{if(C[1]){if(C[1]!="self"&&C[1]!="selfMulti"&&C[1]!="selfreload"&&C[1]!="ambiguous_zipcode"){try{if(parent!=self){top.location.href=C[1]}else{window.location.href=C[1]}}catch(B){window.location.href=C[1]}}else{if(C[1]=="self"){if(document.forms[C[4]]){document.forms[C[4]].reset()}}else{if(C[1]=="selfreload"){window.location.reload()}else{if(C[1]=="ambiguous_zipcode"){document.getElementById("ziparea").innerHTML=C[2];if(document.getElementById("regErrors_ambiguous_zipcode")){document.getElementById("regErrors").style.marginTop="152px";document.getElementById("regErrors").style.display="block";document.getElementById("regErrors_ambiguous_zipcode").style.display="block"}if(document.getElementById("submit_static")){document.getElementById("submit_static").style.display="block"}if(document.getElementById("submit_loading")){document.getElementById("submit_loading").style.display="none"}}}}}}switch(C[2]){case"showDiv":if(document.getElementById(C[3])){document.getElementById(C[3]).style.display="block"}if(document.getElementById("submit_static")){document.getElementById("submit_static").style.display="block"}if(document.getElementById("submit_loading")){document.getElementById("submit_loading").style.display="none"}break;case"hideDiv":if(document.getElementById(C[3])){document.getElementById(C[3]).style.display="none"}if(document.getElementById("submit_static")){document.getElementById("submit_static").style.display="block"}if(document.getElementById("submit_loading")){document.getElementById("submit_loading").style.display="none"}break;case"showHideDiv":for(var A=0;A<C.length;A++){if(document.getElementById(C[A])&&C[A+1]){document.getElementById(C[A]).style.display=C[A+1]}}if(document.getElementById("submit_static")){document.getElementById("submit_static").style.display="block"}if(document.getElementById("submit_loading")){document.getElementById("submit_loading").style.display="none"}break}}catch(B){getDebug("responseAction",B)}}function replyKiss(C,B){try{var A="recipientLogin="+C+"&reply_message_id="+B;httpRequest=setRequest();httpRequest.onreadystatechange=function(){if(httpRequest.readyState==4){if(httpRequest.status==200){var E=httpRequest.responseText;if(E&5){hideShowObject("show","ignored")}else{hideShowObject("show","kiss_sendet")}}}};httpRequest.open("POST","?request=messaging.php",true);httpRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded");httpRequest.send(A)}catch(D){getDebug("responseAction",D)}}function showGTC(B,E){try{var C=(screen.width/2)-200;var A=(screen.height/2)-200;window.open(B,"","width=400,scrollbars=1,height=400,left="+C+",top="+A)}catch(D){getDebug("showGTC",D)}}function doSubmit(A){try{document.forms[A].submit()}catch(B){getDebug("doSubmit",B)}}function submitOnEnter(A){try{if(window.event&&window.event.keyCode==13){window.document.forms[A].submit()}}catch(B){getDebug("submitOnEnter",B)}}function updateCapture(){try{document.getElementById("registrationCapture").src="capture.php?"+Math.random()}catch(A){getDebug("updateCapture",A)}}function animateMailbox(A){try{if(document.getElementById("active_mailbox_"+A)){document.getElementById("active_mailbox_"+A).setAttribute("id","active_mailbox_"+(A=="on"?"off":"on"));setTimeout("animateMailbox('"+(A=="on"?"off":"on")+"')",670)}}catch(B){getDebug("animateMailbox",B)}}function animateBox(B,A,C){try{if(B||A){switchAnimateBox=!switchAnimateBox;if(B){document.getElementById("customer_message_count").style.background="url("+C+"/images/icons/1/mailbox_on"+(switchAnimateBox?"_red":"")+".png) no-repeat top right"}if(A){document.getElementById("customer_kiss_count").style.background="url("+C+"/images/icons/1/kisses_on"+(switchAnimateBox?"_red":"")+".png) no-repeat top right"}setTimeout("animateBox("+B+","+A+")",650)}}catch(D){getDebug("animateBox",D)}}var menuAlreadyInAnimation=false;function menuMailAnimate(B,A){try{if(typeof (menuMailAnimated)!="undefined"&&globalMenuMailAnimated&&menuMailAnimated&&B!="url_my_mailbox"&&$("#menu_url_my_mailbox")){menuAlreadyInAnimation=true;if(A=="on"){$("#menu_url_my_mailbox").css("background","url("+menuSources+"/menu_animation.png) repeat-x")}else{$("#menu_url_my_mailbox").css("background","url("+menuSources+"/menu_normal.png) repeat-x")}setTimeout("menuMailAnimate('"+B+"', '"+(A=="on"?"off":"on")+"')",650)}else{if(typeof (menuMailAnimated)!="undefined"&&globalMenuMailAnimated&&menuMailAnimated&&B!="url_own_inbox"&&$("#menu_url_own_inbox")){menuAlreadyInAnimation=true;if(A=="on"){$("#menu_url_own_inbox").css("background","url("+menuSources+"/menu_animation.png) repeat-x")}else{$("#menu_url_own_inbox").css("background","url("+menuSources+"/menu_normal.png) repeat-x")}setTimeout("menuMailAnimate('"+B+"', '"+(A=="on"?"off":"on")+"')",650)}}}catch(C){getDebug("menuMailAnimate",C)}}function menuMouseOver(A){try{if(menuHideRequested){clearTimeout(menuHideRequested)}if(menuLastActive!="undefined"&&menuLastActive){if($("#menu_"+menuLastActive)){$("#menu_"+menuLastActive).css("background","url("+menuSources+"/menu_normal.png) repeat-x")}if($("#submenu_"+menuLastActive)){$("#submenu_"+menuLastActive).css("display","none")}}if(A=="url_my_mailbox"||A=="url_own_inbox"){menuMailAnimated=false;menuAlreadyInAnimation=false}else{menuMailAnimated=true}menuLastActive=A;if(A){if($("#menu_"+A)){$("#menu_"+A).css("background","url("+menuSources+"/menu_hover.png) repeat-x")}if($("#submenu_"+A)){$("#submenu_"+A).css("display","block")}}if(menuAlreadyInAnimation==false){menuMailAnimate(A,"on")}}catch(B){getDebug("menuMouseOver",B)}}function menuMouseOut(){try{var A="";try{if($("#menu_"+menuLastActive)){A+="$('#menu_"+menuLastActive+"').css('background', 'url("+menuSources+"/menu_normal.png) repeat-x');"}if(document.getElementById("submenu_"+menuLastActive)){A+="$('#submenu_"+menuLastActive+"').css('display', 'none');"}}catch(B){}try{if($("#menu_"+menuDefault)){A+="$('#menu_"+menuDefault+"').css('background', 'url("+menuSources+"/menu_hover.png) repeat-x');"}if($("#submenu_"+menuDefault)){A+="$('submenu_"+menuDefault+"').css('display', 'block');"}A+="menuLastActive = menuDefault;"}catch(B){}menuHideRequested=setTimeout(A,1000)}catch(B){getDebug("menuMouseOut",B)}}function menuClearTimeout(){try{if(menuHideRequested){clearTimeout(menuHideRequested)}}catch(A){getDebug("menuClearTimeout",A)}}function setMessagesOnPage(A){$.post("?request=inboxOptions.php",{module:"setMessagesOnPage",itemLimit:A},function(){location.reload()})}function setMessagesAsRead(A){$.post("?request=inboxOptions.php",{module:"setMessagesAsRead",messageIds:A},function(){})}function deleteMessage(B,C,A){$("#iconDeleteMessage_"+C).attr("src",A);$("#deleteButton_"+C).css("display","none");$("#deleteButtonLoading_"+C).css("display","block");$.post("?request=inboxOptions.php",{module:"deleteMessage",messageIds:B},function(){$("#"+C).fadeOut("slow")})}function setCustomerIgnored(B,A){$("#iconIgnoreUser_"+B).attr("src",A);$("#ignoreButton_"+B).css("display","none");$("#ignoreButtonLoading_"+B).css("display","block");$.post("?request=inboxOptions.php",{module:"ignoreCustomer",customerLogin:B},function(){$("#"+B).fadeOut("slow")})}var lastOpenedMessage;function showFullMessage(A){if(lastOpenedMessage==undefined){lastOpenedMessage=A}else{closeMessage(lastOpenedMessage);lastOpenedMessage=A}if(document.getElementById("messageButtons_"+A)){document.getElementById("messageButtons_"+A).style.display="block"}if(document.getElementById("fullMessage_"+A)){document.getElementById("fullMessage_"+A).style.display="block"}if(document.getElementById("teaserMessage_"+A)){document.getElementById("teaserMessage_"+A).style.display="none"}if(document.getElementById("unreadedMessages_"+A)){document.getElementById("unreadedMessages_"+A).style.display="none"}}function closeMessage(A){if(document.getElementById("messageButtons_"+A)){document.getElementById("messageButtons_"+A).style.display="none"}if(document.getElementById("fullMessage_"+A)){document.getElementById("fullMessage_"+A).style.display="none"}if(document.getElementById("teaserMessage_"+A)){document.getElementById("teaserMessage_"+A).style.display="block"}}function showIconMenu(A){document.getElementById("iconMenuMessage_"+A).style.display="block"}function hideIconMenu(A){document.getElementById("iconMenuMessage_"+A).style.display="none"}function removeMessage(){try{document.formRemoveMessage.submit()}catch(A){getDebug("removeMessage",A)}}function ignoreCustomer(){try{document.formIgnoreCustomer.submit()}catch(A){getDebug("ignoreCustomer",A)}}function updateReferrer(A){try{$.get("?request=referrer.php",{url:escape(A)},function(C){})}catch(B){getDebug("updateReferrer",B)}}function checkPostal(A){try{var C=/^\d{1,5}$/;if(A.value.length&&A.value.search(C)==-1){if($("#validationinfo_postal")){$("#validationinfo_postal").css("display","block")}A.value=A.value.replace(/\D/,"");A.value=A.value.substring(0,5)}else{if($("#validationinfo_postal")){$("#validationinfo_postal").css("display","none")}}}catch(B){getDebug("checkPostal",B)}}var preparedZip="";var waitSwitchSlide=false;function switchSlide(A,C,B){try{if(A.style.overflow!="hidden"&&!waitSwitchSlide){if(B==undefined){B=1}waitSwitchSlide=true;if(A.style.display=="none"){if(C){C.src=URL_SOURCES+"/images/buttons/1/arrowDown.png"}$("#"+A.id).slideDown("slow")}else{if(C){C.src=URL_SOURCES+"/images/buttons/1/arrowRight.png"}$("#"+A.id).slideUp("slow")}setTimeout("waitSwitchSlide=false",1000)}}catch(D){getDebug("switchSlide",D)}}function switchSlideRound(A,C,B){try{if(A.style.overflow!="hidden"&&!waitSwitchSlide){if(B==undefined){B=1}waitSwitchSlide=true;if(A.style.display=="none"){if(C){C.src=URL_SOURCES+"/images/buttons/1/bottom_arrow.png"}$("#"+A.id).slideDown("slow")}else{if(C){C.src=URL_SOURCES+"/images/buttons/1/right_arrow.png"}$("#"+A.id).slideUp("slow")}setTimeout("waitSwitchSlide=false",1000)}}catch(D){getDebug("switchSlide",D)}}var lastImageNumber=0;function switchProfileImage(A){if(document.getElementById("highresImage_"+A)){document.getElementById("highresImage_"+lastImageNumber).style.display="none";if(document.getElementById("highresImage_"+A).style.display=="none"){document.getElementById("highresImage_"+A).style.display="inline";lastImageNumber=A}}}$(document).ready(function(){$("#activationRenewShow").click(function(){$("#activationRenewBox").slideDown("slow");$(this.blur());return false});$("#premiumLoginShow").click(function(){$("#premiumLoginBox").slideDown("slow");$(this.blur());return false});$("#mailChangeShow").click(function(){$("#mailChangeBox").slideDown("slow");$(this.blur());return false});$("#mailChangeRegShow").click(function(){$("#mailChangeRegBox").slideDown("slow");$(this.blur());return false});$("input[name=select_all]").click(function(){var box=$("input[name=delete_box\\[\\]]");for(var b=0;b<box.length;b++){box[b].checked=$(this)[0].checked}});$("#getNewPartner").click(function(){$("body").css("cursor","wait");$.post("?request=partner.php","",function(data){var profiles=data.split(";");for(var i=0;i<7&&i<profiles.length;i++){var profile=profiles[i].split(",");if(profile[0]){$("#partnerProfileName"+i).html(profile[0]);$("#partnerProfileCity"+i).html(profile[1]);$("#partnerProfileAge"+i).html(profile[2]);$("#partnerProfileImage"+i).attr("src",profile[3]).attr("alt",profile[0]);$("#partnerProfileLink"+i).attr("href",profile[4]).attr("title",profile[0])}}$("body").css("cursor","auto")});$(this.blur());return false});$("#premiumLoginForm").submit(function(){$("#premiumLogin").click()});$("#premiumLogin").click(function(){var username=$("#username").val();var password=$("#password").val();if(!username.length||!password.length){$("#premiumLoginError").slideDown("slow")}else{$("#premiumLoginError").slideUp("slow");$("#premiumLoginButton").slideUp("slow");$("#premiumLoading").slideDown("slow");$.post("?request=premiumLogin.php",{username:username,password:password},function(data){$("#premiumLoading").slideUp("slow");$("#premiumLoginButton").slideDown("slow");eval(data);if(success){if(paymentResult){if(paymentResult&4){$("#premiumCanceled").html($("#premiumCanceled").html().replace("%s",(premiumNextUntil?premiumNextUntil:premiumUntil)));$("#premiumCanceled").slideDown("slow")}else{$("#premiumCancelable").slideDown("slow")}}else{$("#premiumUntil").html(premiumUntil);$("#premiumType").html(premiumType);$("#premiumInfoBox").slideDown("slow");if(premiumNextUntil){$("#premiumCancelNext").html($("#premiumCancelNext").html().replace("%s",premiumNextUntil));$("#premiumCancelNext").slideDown("slow")}else{$("#premiumCancelCurrent").slideDown("slow")}}$("#premiumLoginStart").slideUp("slow")}else{$("#premiumLoginError").slideDown("slow")}})}$(this.blur());return false});$("#premiumCancelNext, #premiumCancelCurrent").click(function(){if(confirm(unescape(escape($("#premiumCancelConfirm").html())))){$("#premiumLoading").slideDown("slow");$.post("?request=premiumCancel.php","",function(data){eval(data);$("#premiumLoading").slideUp("slow");$("#premiumCancelCurrent").slideUp("slow");$("#premiumCancelNext").slideUp("slow");if(success){if(paymentResult){if(paymentResult&4){$("#premiumCanceled").html($("#premiumCanceled").html().replace("%s",(premiumNextUntil?premiumNextUntil:premiumUntil)));$("#premiumCanceled").slideDown("slow")}else{$("#premiumCancelable").slideDown("slow")}}else{$("#premiumCancelInfoBox"+(premiumNextUntil?"Next":"Current")).html($("#premiumCancelInfoBox"+(premiumNextUntil?"Next":"Current")).html().replace("%s",(premiumNextUntil?premiumNextUntil:premiumUntil)));$("#premiumCancelInfoBox"+(premiumNextUntil?"Next":"Current")).slideDown("slow")}}else{$("#premiumCancelInfoBoxError").slideDown("slow")}})}});$("#sendActivationMail").click(function(){var email=$("#email").val();var username=$("#username").val();$("#validationinfo_no_email").slideUp("fast");$("#validationinfo_invalid_email").slideUp("fast");$("#validationinfo_exist_email").slideUp("fast");$("#sentMail").slideUp("fast");if(""==email){$("#validationinfo_no_email").slideDown("slow")}else{$("#submit_loading_ec").slideDown("fast");$.post("?request=sendActivationMail.php",{email:email,username:username},function(data){eval(data);$("#submit_loading_ec").slideUp("fast");if(success){$("#sentMail").slideDown("slow")}else{if(mailInvalid){$("#validationinfo_invalid_email").slideDown("slow")}else{if(mailExists){$("#validationinfo_exist_email").slideDown("slow")}}}})}});$("form[name=quicklogin] :input[name=username]").focus(function(){if($(this).val()==$(this)[0].defaultValue){$(this).val("")}});$("form[name=quicklogin] :input[name=password]").focus(function(){if($(this).val()==$(this)[0].defaultValue){$(this).val("")}});$("form[name=quicklogin] :input[name=username]").blur(function(){if($(this).val()==""){$(this).val($(this)[0].defaultValue)}});$("form[name=quicklogin] :input[name=password]").blur(function(){if($(this).val()==""){$(this).val($(this)[0].defaultValue);$(this).css("display","none");$("form[name=quicklogin] :input[name=passwordText]").css("display","block")}});$("form[name=quicklogin] :input[name=passwordText]").focus(function(){$(this).css("display","none");$("form[name=quicklogin] :input[name=password]").css("display","block");$("form[name=quicklogin] :input[name=password]}").focus()});$("a[name=gallerGrProfile]").click(function(){$("#spc_landing_quicksearch").effect("shake",{times:3},100);return false});$("a[name=registrationLoomin]").click(function(){$("html,body").animate({scrollTop:$("#landingpage_registration").offset().top},500,function(){$("#landingpage_registration").effect("shake",{times:3},100)});return false});$("#zip, #paymentZip, #zip2, #myzip").keyup(function(){if("PL"==COUNTRY_ISO){position=2;replaced="-";validZip=/(^[\d]{0,2})([\-]{0,1})([\d]{0,3}$)/}else{if("NL"==COUNTRY_ISO){position=4;replaced=" ";validZip=/(^[\d]{0,4})([\ ]{0,1})([A-Za-z]{0,2}$)/}else{if("SE"==COUNTRY_ISO){position=3;replaced=" ";validZip=/(^[\d]{0,3})([\ ]{0,1})([\d]{0,2}$)/}else{if("AT"==COUNTRY_ISO||"CH"==COUNTRY_ISO){position=0;replaced="";if($("#country").val()==34||$("#country_id").val()==34){validZip=/^[\d]{1,5}$/}else{validZip=/^[\d]{1,4}$/}}else{if("DE"==COUNTRY_ISO){position=0;replaced="";if($("#country").val()&&$("#country").val()!=34||$("#country_id").val()&&$("#country_id").val()!=34){validZip=/^[\d]{1,4}$/}else{validZip=/^[\d]{1,5}$/}}else{position=0;replaced="";validZip=/^[\d]{1,5}$/}}}}}var elementValue=$(this).val();if(position){if(elementValue.search(replaced)==-1){if(position<elementValue.length&&elementValue.search(replaced)==-1){elementValue=elementValue.substring(0,position)+replaced+elementValue.substring(position);$(this).val(elementValue)}}}if(""!=elementValue&&!validZip.test(elementValue)){$(this).val(preparedZip)}preparedZip=$(this).val();if($(this).attr("id")!="zip2"&&$("#zip2")){$("#zip2").val($(this).val())}});$("#dunningDialogOpen, #dunningDialogOpen_private, #dunningDialogOpen_password, #dunningDialogOpen_notification, a[name=dunningDialogOpen]").click(function(){$("#dialogBackground").css("height",$(document).height());$("#dialogBackground").fadeIn("fast",function(){$("#dialogInfo").center().fadeIn("slow")});return false});$("a[name=dialogClose]").click(function(){$("#dialogInfo").fadeOut("slow",function(){$("#dialogBackground").fadeOut("fast")});return false});$("#paymentTypeCcRadio, #paymentTypeCcLogo").click(function(){$("#paymentTypeEcForm").slideUp("slow",function(){$("#paymentTypeCcRadio").attr("checked",true);$("#paymentTypeEcRadio").attr("checked",false);$("#paymentTypeCcForm").slideDown("slow")});return false});$("#paymentTypeEcRadio, #paymentTypeEcLogo").click(function(){$("#paymentTypeCcForm").slideUp("slow",function(){$("#paymentTypeEcRadio").attr("checked",true);$("#paymentTypeCcRadio").attr("checked",false);$("#paymentTypeEcForm").slideDown("slow")});return false});$("#paymentStep1ButtonNext").click(function(){$("#formPaymentPackage").submit()});$("#paymentStep2ButtonNext").click(function(){$("#paymentStep2ButtonNext").blur();if($("#paymentTypeCcRadio").attr("checked")){$("#paymentStep2Buttons").css("display","none");$("#submit_loading_ec").css("display","block");$("#paymentFirstname_cc").css("border-color","#000");$("#paymentLastname_cc").css("border-color","#000");$("#paymentBank_cc").css("border-color","#000");$("#paymentNumber_cc").css("border-color","#000");$("#paymentExpirationMonth_cc").css("border-color","#000");$("#paymentExpirationYear_cc").css("border-color","#000");$("#paymentCvc_cc").css("border-color","#000");$(".error2").slideUp("fast");$.post("?request=paymentValidation.php",{paymentFirstname_cc:$("#paymentFirstname_cc").val(),paymentLastname_cc:$("#paymentLastname_cc").val(),paymentBank_cc:$("#paymentBank_cc").val(),paymentNumber_cc:$("#paymentNumber_cc").val(),paymentExpirationMonth_cc:$("#paymentExpirationMonth_cc").val(),paymentExpirationYear_cc:$("#paymentExpirationYear_cc").val(),paymentCvc_cc:$("#paymentCvc_cc").val(),paymentAccept_cc:($("#paymentAccept_cc").attr("checked")?1:0),paymentType:"CC"},function(data){eval(data);if(success){window.location.replace(redirect)}else{$("#paymentStep2Buttons").css("display","block");$("#submit_loading_ec").css("display","none");if(validation.length){var validations=validation.split(";");for(var i=0;i<validations.length;i++){$("#"+validations[i]).slideDown("fast")}var fields=field.split(";");for(var i=0;i<fields.length;i++){$("#"+fields[i]).css("border-color","#700505")}}else{$("#validationinfo_technish_error_cc").css("display","block")}}})}else{if($("#paymentTypeEcRadio").attr("checked")){$("#paymentStep2Buttons").css("display","none");$("#submit_loading_ec").css("display","block");$("#paymentFirstname_ec").css("border-color","#000");$("#paymentLastname_ec").css("border-color","#000");$("#paymentStreet_ec").css("border-color","#000");$("#paymentNumber_ec").css("border-color","#000");$("#paymentCity_ec").css("border-color","#000");$("#paymentZip_ec").css("border-color","#000");$("#paymentBank_ec").css("border-color","#000");$("#paymentAccount_ec").css("border-color","#000");$(".error2").slideUp("fast");$.post("?request=paymentValidation.php",{paymentFirstname_ec:$("#paymentFirstname_ec").val(),paymentLastname_ec:$("#paymentLastname_ec").val(),paymentStreet_ec:$("#paymentStreet_ec").val(),paymentNumber_ec:$("#paymentNumber_ec").val(),paymentZip_ec:$("#paymentZip_ec").val(),paymentCity_ec:$("#paymentCity_ec").val(),paymentBank_ec:$("#paymentBank_ec").val(),paymentAccount_ec:$("#paymentAccount_ec").val(),paymentAccept_ec:($("#paymentAccept_ec").attr("checked")?1:0),paymentCountry_ec:$("#paymentCountry_ec").val(),paymentType:"EC"},function(data){eval(data);if(success){window.location.replace(redirect)}else{$("#paymentStep2Buttons").css("display","block");$("#submit_loading_ec").css("display","none");if(validation.length){var validations=validation.split(";");for(var i=0;i<validations.length;i++){$("#"+validations[i]).slideDown("fast")}var fields=field.split(";");for(var i=0;i<fields.length;i++){$("#"+fields[i]).css("border-color","#700505")}}else{$("#validationinfo_technish_error_ec").css("display","block")}}})}}})});jQuery.fn.center=function(){this.css("position","absolute");this.css("top",($(window).height()-this.height())/2+$(window).scrollTop()+"px");this.css("left",($(window).width()-this.width())/2+$(window).scrollLeft()+"px");return this};