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 checkLimitChars(E,A,G){try{var F=$("#"+E).val();var B=F.length;var C=A-10;if(B>A){alert(G);$("#"+E).val(F.substr(0,C));return false}}catch(D){getDebug("checkLimitChars",D)}}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;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){if((B!=1&&(k!==1||k!==2||k!==4||k!==5))||B==1&&A==3){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=3;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=1;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 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(B){try{$("#customerPreview").center();$("#customerPreview").css("visibility","visible");customerProfileSwitch(B)}catch(A){getDebug("customerPreviewShow",A)}}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 changeBackground(A,M,G,J,K,B,L,N,C){try{if(A==1){$("#packDiv_"+A).css("background","url(/images/sources/1/paketBackgroundGreen.png) no-repeat scroll 0% 0% transparent")}else{$("#packDiv_"+A).css("background","url(/images/sources/1/paketBackgroundGreen_bot.png) no-repeat scroll 0% 0% transparent")}$("#package_"+A).attr("checked",true);$("#infoT_"+A).css("display","block");var I=new Array(M);for(var D=1;D<=I.length;++D){if(D!=A){if(D==1){$("#packDiv_"+D).css("background","url(/images/sources/1/paketBackgroundGrey_top.png) no-repeat scroll 0% 0% transparent")}else{$("#packDiv_"+D).css("background","url(/images/sources/1/paketBackgroundGrey.png) no-repeat scroll 0% 0% transparent")}$("#infoT_"+D).css("display","none")}}updateHtml("otherPaymentArt",L);var H=$("input:radio[name=package]:checked").val();var E=$("input:radio[name=payart]:checked").val();if(G==H&&J=="CC"){changeTabs(C,N,null)}else{if(K>0){$(".class_CC").css("display","block")}else{$(".class_CC").css("display","none")}if(B>0){$(".class_EC").css("display","block")}else{$(".class_EC").css("display","none")}if(E=="CC"&&K>0){$("#payForm_1").css("display","block");$("#payForm_2").css("display","none")}else{if(E=="EC"&&B>0){$("#payForm_1").css("display","none");$("#payForm_2").css("display","block")}else{if(K>0){openPaymentArt("CC",N,K)}else{if(B>0){openPaymentArt("EC",N,B)}}}}}}catch(F){getDebug("changeBackground",F)}}function openPaymentArt(E,A,D){try{$("#tabs_"+D).css("display","block");$("#tabs_"+D).css("background","none");$("#tabs_"+D).css("background-color","e3e5e7");$("#tabs_"+D).css("border-bottom","0px");$("#payForm_"+D).css("display","block");$("#radiotabs_"+D).attr("checked",true);for(var B=1;B<=A;++B){if(B!=D){$("#tabs_"+B).css("display","none");$("#tabs_"+B).css("background","url(/images/sources/1/bg_menue_zahlart.png) repeat-x top left");$("#tabs_"+B).css("border","1px solid #bbb");$("#radiotabs_"+B).attr("checked",false);$("#payForm_"+B).css("display","none")}}$(".class_"+E).css("display","block")}catch(C){getDebug("openPaymentArt",C)}}function updateHtml(div,payPage){try{$.post("?request=paymentValidation.php",{packetId:$("input:radio[name=package]:checked").val(),payPage:payPage,action:"getOtherPayArt"},function(data){eval(data);if(htmlOtherPay!=""){$("#"+div).html(htmlOtherPay)}})}catch(e){getDebug("updateHtml",e)}}function orderPayment(evt){try{if(evt=="openDialog"){openDialog()}var notAvailable=/^noActif_/;var $that=$(this);$that.find("input[type='image']").click(function(){return false});if(evt.search(notAvailable)!=-1){return false}$("#otherP_"+evt).css("display","none");$("#ajx_"+evt).css("display","block");$.post("?request=paymentValidation.php",{packetId:$("input:radio[name=package]:checked").val(),paymentType:evt},function(data){$("#ajx_"+evt).css("display","none");$("#otherP_"+evt).css("display","block");eval(data);if(success){if(typeof (ombaRedirectUrl)!="undefined"){$("#ombaPaymentAsyncForm").attr("action",ombaRedirectUrl);for(var key in ombaPostData){$("#ombaPaymentAsyncForm").append('<input type="hidden" name="'+key+'" value="'+ombaPostData[key]+'" />')}$("#ombaPaymentAsyncForm").submit()}else{if(redirect!=undefined){window.location.href=redirect}else{window.location.reload()}}}})}catch(e){getDebug("orderPayment",e)}}function changeTabs(F,B,E){try{var A=$("input:radio[name=package]:checked").val();if(E==A&&$("#radiotabs_"+F).val()=="CC"){openDialog()}for(var C=1;C<=B;C++){if(C!=F){$("#tabs_"+C).css("background","url(/images/sources/1/bg_menue_zahlart.png) repeat-x top left");$("#tabs_"+C).css("border","1px solid #bbb");$("#payForm_"+C).css("display","none");$("#radiotabs_"+C).attr("checked",false)}else{$("#tabs_"+F).css("background","#e3e5e7");$("#tabs_"+C).css("border-bottom","0px");$("#radiotabs_"+C).attr("checked",true);$("#tabs_"+F).css("display","block")}}$("#payForm_"+F).css("display","block")}catch(D){getDebug("changeTabs",D)}}function openDialog(){$("#dialogBackground").css("height",$(document).height());$("#dialogBackground").fadeIn("fast",function(){$("#dialogInfo").center().fadeIn("slow")});return false}function getLocationByLocation(B,C,A){$(A).css("display","none");$("#myCityBox").css("display","none");$(A+"Box").css("display","block");$(A+"Loading").css("display","block");$(A).children().remove();$.post("?request=locationsByLocation.php",{inputTypeLocation:C,inputCountry:$("#country").val(),inpuLocation:B.value},function(D){var E=D.split("|");for(i=0;i<E.length;i++){$(A).append('<option value="'+E[i]+'">'+E[i]+"</option>")}$(A+"Loading").css("display","none");$(A).css("display","block")})}function getLocationsByLocations(B,C,E,D,A){$("#"+A).children().remove();$.post("?request=locationsByLocation.php",{inputTypeLocation:C,outputTypeLocation:E,countryId:D,inpuLocation:B.value},function(F){var G=F.split("|");for(i=0;i<G.length;i++){$("#"+A).append('<option value="'+G[i]+'">'+G[i]+"</option>")}})}function getLocationBySearch(B,E,J,H,I){try{if(E.value.length>=3&&J){var C=(B.which?B.which:B.keyCode);if(27==C){if(J){J.style.display="none";J.options.length=0}}else{if(40==C){J.focus();J.options.selectedIndex=0}else{var F=setRequest();F.onreadystatechange=function(){if(F.readyState==4){if(F.status==200){try{if(J){J.options.length=0;J.style.display="block";E.style.background="";var K=F.responseText;var N=K.split("|");for(var L=0;L<20;L++){if(N[L]){J.options[J.length]=new Option(N[L],N[L])}else{J.options[J.length]=null}}}}catch(M){getDebug("getLocationBySearch",M)}}}};E.style.background="url(images/ajaxloading.gif) no-repeat center right";J.style.display="none";var D=/[\d]+/;if(-1==(E.value).search(D)){var A=$("#myState").val();F.open("GET","?request=locations.php&countryId="+H+"&searched="+encodeURIComponent(E.value)+"&location="+I+"&state="+encodeURIComponent(A),true);F.send(null)}else{E.style.background=""}}}}else{if(J){J.style.display="none";J.options.length=0}}if(document.getElementById("searchRadius")){if(E.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 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($("#regErrors div").children()){$("#regErrors div").children().css("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")&&document.forms[G].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"||G=="newregister"){document.getElementById("username_hid").value=document.forms[G].elements.username.value;document.getElementById("password_hid").value=document.forms[G].elements.password.value;document.getElementById("email_hid").value=document.forms[G].elements.email.value}if(G=="newregister"||G=="facebookNewregister"){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.faccept_termsofuse){if(document.forms[G].elements.faccept_termsofuse.checked){if(document.getElementById("faccept_termsofuse")){document.getElementById("faccept_termsofuse").style.backgroundColor=""}}else{if(document.getElementById("faccept_termsofuse")){document.getElementById("div_faccept_termsofuse").style.backgroundColor="#f00"}}}if(document.forms[G].elements.faccept_termsofuse_2){if(document.forms[G].elements.faccept_termsofuse_2.checked){if(document.getElementById("faccept_termsofuse_2")){document.getElementById("faccept_termsofuse_2").style.backgroundColor=""}}else{if(document.getElementById("faccept_termsofuse_2")){document.getElementById("faccept_termsofuse_2").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=""}if($("#facebookNewregister").children("#div_accept_termsofuse_2")){$("#facebookNewregister").children("#div_accept_termsofuse_2").css("background-color","")}}else{if(document.getElementById("div_accept_termsofuse_2")){document.getElementById("div_accept_termsofuse_2").style.backgroundColor="#f00"}else{if($("#facebookNewregister").children("#div_accept_termsofuse_2")){$("#facebookNewregister").children("#div_accept_termsofuse_2").css("background-color","#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(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"){if(document.getElementById("fziparea")){document.getElementById("fziparea").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"}}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,D){try{if(B||A){switchAnimateBox=!switchAnimateBox;if(B){document.getElementById("customer_message_count").style.background="url("+D+"/images/icons/1/mailbox_on"+(switchAnimateBox?"_red":"")+".png) no-repeat top right"}if(A){document.getElementById("customer_kiss_count").style.background="url("+D+"/images/icons/1/kisses_on"+(switchAnimateBox?"_red":"")+".png) no-repeat top right"}setTimeout("animateBox("+B+","+A+",'"+D+"')",1000)}}catch(C){getDebug("animateBox",C)}}var menuAlreadyInAnimation=false;function menuMailAnimate(B,A){try{if(typeof (menuMailAnimated)!="undefined"&&globalMenuMailAnimated&&menuMailAnimated&&B!="url_my_mailbox"&&B!="url_own_inbox"&&($("#menu_url_my_mailbox")||$("#menu_url_own_inbox"))){menuAlreadyInAnimation=true;if(A=="on"){if($("#menu_url_own_inbox")){$("#menu_url_own_inbox").css("background","url("+menuSources+"/menu_animation.png) repeat-x")}if($("#menu_url_my_mailbox")){$("#menu_url_my_mailbox").css("background","url("+menuSources+"/menu_animation.png) repeat-x")}}else{if($("#menu_url_own_inbox")){$("#menu_url_own_inbox").css("background","url("+menuSources+"/menu_normal.png) repeat-x")}if($("#menu_url_my_mailbox")){$("#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"){if($("#menu_url_own_inbox")){$("#menu_url_own_inbox").css("background","url("+menuSources+"/menu_animation.png) repeat-x")}if($("#menu_url_my_mailbox")){$("#menu_url_my_mailbox").css("background","url("+menuSources+"/menu_animation.png) repeat-x")}}else{if($("#menu_url_own_inbox")){$("#menu_url_own_inbox").css("background","url("+menuSources+"/menu_normal.png) repeat-x")}if($("#menu_url_my_mailbox")){$("#menu_url_my_mailbox").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).parent().css("display","block");$("#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+"').parent().css('display', 'block');";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 enableElement(A,C,D){try{for(var B=0;B<C.length;B++){if(D&&A.value!=""){$("#"+C[B]).removeAttr("disabled")}else{$("#"+C[B]).attr("disabled","disabled")}}}catch(E){getDebug("enableElement",E)}}function enableElementSimple(A,C){try{for(var B=0;B<C.length;B++){if($(A).attr("checked")){$("#"+C[B]).removeAttr("disabled")}else{$("#"+C[B]).attr("disabled","disabled")}}}catch(D){getDebug("enableElementSimple",D)}}function setMessagesOnPage(B,A){$.post("?request=inboxOptions.php",{module:"setMessagesOnPage",itemLimit:B},function(){window.location.href=A})}function setMessagesAsRead(C,B){var A=/^\d/;if(A.test(C)||A.test(B)){$.post("?request=inboxOptions.php",{module:"setMessagesAsRead",messageIds:C,kissIds:B},function(){})}}function deleteMessage(B,E,A,D){var C=confirm(D);if(C){$("#iconDeleteMessage_"+E).attr("src",A);$("#deleteButton_"+E).css("display","none");$("#deleteButtonLoading_"+E).css("display","block");$.post("?request=inboxOptions.php",{module:"deleteMessage",messageIds:B},function(){$("#"+E).fadeOut("slow")})}}function setCustomerIgnored(D,A,C){var B=confirm(C);if(B){$("#iconIgnoreUser_"+D).attr("src",A);$("#ignoreButton_"+D).css("display","none");$("#ignoreButtonLoading_"+D).css("display","block");$.post("?request=inboxOptions.php",{module:"ignoreCustomer",customerLogin:D},function(){$("#"+D).fadeOut("slow")})}}var spamUser=null;var spamUserAjx=null;function setCustomerAsSpam(D,A,C){var B=confirm(C);spamUser=D;spamUserAjx=A;if(B){$("#offenseProfile").val(D);$("#overlayDialogInfo").css("display","block")}}function sendMessage(A){if($(".messageBox_"+A).val()!=""){$("#sendButton_"+A).css("display","none");$("#sendButtonLoading_"+A).css("display","block");formValidation("send_message_"+A)}else{$(".messageBox_"+A).Shake()}}var lastOpenedMessage;var lastOpenedRegulator=false;function showFullMessage(B,A){$("#overpic_"+B).css("display","none");if(lastOpenedMessage==undefined&&A=="false"&&!lastOpenedRegulator){lastOpenedMessage=B}else{if(A!="false"&&!lastOpenedRegulator){lastOpenedMessage=A;lastOpenedRegulator=true}closeMessage(lastOpenedMessage);lastOpenedMessage=B}if(document.getElementById("messageButtons_"+B)){document.getElementById("messageButtons_"+B).style.display="block"}if(document.getElementById("fullMessage_"+B)){document.getElementById("fullMessage_"+B).style.display="block"}if(document.getElementById("teaserMessage_"+B)){document.getElementById("teaserMessage_"+B).style.display="none"}if(document.getElementById("unreadedMessages_"+B)){document.getElementById("unreadedMessages_"+B).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 saveAnswer(answerId){try{var answerValue=$("#"+answerId).val();$("#loading_"+answerId).css("display","block");$("#record_"+answerId).css("display","none");$.post("?request=formvalidate.php",{answerId:answerId,answerValue:answerValue},function(data){eval(data);if(success){$("#loading_"+answerId).css("display","none");$("#record_"+answerId).css("display","block");$("#arrow_question_"+answerId).attr("src",(URL_SOURCES+"/images/buttons/1/arrowRight.png"));$("#content_question_"+answerId).slideUp("slow");if(answerValue!=""){$("#icon_"+answerId).css("display","inline");$("#delete_"+answerId).css("display","block")}else{$("#icon_"+answerId).css("display","none");$("#delete_"+answerId).css("display","none")}}})}catch(e){getDebug("saveAnswer",e)}}function ignoreCustomer(){try{document.formIgnoreCustomer.submit()}catch(A){getDebug("ignoreCustomer",A)}}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;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}}}var lastSwitchedSlide=false;$(document).ready(function(){var $disabled=$(".editrow input:disabled");$disabled.each(function(){var $self=$(this),$parent=$self.closest("label"),$overlay=$("<div />");$overlay.attr("class","overlayCheckBox");$overlay.css({position:"absolute",top:$parent.position().top,left:$parent.position().left,width:$parent.outerWidth(),height:$parent.outerHeight(),zIndex:10000,backgroundColor:"#fff",opacity:0});$parent.append($overlay)});$(".overlayCheckBox").click(function(){window.location.href=urlPayment;return });$(".switchSlide, .switchSlideRound").click(function(){var content=($(this).attr("id").search("arrow_")==0?$(this).attr("id").replace("arrow_",""):$(this).attr("id"));for(var i=1;i<6;i++){for(var j=1;j<6;j++){if($("#contactTypeInfos_"+i+"_"+j)){$("#contactTypeInfos_"+i+"_"+j).css("display","none")}if($("#contactCheck_"+i+"_"+j)){$("#contactCheck_"+i+"_"+j).removeAttr("checked")}for(var k=1;k<6;k++){if($("#contactTypeInfos_"+i+"_"+j+"_"+k)){$("#contactTypeInfos_"+i+"_"+j+"_"+k).css("display","none")}if($("#contactTypes_"+i+"_"+j+"_"+k)){$("#contactTypes_"+i+"_"+j+"_"+k).css("display","none")}if($("#contactCheck_"+i+"_"+j+"_"+k)){$("#contactCheck_"+i+"_"+j+"_"+k).removeAttr("checked")}}}}if(content=="switchSlide_3"){$("#contactCheck_3_2").attr("checked","checked");hideShowObject("hide","loginbox");checkContactType("3","2");hideShowObject("show","container_1");$("#contactTypes_3_2").css("display","none")}if($("#container_1")){$("#container_1").children().css("display","none")}if(lastSwitchedSlide!=false){var idChild=lastSwitchedSlide.replace("question_","");var idChildValue=$("#"+idChild).val();if($("#arrow_"+lastSwitchedSlide)&&!idChildValue){$("#arrow_"+lastSwitchedSlide).attr("src",(URL_SOURCES+"/images/buttons/1/"+("switchSlide"!=$(this).attr("class")?"right_arrow":"arrowRight")+".png"));$("#content_"+lastSwitchedSlide).slideUp("slow")}}lastSwitchedSlide=content;if($("#content_"+content).css("overflow")!="hidden"&&!waitSwitchSlide){waitSwitchSlide=true;if($("#content_"+content).css("display")=="none"){if($("#arrow_"+content)){$("#arrow_"+content).attr("src",(URL_SOURCES+"/images/buttons/1/"+("switchSlide"!=$(this).attr("class")?"bottom_arrow":"arrowDown")+".png"))}$("#content_"+content).slideDown("slow")}else{if($("#arrow_"+content)){$("#arrow_"+content).attr("src",(URL_SOURCES+"/images/buttons/1/"+("switchSlide"!=$(this).attr("class")?"right_arrow":"arrowRight")+".png"))}$("#content_"+content).slideUp("slow")}setTimeout("waitSwitchSlide=false",1000)}});$("#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{if(premiumType=="click_and_buy"){$("#premiumClickAndBuyCancel").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().replace(/<\/?[^>]+(>|$)/g,""))))){$("#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{if(premiumType=="click_and_buy"){$("#premiumClickAndBuyCancel").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)}});$("a[name=gallerGrProfile]").click(function(){$("#spc_landing_quicksearch").effect("shake",{times:3},100);return false});$("#blockCustomer").click(function(){$("#dialogBackground").css("height",$(document).height());$("#dialogBackground").fadeIn("fast",function(){$("#dialogInfo").center().fadeIn("slow")});return false});$("#galleryMessageBody").focus(function(){$("#galleryMessageBodyError").slideUp()});function errorQuotationExeed(kiss){if(customerIsWoman){if(kiss){$("#galleryMessageSendErrorQuotationExeedKiss").slideDown()}else{$("#galleryMessageSendErrorQuotationExeed").slideDown()}}else{window.location.href=urlPayment}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, #paymentZip_ec, #fzip").keyup(function(){if("PL"==COUNTRY_ISO){position=2;replaced="-";validZip=/(^[\d]{0,2})([\-]{0,1})([\d]{0,3}$)/}else{if("COM_BR"==COUNTRY_ISO){position=5;replaced="-";validZip=/(^[\d]{0,5})([\-]{0,1})([\d]{0,3}$)/}else{if("CO_UK"==COUNTRY_ISO){position=0;replaced="";validZip=/(^[\dA-Za-z ]{0,7}$)/}else{if("CA"==COUNTRY_ISO){position=3;replaced=" ";validZip=/(^[\dA-Za-z]{0,3})([\ ]{0,1})([\dA-Za-z]{0,3}$)/}else{if("BE"==COUNTRY_ISO||"CO_NZ"==COUNTRY_ISO||"DK"==COUNTRY_ISO||"COM_AU"==COUNTRY_ISO){position=0;replaced="";validZip=/(^[0-9]{0,4}$)/}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("CL"==COUNTRY_ISO){position=0;replaced="";validZip=/^[\d]{0,7}$/}else{if("COM_AR"==COUNTRY_ISO){position=0;replaced="";validZip=/(^[A-Za-z]{0,1})([\d]{0,4}$)/}else{if("AT"==COUNTRY_ISO||"CH"==COUNTRY_ISO){position=0;replaced="";if($("#country").val()=="DE"||$("#country").val()==34||$("#country_id").val()==34||$("#paymentCountry_ec").val()==34){validZip=/^[\d]{1,5}$/}else{validZip=/^[\d]{1,4}$/}}else{if("DE"==COUNTRY_ISO){position=0;replaced="";if($("#country").val()&&$("#country").val()!="DE"&&$("#country").val()!=34||$("#country_id").val()&&$("#country_id").val()!=34||$("#paymentCountry_ec").val()&&$("#paymentCountry_ec").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())}});$("#country").change(function(){if("AT"==$("#country").val()){if(undefined!=$("select#zipGroup option[value='0']").val()){$("select#zipGroup option[value='0']").remove()}}else{if("DE"==$("#country").val()||"CH"==$("#country").val()){if(undefined==$("select#zipGroup option[value='0']").val()){$("select#zipGroup option[value='1']").before("<option value='0'>0</option>")}}}});$("#paymentBank_cc").change(function(){if($("#paymentBank_cc").val()==3){$("#paymentCvc_cc").attr("maxlength",4)}else{$("#paymentCvc_cc").attr("maxlength",3)}});$("#chatDialog, #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, #overlayDialogInfo").fadeOut("slow",function(){$("#dialogBackground").fadeOut("fast")})});$("input[name=lookingFor]").click(function(){if($(this).val()=="Female"||$(this).val()=="PairMaleFemale"||$(this).val()=="PairFemaleFemale"){if($("#lookingForFemale").attr("checked")||$("#lookingForPairMaleFemale").attr("checked")||$("#lookingForPairFemaleFemale").attr("checked")){$("select[name=bustSize.from]").attr("disabled",false);$("select[name=bustSize.to]").attr("disabled",false);$("input[name=cupSize]").attr("disabled",false)}else{$("select[name=bustSize.from]").attr("disabled",true);$("select[name=bustSize.from]").attr("selectedIndex",0);$("select[name=bustSize.to]").attr("disabled",true);$("select[name=bustSize.to]").attr("selectedIndex",0);$("input[name=cupSize]").attr("disabled",true);$("input[name=cupSize]").attr("checked",false)}}if($(this).val()=="Male"||$(this).val()=="PairMaleFemale"||$(this).val()=="PairMaleMale"){if($("#lookingForMale").attr("checked")||$("#lookingForPairMaleMale").attr("checked")||$("#lookingForPairMaleFemale").attr("checked")){$("input[name=penis]").attr("disabled",false)}else{$("input[name=penis]").attr("disabled",true);$("input[name=penis]").attr("checked",false)}}});$("td[name=paymentPackage]").click(function(){var id=$(this).attr("id");var ids=id.split("_");var packageId=parseInt(ids[1]);if(NaN!=packageId){$("#package"+packageId).attr("checked",true)}});$("input[name=paymentTypeRadio], img[name=paymentTypeLogo]").click(function(){var id=$(this).attr("id").replace("paymentTypeRadio","").replace("paymentTypeLogo","");if(parseInt($("#paymentTypeRadio"+id).val())){$("#paymentTypeRadio"+id).attr("checked",false);$("#dialogBackground").css("height",$(document).height());$("#dialogBackground").fadeIn("fast",function(){$("#dialogInfo").center().fadeIn("slow")})}else{var paymentType=$(this).attr("id").replace("paymentTypeRadio","").replace("paymentTypeLogo","");$("input[name=paymentTypeRadio]").attr("checked",false);$("#paymentTypeRadio"+id).attr("checked",true);if(!$.browser.msie||parseInt($.browser.version)>6){$("div[name=paymentTypeForm]").slideUp("slow");$("#paymentTypeForm"+id).slideDown("slow")}}});$("#paymentStep1ButtonNext").click(function(){$.post("?request=paymentValidation.php",{paymentPackage:$("input:radio[name=package]:checked").val()},function(data){eval(data);if(success){if(redirect){window.location.href=redirect}else{window.location.reload()}}})});$("#paymentBank_cc").change(function(){if(2==$("#paymentBank_cc").val()){$("#paymentTypeCcMasterCard").css("display","");$("#paymentTypeCcVisa").css("display","none")}else{if(1==$("#paymentBank_cc").val()){$("#paymentTypeCcMasterCard").css("display","none");$("#paymentTypeCcVisa").css("display","")}}});$("#paymentBank_c2").change(function(){if(2==$("#paymentBank_c2").val()){$("#paymentTypeC2MasterCard").css("display","");$("#paymentTypeC2Visa").css("display","none")}else{if(1==$("#paymentBank_c2").val()){$("#paymentTypeC2MasterCard").css("display","none");$("#paymentTypeC2Visa").css("display","")}}});$("#paymentStep2ButtonNextCc").click(function(){$("input[name=paymentTypeRadio]").attr("checked",false);$("#paymentTypeRadioCc").attr("checked",true);$("#paymentStep2ButtonNextCc").blur();$("#paymentStep2ButtonsCc").css("display","none");$("#submit_loading_paymentCc").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(),paymentType:"CC",oldPayment:$("#oldPayment").val()},function(data){paymentResponse(data,"Cc")})});$("#order_cc").click(function(){$("#submit_order_Cc").css("display","none");$("#submit_loading_paymentCc").css("display","block");$("#paymentFirstname_cc").css("border","0px");$("#paymentLastname_cc").css("border","0px");$("#paymentBank_cc").css("border","0px");$("#paymentNumber_cc").css("border","0px");$("#paymentExpirationMonth_cc").css("border","0px");$("#paymentExpirationYear_cc").css("border","0px");$("#paymentCvc_cc").css("border","0px");$(".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(),packetId:$("input:radio[name=package]:checked").val(),paymentType:"CC"},function(data){paymentResponse(data,"Cc")})});$("#paymentStep2ButtonNextCcReplace").click(function(){$("#paymentStep2ButtonNextCcReplace").blur();$("#paymentStep2ButtonsCcReplace").css("display","none");$("#submit_loading_paymentCcReplace").css("display","block");$(".error2").slideUp("fast");$.post("?request=paymentValidation.php",{paymentPackageReplace:$("#package0").val(),paymentType:"CC",oldPayment:"false"},function(data){paymentResponse(data,"CcReplace")})});$("#paymentStep2ButtonNextC2").click(function(){$("input[name=paymentTypeRadio]").attr("checked",false);$("#paymentTypeRadioC2").attr("checked",true);$("#paymentStep2ButtonsC2").css("display","none");$("#submit_loading_paymentC2").css("display","block");$("#paymentFirstname_c2").css("border-color","#000");$("#paymentLastname_c2").css("border-color","#000");$("#paymentBank_c2").css("border-color","#000");$("#paymentNumber_c2").css("border-color","#000");$("#paymentExpirationMonth_c2").css("border-color","#000");$("#paymentExpirationYear_c2").css("border-color","#000");$("#paymentCvc_c2").css("border-color","#000");$(".error2").slideUp("fast");$.post("?request=paymentValidation.php",{paymentFirstname_c2:$("#paymentFirstname_c2").val(),paymentLastname_c2:$("#paymentLastname_c2").val(),paymentBank_c2:$("#paymentBank_c2").val(),paymentNumber_c2:$("#paymentNumber_c2").val(),paymentExpirationMonth_c2:$("#paymentExpirationMonth_c2").val(),paymentExpirationYear_c2:$("#paymentExpirationYear_c2").val(),paymentCvc_c2:$("#paymentCvc_c2").val(),paymentType:"C2"},function(data){paymentResponse(data,"C2")})});$("#paymentStep2ButtonNextAmex").click(function(){$("input[name=paymentTypeRadio]").attr("checked",false);$("#paymentTypeRadioAmex").attr("checked",true);$("#paymentStep2ButtonsAmex").css("display","none");$("#submit_loading_paymentAmex").css("display","block");$("#paymentFirstname_amex").css("border-color","#000");$("#paymentLastname_amex").css("border-color","#000");$("#paymentBank_amex").css("border-color","#000");$("#paymentNumber_amex").css("border-color","#000");$("#paymentExpirationMonth_amex").css("border-color","#000");$("#paymentExpirationYear_amex").css("border-color","#000");$("#paymentCvc_amex").css("border-color","#000");$(".error2").slideUp("fast");$.post("?request=paymentValidation.php",{paymentFirstname_amex:$("#paymentFirstname_amex").val(),paymentLastname_amex:$("#paymentLastname_amex").val(),paymentBank_amex:$("#paymentBank_amex").val(),paymentNumber_amex:$("#paymentNumber_amex").val(),paymentExpirationMonth_amex:$("#paymentExpirationMonth_amex").val(),paymentExpirationYear_amex:$("#paymentExpirationYear_amex").val(),paymentCvc_amex:$("#paymentCvc_amex").val(),paymentType:"AMEX"},function(data){paymentResponse(data,"Amex")})});$("#paymentStep2ButtonNextEc").click(function(){$("input[name=paymentTypeRadio]").attr("checked",false);$("#paymentTypeRadioEc").attr("checked",true);$("#paymentStep2ButtonsEc").css("display","none");$("#submit_loading_paymentEc").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");$("#paymentAccount1_ec").css("border-color","#000");$("#paymentAccount2_ec").css("border-color","#000");$("#paymentAccount3_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(),paymentBankName_ec:$("#paymentBankName_ec").val(),paymentBankLocation_ec:$("#paymentBankLocation_ec").val(),paymentAccount_ec:$("#paymentAccount_ec").val(),paymentAccount1_ec:$("#paymentAccount1_ec").val(),paymentAccount2_ec:$("#paymentAccount2_ec").val(),paymentAccount3_ec:$("#paymentAccount3_ec").val(),paymentCountry_ec:$("#paymentCountry_ec").val(),paymentType:"EC"},function(data){paymentResponse(data,"Ec")})});$("#order_ec").click(function(){$("#submit_order_Ec").css("display","none");$("#submit_loading_paymentEc").css("display","block");$("#paymentFirstname_ec").css("border","0px");$("#paymentLastname_ec").css("border","0px");$("#paymentStreet_ec").css("border","0px");$("#paymentNumber_ec").css("border","0px");$("#paymentCity_ec").css("border","0px");$("#paymentZip_ec").css("border","0px");$("#paymentBank_ec").css("border","0px");$("#paymentAccount_ec").css("border","0px");$("#paymentAccount1_ec").css("border","0px");$("#paymentAccount2_ec").css("border","0px");$("#paymentAccount3_ec").css("border","0px");$(".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(),paymentBankName_ec:$("#paymentBankName_ec").val(),paymentBankLocation_ec:$("#paymentBankLocation_ec").val(),paymentAccount_ec:$("#paymentAccount_ec").val(),paymentAccount1_ec:$("#paymentAccount1_ec").val(),paymentAccount2_ec:$("#paymentAccount2_ec").val(),paymentAccount3_ec:$("#paymentAccount3_ec").val(),paymentCountry_ec:$("#paymentCountry_ec").val(),packetId:$("input:radio[name=package]:checked").val(),paymentType:"EC"},function(data){paymentResponse(data,"Ec")})});$("#paymentStep2ButtonNextCb, #paymentStep2ButtonNextDp, #paymentStep2ButtonNextDt, #paymentStep2ButtonNextMb, #paymentStep2ButtonNextMp").click(function(){var type=$(this).attr("id").replace("paymentStep2ButtonNext","");$("input[name=paymentTypeRadio]").attr("checked",false);$("#paymentTypeRadio"+type).attr("checked",true);$("#paymentStep2Buttons"+type).css("display","none");$("#submit_loading_payment"+type).css("display","block");$(".error2").slideUp("fast");$.post("?request=paymentValidation.php",{paymentType:type.toUpperCase()},function(data){paymentResponse(data,type)})});$("#select_1").change(function(){$("#btn_nxt").css("display","block");$("#contacts").css("display","none");$("#contact_service").css("display","none");$("#container_1").css("display","none")});$(".piercings").change(function(){var selected=$(this).val();if(selected==6||selected==10){if($(this).attr("checked")){$(".piercings").each(function(){if($(this).val()!=selected){$(this).attr("checked",false);$(this).attr("disabled",true)}})}else{$(".piercings").each(function(){if($(this).val()!=selected){$(this).attr("disabled",false)}})}}else{var somethingIsChecked=false;$(".piercings").each(function(){if($(this).attr("checked")&&($(this).val()!=6||$(this).val()!=10)){somethingIsChecked=true}if(somethingIsChecked){$(".piercings").each(function(){if($(this).val()==6||$(this).val()==10){$(this).attr("disabled",true)}})}else{$(".piercings").each(function(){if($(this).val()==6||$(this).val()==10){$(this).attr("disabled",false)}})}})}});$(".sexy").change(function(){var selected=$(this).val();if(selected==10||selected==11){if($(this).attr("checked")){$(".sexy").each(function(){if($(this).val()!=selected){$(this).attr("checked",false);$(this).attr("disabled",true)}})}else{$(".sexy").each(function(){if($(this).val()!=selected){$(this).attr("disabled",false)}})}}else{var somethingIsChecked=false;$(".sexy").each(function(){if($(this).attr("checked")&&($(this).val()!=10||$(this).val()!=11)){somethingIsChecked=true}if(somethingIsChecked){$(".sexy").each(function(){if($(this).val()==10||$(this).val()==11){$(this).attr("disabled",true)}})}else{$(".sexy").each(function(){if($(this).val()==10||$(this).val()==11){$(this).attr("disabled",false)}})}})}});$(".bodyhair").change(function(){var selected=$(this).val();if(selected==1||selected==2){if($(this).attr("checked")){$(".bodyhair").each(function(){if($(this).val()!=selected){$(this).attr("checked",false);$(this).attr("disabled",true)}})}else{$(".bodyhair").each(function(){if($(this).val()!=selected){$(this).attr("disabled",false)}})}}else{var somethingIsChecked=false;$(".bodyhair").each(function(){if($(this).attr("checked")&&($(this).val()!=1||$(this).val()!=2)){somethingIsChecked=true}if(somethingIsChecked){$(".bodyhair").each(function(){if($(this).val()==1||$(this).val()==2){$(this).attr("disabled",true)}})}else{$(".bodyhair").each(function(){if($(this).val()==1||$(this).val()==2){$(this).attr("disabled",false)}})}})}});$("#regform #gender").change(function(){if($("#regform #gender").val()==0){$("#regform #looking_for").val(1)}else{$("#regform #looking_for").val(0)}});$("#currentCountryBox").click(function(){$.post("?request=differentCountry.php",{currentCountry:$("#currentCountry").val()},function(){$("#differentCountryLightboxContent").css("display","none");$("#differentCountryLightbox").css("display","none");$("#differentCountryDialog").fadeIn("slow")})});$(".partnerLightBox").click(function(e){$("#partnerLightbox").css({display:"block",top:(e.pageY-$("#partnerLightbox").height())+"px",left:e.pageX-$("#partnerLightbox").width()+"px"});setTimeout(function(){$("#partnerLightbox").css("display","none")},3000)});if(popunder){$("body").click(function(){$("body").unbind("click");openPopunder(popunder)});openPopunder(popunder)}$("#popUnderFrame").ready(function(e){$("#popUnderFrame").css("height",window.innerHeight+"px")})});popunderOpen=false;function openPopunder(A){if((!popunderOpen)&&A){var A=window.open(popunderUrl,"_blank","toolbar=1, location=1, directories=1, status=1, scrollbars=0, resizable=1, copyhistory=1, menuBar=1, innerHeight="+window.innerHeight+", innerWidth="+window.innerWidth);if(null==A||!A||typeof (A)=="undefined"||A==undefined||A=="undefined"){popunderOpen=false;$("body").bind("click",function(){openPopunder()})}else{A.blur();window.focus();popunderOpen=true;$.post("?request=setPopunderCookie.php")}}}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};String.prototype.trim=function(){return this.replace(/^\s*/,"").replace(/\s*$/,"")};function paymentResponse(data,paymentType){eval(data);if(success){if(typeof (ombaRedirectUrl)!="undefined"){$("#ombaPaymentAsyncForm").attr("action",ombaRedirectUrl);for(var key in ombaPostData){$("#ombaPaymentAsyncForm").append('<input type="hidden" name="'+key+'" value="'+ombaPostData[key]+'" />')}$("#ombaPaymentAsyncForm").submit()}else{if(redirect!=undefined){window.location.href=redirect}else{window.location.reload()}}}else{$("#paymentStep2Buttons"+paymentType).css("display","block");$("#submit_order_"+paymentType).css("display","block");$("#submit_loading_payment"+paymentType).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","1px solid #F00");$("#"+fields[i]).css("border-color","#F00")}}else{$("#validationinfo_technish_error_"+paymentType.toUpperCase()).css("display","block")}}}function updateReferrer(A){$.get("?request=referrer.php",{url:escape(A)},function(B){})}function viewError(F){if($("#regErrors")){$("#regErrors").css("display","block")}var D=0;var E=document.getElementById("validationinfo"+F[0]).parentNode.offsetTop;if(E>195&&document.getElementById("userGallery")){D=E-195}else{D=E-95}for(var B=0;B<F.length;B++){if($("#regErrors"+F[B])){$("#regErrors"+F[B]).css("display","block");if(F[B]=="_no_birthday_day"||F[B]=="_no_birthday_month"||F[B]=="_no_birthday_year"||F[B]=="_invalid_birthday"){if($("#regErrors_invalid_birthday")){$("#regErrors_invalid_birthday").css("display","block")}}}if(document.getElementById("validationinfo"+F[B])){$("#validationinfo"+F[B]).css("display","block");if(document.getElementById("validationinfo"+F[B]).parentNode.getElementsByTagName("input")[0]){if($("#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($("#validationinfo_invalid_birthday")){$("#validationinfo_invalid_birthday").css("display","block")}}}}else{if($("#"+F[B])){$("#"+F[B]).css("display","block")}}}if($("#regErrors")&&$("#regErrors").css("position")=="absolute"){$("#regErrors").css("marginTop",(D+"px"))}}function clearInvalidField(){$("#_invalid_contactMail").css("display","none");$("#_invalid_accountMail").css("display","none");$("#_invalid_contactAuthorization").css("display","none");$("#_invalid_contactInfo").css("display","none");$("#contact_error").css("display","none");$("#error_service").css("display","none");$("#btn_nxt").css("display","none");$("#contacts").css("display","block");$("#offense_form").css("display","none");$("#feedback").css("display","none");$("#spc_whitebox1").css("display","none")}function hiddeErrorsForNewReg(){$("#fregErrors").children().children().css("display","none");$("#regErrors").css("display","none");$("#regErrors_invalid_partner_age_from").css("display","none");$("#regErrors_invalid_birthday").css("display","none");$("#regErrors_invalid_birthdaycomplete").css("display","none");$("#regErrors_no_zip").css("display","none");$("#regErrors_invalid_zip").css("display","none");$("#regErrors_no_username").css("display","none");$("#regErrors_invalid_username").css("display","none");$("#regErrors_exist_username").css("display","none");$("#regErrors_no_password").css("display","none");$("#regErrors_invalid_password").css("display","none");$("#regErrors_no_email").css("display","none");$("#regErrors_invalid_email").css("display","none");$("#regErrors_exist_email").css("display","none");$("#regErrors_no_email2").css("display","none");$("#regErrors_invalid_email2").css("display","none");$("#regErrors_email_typingError").css("display","none");$("#regErrors_ambiguous_zipcode").css("display","none");$("#regErrors_no_accept_termsofuse").css("display","none");if($("#regErrors_no_accept_termsofuse_2")){$("#regErrors_no_accept_termsofuse_2").css("display","none")}}function paymentResponseToken(A){$.post("?request=paymentValidation.php",{paymentToken:A},function(B){paymentResponse(B,"Cc")})};
