PageSourceSearch

https://www.odiashaadi.com/js/community/com-reg/reg-vs-35.js

js odiashaadi.com collected 2026-10-02 01:38:16 UTC 86,815 bytes, 1 lines download raw bytes

1var dupEmail="",chk_form_submit=!1,one_day=864e5,one_month=2592e6,one_year=317088e5;function parseEmailCheckResponse(e){if(!e)return null;if(e.responseJSON)return e.responseJSON;if(!e.responseText)return null;try{var t=e.responseText,r=t.indexOf("{");return JSON.parse(r>=0?t.substring(r):t)}catch(e){return null}}var aSelect2Elements=[],aPlaceholders=new Array;aPlaceholders.email=["Email"],aPlaceholders.password=["Password"],aPlaceholders.first_name=["First Name"],aPlaceholders.last_name=["Last Name"],aPlaceholders.contact_mobile_number=["Mobile No."],aPlaceholders.contact_mobile_std=["Area Code","STD Code"],aPlaceholders.contact_tel_number=["Landline No."],aPlaceholders.contact_tel_std=["Area Code","STD Code"];var aMessages=new Array;aMessages.postedby=new Array,aMessages.postedby["server-side-err"]="Please select your relationship with the person you are registering on the site.",aMessages.postedby.blank="Please select your relationship with the person you are registering on the site.",aMessages.email=new Array,aMessages.email["server-side-err"]="Please enter a valid email address to register and receive relevant Matches.",aMessages.email.blank="Please enter a valid email address to register and receive relevant Matches.",aMessages.email.invalid="Please enter a valid email address to register and receive relevant Matches.",aMessages.email["@shaadi.com"]="Please enter a valid email address to register and receive relevant Matches.",aMessages.email.duplicate_email="This email address is already registered with us. <a href='"+NORMALSERVER+"/registration/user/login'>Login</a> to update your profile and find matches.",aMessages.password1=new Array,aMessages.password1["server-side-err"]="Please create a password between 4 to 20 characters. It should not contain spaces or be the same as your email.",aMessages.password1.blank="Please create a password between 4 to 20 characters. It should not contain spaces or be the same as your email.",aMessages.password1.s="Please create a password between 4 to 20 characters. It should not contain spaces or be the same as your email.",aMessages.password1["."]="Please create a password between 4 to 20 characters. It should not contain spaces or be the same as your email.",aMessages.password1["length < 4"]="Please create a password between 4 to 20 characters. It should not contain spaces or be the same as your email.",aMessages.password1["length > 20"]="Please create a password between 4 to 20 characters. It should not contain spaces or be the same as your email.",aMessages.password1["email password same"]="Please create a password between 4 to 20 characters. It should not contain spaces or be the same as your email.",aMessages.first_name=new Array,aMessages.first_name["server-side-err"]="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",aMessages.first_name.blank="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",aMessages.first_name["a-z"]="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",aMessages.first_name["length > 20"]="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",aMessages.first_name["repetitive > 2"]="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",aMessages.first_name["repetitive > 1"]="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",aMessages.first_name["length < 4"]="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",aMessages.last_name=new Array,aMessages.last_name["server-side-err"]="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",aMessages.last_name.blank="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",aMessages.last_name["a-z"]="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",aMessages.last_name["length > 20"]="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",aMessages.last_name["repetitive > 2"]="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",aMessages.last_name["repetitive > 1"]="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",aMessages.last_name["length < 4"]="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",aMessages.name=new Array,aMessages.name["length < 4"]="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",aMessages.gender=new Array,aMessages.gender["server-side-err"]="Please select the gender of the person being registered on the site.",aMessages.gender.blank=new Array,aMessages.gender.blank.Default="Please select the gender of the person being registered on the site.",aMessages.gender.blank.Self="Please select your gender.",aMessages.gender.blank.Son="Gender of the member is required for registration.",aMessages.gender.blank.Daughter="Gender of the member is required for registration.",aMessages.gender.blank.Brother="Gender of the member is required for registration.",aMessages.gender.blank.Sister="Gender of the member is required for registration.",aMessages.gender.blank.Friend="Please select your friend's gender.",aMessages.gender.blank.Relative="Please select your relative's gender.",aMessages.gender.invalid="Please choose relevant gender.",aMessages.dateofbirth=new Array,aMessages.dateofbirth["server-side-err"]="Please select the date of birth of the person being registered. This information will not be visible to others.",aMessages.dateofbirth.blank=new Array,aMessages.dateofbirth.blank.Default="Please select the date of birth of the person being registered. This information will not be visible to others.",aMessages.dateofbirth.blank.Self="Please select your date of birth. This information will not be visible to others.",aMessages.dateofbirth.blank.Son="Please select your son's date of birth. This information will not be visible to others.",aMessages.dateofbirth.blank.Daughter="Please select your daughter's date of birth. This information will not be visible to others.",aMessages.dateofbirth.blank.Brother="Please select your brother's date of birth. This information will not be visible to others.",aMessages.dateofbirth.blank.Sister="Please select your sister's date of birth. This information will not be visible to others.",aMessages.dateofbirth.blank.Friend="Please select your friend's date of birth. This information will not be visible to others.",aMessages.dateofbirth.blank.Relative="Please select your relative's date of birth. This information will not be visible to others.",aMessages.dateofbirth.day="The correct date of birth is required for registration.",aMessages.dateofbirth.month="The correct date of birth is required for registration.",aMessages.dateofbirth.year="The correct date of birth is required for registration.",aMessages.dateofbirth.Invalid="Incorrect Date of Birth. Please select the correct Date of Birth of the person being registered.",aMessages.dateofbirth["check if valid error"]="A technical error occurred while checking the Date of Birth. Please select the Date of Birth again.",aMessages.dateofbirth["age < 21"]="The person needs to be atleast 21 years old to register here.",aMessages.dateofbirth["age < 20"]="The person needs to be atleast 20 years old to register here.",aMessages.community=new Array,aMessages.community["server-side-err"]="Please select the religion of the person being registered.",aMessages.community.blank=new Array,aMessages.community.blank.Default="Please select the religion of the person being registered.",aMessages.community.blank.Self="Please select your religion.",aMessages.community.blank.Son="Please select the religion of your son.",aMessages.community.blank.Daughter="Please select the religion of your daughter.",aMessages.community.blank.Brother="Please select the religion of your brother.",aMessages.community.blank.Sister="Please select the religion of your sister.",aMessages.community.blank.Friend="Please select the religion of your friend.",aMessages.community.blank.Relative="Please select the religion of your relative.",aMessages.mother_tongue=new Array,aMessages.mother_tongue["server-side-err"]="Please select the community the member belongs to.",aMessages.mother_tongue.blank=new Array,aMessages.mother_tongue.blank.Default="Please select the community the member belongs to.",aMessages.mother_tongue.blank.Self="Please select the community you belong to.",aMessages.mother_tongue.blank.Son="Please select the community your son belongs to.",aMessages.mother_tongue.blank.Daughter="Please select the community your daughter belongs to.",aMessages.mother_tongue.blank.Brother="Please select the community your brother belongs to.",aMessages.mother_tongue.blank.Sister="Please select the community your sister belongs to.",aMessages.mother_tongue.blank.Friend="Please select the community your friend belongs to.",aMessages.mother_tongue.blank.Relative="Please select the community your relative belongs to.",aMessages.countryofresidence=new Array,aMessages.countryofresidence["server-side-err"]="Please select the country that the member currently lives in.",aMessages.countryofresidence.blank=new Array,aMessages.countryofresidence.blank.Default="Please select the country that the member currently lives in.",aMessages.countryofresidence.blank.Self="Please select the country in which you currently reside.",aMessages.countryofresidence.blank.Son="Please select the country in which your son currently lives in.",aMessages.countryofresidence.blank.Daughter="Please select the country in which your daughter currently lives in.",aMessages.countryofresidence.blank.Brother="Please select the country in which your brother currently lives in.",aMessages.countryofresidence.blank.Sister="Please select the country in which your sister currently lives in.",aMessages.countryofresidence.blank.Friend="Please select the country in which your friend currently lives in.",aMessages.countryofresidence.blank.Relative="Please select the country in which your relative currently lives in.",aMessages.country_code=new Array,aMessages.country_code["
1server-side-err"]="Please specify country for mobile number of the person who will handle your matrimonial inquiries.",aMessages.country_code.blank="Please specify country for mobile number of the person who will handle your matrimonial inquiries.",aMessages.contact_mobile_std=new Array,aMessages.contact_mobile_std["server-side-err"]="Please enter area code for mobile number to proceed further.",aMessages.contact_mobile_std.blank="Please enter area code for mobile number to proceed further.",aMessages.contact_mobile_std.NaN="Please enter a numeric value to proceed further.",aMessages.contact_mobile_std.invalid="Please enter valid area code for mobile number to proceed further.",aMessages.contact_mobile_number=new Array,aMessages.contact_mobile_number["server-side-err"]="A valid mobile number is required for security purposes. You will receive a verification PIN on this number. You can use Privacy Options to decide if others can view your number.",aMessages.contact_mobile_number.blank="A valid mobile number is required for security purposes. You will receive a verification PIN on this number. You can use Privacy Options to decide if others can view your number.",aMessages.contact_mobile_number.invalid="A valid mobile number is required for security purposes. You will receive a verification PIN on this number. You can use Privacy Options to decide if others can view your number.",aMessages.contact_tel_std=new Array,aMessages.contact_tel_std["server-side-err"]="Please enter area code for landline number to proceed further.",aMessages.contact_tel_std.blank="Please enter area code for landline number to proceed further.",aMessages.contact_tel_std.NaN="Please enter a numeric value to proceed further.",aMessages.contact_tel_std.invalid="Please enter valid area code for landline number to proceed further.",aMessages.contact_tel_number=new Array,aMessages.contact_tel_number["server-side-err"]="A valid landline number is required for security purposes. You can use Privacy Options to decide if others can view your number.",aMessages.contact_tel_number.blank="A valid landline number is required for security purposes. You can use Privacy Options to decide if others can view your number.",aMessages.contact_tel_number.invalid="A valid landline number is required for security purposes. You can use Privacy Options to decide if others can view your number.",aMessages.confirm_policy=new Array,aMessages.confirm_policy["server-side-err"]="Please read and confirm acceptance to the Privacy Policy and Terms and Conditions to proceed with your registration.",aMessages.confirm_policy.blank="Please read and confirm acceptance to the Privacy Policy and Terms and Conditions to proceed with your registration.";var tooltips=new Array;tooltips.email=new Array,tooltips.email.Default="A valid email address is required for registration.",tooltips.email.duplicate_email="This email address is already registered with us. <a href='"+NORMALSERVER+"/registration/user/login'>Login</a> to update your profile and find matches.",tooltips.password1=new Array,tooltips.password1.Default=" Please create a password between 4 to 20 characters. It should not contain spaces or be the same as your email.",tooltips.postedby=new Array,tooltips.postedby.Default=" Please select your relationship with the person looking to get married.",tooltips.name=new Array,tooltips.name.Default="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",tooltips.name.Self="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",tooltips.name.Son="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",tooltips.name.Daughter="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",tooltips.name.Brother="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",tooltips.name.Sister="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",tooltips.name.Friend="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",tooltips.name.Relative="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",tooltips.first_name=new Array,tooltips.first_name.Default="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",tooltips.first_name.Self="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",tooltips.first_name.Son="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",tooltips.first_name.Daughter="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",tooltips.first_name.Brother="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",tooltips.first_name.Sister="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",tooltips.first_name.Friend="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",tooltips.first_name.Relative="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",tooltips.last_name=new Array,tooltips.last_name.Default="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",tooltips.last_name.Self="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",tooltips.last_name.Son="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",tooltips.last_name.Daughter="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",tooltips.last_name.Brother="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",tooltips.last_name.Sister="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",tooltips.last_name.Friend="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",tooltips.last_name.Relative="By default, your full name will not be shown to other members unless you choose to. You can control your privacy 100%.",tooltips.gender=new Array,tooltips.gender.Default="Please select the gender of the person being registered on the site.",tooltips.gender.Self="Please select your gender.",tooltips.gender.Son="Gender of the member is required for registration.",tooltips.gender.Daughter="Gender of the member is required for registration.",tooltips.gender.Brother="Gender of the member is required for registration.",tooltips.gender.Sister="Gender of the member is required for registration.",tooltips.gender.Friend="Please select your friend's gender.",tooltips.gender.Relative="Please select your relative's gender.",tooltips.dateofbirth=new Array,tooltips.dateofbirth.Default="Please select the date of birth of the person being registered. This information will not be visible to others.",tooltips.dateofbirth.Self="Please select your date of birth. This information will not be visible to others.",tooltips.dateofbirth.Son="Please select your son's date of birth. This information will not be visible to others.",tooltips.dateofbirth.Daughter="Please select your daughter's date of birth. This information will not be visible to others.",tooltips.dateofbirth.Brother="Please select your brother's date of birth. This information will not be visible to others.",tooltips.dateofbirth.Sister="Please select your sister's date of birth. This information will not be visible to others.",tooltips.dateofbirth.Friend="Please select your friend's date of birth. This information will not be visible to others.",tooltips.dateofbirth.Relative="Please select your relative's date of birth. This information will not be visible to others.",tooltips.community=new Array,tooltips.community.Default="Please select the religion of the person being registered.",tooltips.community.Self="Please select your religion.",tooltips.community.Son="Please select the religion of your son.",tooltips.community.Daughter="Please select the religion of your daughter.",tooltips.community.Brother="Please select the religion of your brother.",tooltips.community.Sister="Please select the religion of your sister.",tooltips.community.Friend="Please select the religion of your friend.",tooltips.community.Relative="Please select the religion of your relative.",tooltips.mother_tongue=new Array,tooltips.mother_tongue.Default="Please select the community the member belongs to.",tooltips.mother_tongue.Self="Please select the community you belong to.",tooltips.mother_tongue.Son="Please select the community your son belongs to.",tooltips.mother_tongue.Daughter="Please select the community your daughter belongs to.",tooltips.mother_tongue.Brother="Please select the community your brother belongs to.",tooltips.mother_tongue.Sister="Please select the community your sister belongs to.",tooltips.mother_tongue.Friend="Please select the community your friend belongs to.",tooltips.mother_tongue.Relative="Please select the community your relative belongs to.",tooltips.countryofresidence=new Array,tooltips.countryofresidence.Default="Please select the country that the member currently lives in.",tooltips.countryofresidence.Self="Please select the country in which you currently reside.",tooltips.countryofresidence.Son="Please select the country in which your son currently lives in.",tooltips.countryofresidence.Daughter="Please select the country in which your daughter currently lives in.",tooltips.countryofresidence.Brother="Please select the country in which your brother currently lives in.",tooltips.countryofresidence.Sister="Please select the country in which your sister currently lives in.",tooltips.countryofresidence.Friend="Please select the country in which your friend currently lives in.",tooltips.countryofresidence.Relative="Please select the country in which your relative currently lives in.",tooltips.contact_mobile_number=new Array,tooltips.contact_mobile_number.Default=" A valid mobile number is required for security purposes. You will receive a verification PIN on this number. You can use Privacy Options to decide if others can view your number.",tooltips.contact_mobile_std=new Array,tooltips.contact_mobile_std.Default=" A valid mobile number is required for security purposes. You will receive a verification PIN on this number. You can use Privacy Options to decide if others can view your number.",tooltips.contact_tel_std=new Array,tooltips.contact_tel_std.Default="  A valid landline number is required for security purposes. You can use Privacy Options to decide if others can view your number.",tooltips.contact_tel_number=new Array,tooltips.contact_tel_number.Default="  A valid landline number is required for security purposes. You can use Privacy Options to decide if others can view your number.";var label=new Array;label.email="<b>Email:</b> ",label.password1="<b>Password:</b> ",label.postedby="<b>Profile for:</b> ",label.name="<b>Name:</b> ",label.first_name="<b>Name:</b> ",label.last_name="<b>Name:</b> ",label.gender="<b>Gender:</b> ",label.dateofbirth="<b>Date of Birth:</b> ",label.year="<b>Date of Birth:</b> ",label.month="<b>Date of Birth:</b> ",label.day="<b>Date of Birth:</b> ",label.community="<b>Religion:</b> ",label.mother_tongue="<b>Mother Tongue:</b> ",label.countryofresidence="<b>Living in:</b> ",label.contact_mobile_number="<b>Mobile No:</b> ",label.contact_mobile_std="<b>Mobile No:</b> ",label.contact_tel_std="<b>Phone No:</b> ",label.contact_tel_number="<b>Phone No:</b> ";var Registration={helper:{calculateAge:function(e,t,r,o,a,i){today=new Date;var n=new Date(e,t-1,r),s=o,l=a;if(finalunit="days"==s?one_day:"months"==s?one_month:one_year,l=l<=0?1:10*l,"years"!=o)"rounddown"==i?alert(Math.floor((today.getTime()-n.getTime())/finalunit*l)/l+" "+s):alert(Math.ceil((today.getTime()-n.getTime())/finalunit*l)/l+" "+s);else{yearspast=today.getFullYear()-e-1,tail=today.getMonth()>t-1||today.getMonth()==t-1&&today.getDate()>=r?1:0,n.setFullYear(today.getFullYear()),pastdate2=new Date(today.getFullYear()-1,t-1,r),tail=1==tail?tail+Math.floor((today.getTime()-n.getTime())/finalunit*l)/l:Math.floor((today.getTime()-pastdate2.getTime())/finalunit*l)/l;var c=yearspast+tail}return c},populateYearBasedOnGender:function(){var e=(new Date).getFullYear(),t=$("#"+Registration.config.formName+" #"+Registration.config.prefix+"year").val(),r=$("#"+Registration.config.formName+" input[name='gender']:checked").val();if("Male"==r)var o=e-21;else if("Female"==r)o=e-20;else o=e-20;for(var a=e-70,i='<option label="'+$("#"+Registration.config.formName+" #"+Registration.config.prefix+"year option:first").text()+'" value="">'+$("#"+Registration.config.formName+" #"+Registration.config.prefix+"year option:first").text()+"</option>",n=o;n>a;n--)i+="<option label='"+n+"' value='"+n,i+=n==t?"' selected>":"'>",i+=n+"</option>";if($("#"+Registration.config.formName+" #"+Registration.config.prefix+"year").html(i),""!=$("#"+Registration.config.formName+" #"+Registration.config.prefix+"day").val()&&""!=$("#"+Registration.config.formName+" #"+Registration.config.prefix+"month").val()&&Registration.validate.dateofbirth(),-1!==$.inArray(Registration.config.regFormName,["REG_1_5_SOCIAL","REG_1_5_BLANK"])){var s=$("#"+Registration.config.formName+" #"+Registration.config.prefix+"year").val();""==s&&(s="Year"),$("#"+Registration.config.formName+" #s2id_"+Registration.config.prefix+"year .select2-chosen").html(s)}},replacePassword:function(e){var t=document.createElement("input");t.setAttribute("type","password"),t.setAttribute("name",e.getAttribute("name")),t.setAttribute("id",e.getAttribute("id")),e.parentNode.replaceChild(t,e);var r=$(t),o=$(e),a=o.data("events");$.each(a,function(e,t){$.each(t,function(t,o){""==o.namespace&&r.bind(e,o.handler)})}),r.attr("class",o.attr("class")),r.attr("tabindex",2),setTimeout(function(){r.focus()},500)}},country:{residenceChange:function(e){var t=$("#"+Registration.config.formName+" #"+Registration.config.prefix+"country_code").attr("id");$("#"+t).length&&(arr=$("#"+Registration.config.formName+" #"+t).val().split("|"),document.getElementById(t).options[document.getElementById(t).selectedIndex].text=arr[1]+" ("+arr[0]+")",$.browser.msie||(document.getElementById(t).options[document.getElementById(t).selectedIndex].label=arr[1]+" ("+arr[0]+")"),this.countryCodeChange(e))},countryCodeChange:function(e){var t=$("#"+Registration.config.formName+" #"+Registration.config.prefix+"country_code").attr("id"),r=[];$("#"+t+" option").each(function(){if(r=$(this).val().split("|"),e==r[1])return $("#"+t).val($(this).val()),!1}),"Y"==Registration.config.select2&&$("#"+Registration.config.prefix+"country_code").is("select")?-1!==$.inArray(Registration.config.regFormName,["REG_1_5_SOCIAL","REG_1_5_BLANK"])?$("#s2id_"+Registration.config.prefix+"country_code .select2-chosen").html(r[1]+" ("+r[0]+")"):$("#s2id_"+Registration.config.prefix+"country_code .select2-chosen").html(r[0]):(document.getElementById(t).options[document.getElementById(t).selectedIndex].text=r[0],$.browser.msie||(document.getElementById(t).options[document.getElementById(t).selectedIndex].label=r[0])),$("#"+Registration.config.formName+" #"+Registration.config.prefix+"contact_isd").val(r[0]),$("#"+Registration.config.prefix+"contact_mobile_std_span").hide(),$("#"+Registration.config.formName+" #"+Registration.config.prefix+"contact_mobile_number").removeClass("reg_std_mobilenum_input").addClass("reg_mobilenum_input"),"India"==e?($("#"+Registration.config.formName+" #"+Registration.config.prefix+"contact_mob
1ile_std").val(aPlaceholders.contact_mobile_std[1]),$("#"+Registration.config.formName+" #"+Registration.config.prefix+"contact_tel_std").val(aPlaceholders.contact_tel_std[1]),$("#"+Registration.config.formName+" #"+Registration.config.prefix+"contact_mobile_std").data("placeholder",aPlaceholders.contact_mobile_std[1]),$("#"+Registration.config.formName+" #"+Registration.config.prefix+"contact_tel_std").data("placeholder",aPlaceholders.contact_tel_std[1])):"Canada"==e||"USA"==e?($("#"+Registration.config.formName+" #"+Registration.config.prefix+"contact_mobile_std").val()==aPlaceholders.contact_mobile_std[1]&&($("#"+Registration.config.formName+" #"+Registration.config.prefix+"contact_mobile_std").val(aPlaceholders.contact_mobile_std[0]),$("#"+Registration.config.formName+" #"+Registration.config.prefix+"contact_mobile_std").data("placeholder",aPlaceholders.contact_mobile_std[0])),$("#"+Registration.config.formName+" #"+Registration.config.prefix+"contact_tel_std").val()==aPlaceholders.contact_tel_std[1]&&($("#"+Registration.config.formName+" #"+Registration.config.prefix+"contact_tel_std").val(aPlaceholders.contact_tel_std[0]),$("#"+Registration.config.formName+" #"+Registration.config.prefix+"contact_tel_std").data("placeholder",aPlaceholders.contact_tel_std[0]))):($("#"+Registration.config.formName+" #"+Registration.config.prefix+"contact_mobile_std").val(aPlaceholders.contact_mobile_std[0]),$("#"+Registration.config.formName+" #"+Registration.config.prefix+"contact_tel_std").val(aPlaceholders.contact_tel_std[0]),$("#"+Registration.config.formName+" #"+Registration.config.prefix+"contact_mobile_std").data("placeholder",aPlaceholders.contact_mobile_std[0]),$("#"+Registration.config.formName+" #"+Registration.config.prefix+"contact_tel_std").data("placeholder",aPlaceholders.contact_tel_std[0])),set_max_length(e,Registration.config.prefix)}},validate:{email:function(e){if(this.hideError("email"),this.hideError("duplicate_email"),this.errorState.email=!1,oRegX=new RegExp(/^[\w_-]+(\.[\w_-]+)*@[\w_-]+(\.[\w_-]+)*\.\w{2,4}$/gi),""==e)this.errorState.email=!0,this.displayError("email","blank");else if(/@shaadi.com/gi.test(e))this.errorState.email=!0,this.displayError("email","@shaadi.com");else if(oRegX.test(e)){objEmail=this,sUrl=NORMALSERVER+"/ajax/check-if-email-exist/email/"+escape(e)+"/duplicate/1/frompage/reg1";var t=!0;chk_form_submit&&(t=!1);var r=function(t){if(t&&0!=t.error){var r=!0;"Duplicate Email"==t.type&&chk_form_submit&&""!=dupEmail&&dupEmail!=e&&(r=!1),""==dupEmail&&"Duplicate Email"==t.type&&(dupEmail=e),r&&(objEmail.errorState.email=!0,objEmail.displayError("email","duplicate_email"))}};$.ajax({async:t,type:"GET",url:sUrl,dataType:"json",success:r,error:function(e){422===e.status&&r(parseEmailCheckResponse(e))}})}else this.errorState.email=!0,this.displayError("email","invalid")},password1:function(e){this.hideError("password1"),this.errorState.password1=!1;""==e||"Password"==e?(this.errorState.password1=!0,this.displayError("password1","blank")):/^[A-Za-z0-9\.\!@#\$\?\,\%\^&*\(\)\_\-\>\<]*$/.test(e)?e.length<4?(this.errorState.password1=!0,this.displayError("password1","length < 4")):e.length>20?(this.errorState.password1=!0,this.displayError("password1","length > 20")):$("#"+Registration.config.formName+" #"+Registration.config.prefix+"email").val().toLowerCase()==e.toLowerCase()&&(this.errorState.password1=!0,this.displayError("password1","email password same")):(this.errorState.password1=!0,this.displayError("password1","."))},gender:function(e){this.hideError("gender"),this.errorState.gender=!1,e=$("#"+Registration.config.formName+" input[name='gender']:checked").val(),postedby=$("#"+Registration.config.formName+" #"+Registration.config.prefix+"postedby").val(),null!=e&&""!=e||(this.errorState.gender=!0,""==postedby?this.displayError("gender","blank","Default"):this.displayError("gender","blank",postedby)),"Son"!=postedby&&"Brother"!=postedby||"Male"==e||(this.errorState.gender=!0,this.displayError("gender","invali
1d")),"Daughter"!=postedby&&"Sister"!=postedby||"Female"==e||(this.errorState.gender=!0,this.displayError("gender","invalid"))},day:function(e){this.dateofbirth("day")},month:function(e){this.dateofbirth("month")},year:function(e){this.dateofbirth("year")},dateofbirth:function(e){this.hideError("dateofbirth"),this.errorState.dateofbirth=!1;var t=$("#"+Registration.config.formName+" #"+Registration.config.prefix+"day").val(),r=$("#"+Registration.config.formName+" #"+Registration.config.prefix+"month").val(),o=$("#"+Registration.config.formName+" #"+Registration.config.prefix+"year").val(),a=$("#"+Registration.config.formName+" #"+Registration.config.prefix+"postedby").val(),i=$("#"+Registration.config.formName+" input[name='gender']:checked").val();if(""==t&&""==r&&""==o)this.errorState.dateofbirth=!0;else if(""==t)this.errorState.dateofbirth=!0;else if(""==r)this.errorState.dateofbirth=!0;else if(""==o)this.errorState.dateofbirth=!0;else if(""!=t&&""!=r&&""!=o)if(age=Registration.helper.calculateAge(o,r,t,"years",0,"rounddown"),4!=r&&6!=r&&9!=r&&11!=r||31!=t)if(2==r){(t>29||29==t&&!(o%4==0&&(o%100!=0||o%400==0)))&&(this.errorState.dateofbirth=!0)}else(("Son"==a||"Brother"==a||"Male"==i)&&age<21||("Daughter"==a||"Sister"==a||"Female"==i)&&age<20)&&(this.errorState.dateofbirth=!0);else this.errorState.dateofbirth=!0;this.errorState.dateofbirth&&(""==a?this.displayError("dateofbirth","blank","Default"):this.displayError("dateofbirth","blank",a)),Registration.trackFieldEfficiency.trackSelect2("Focus OUT",$("#"+Registration.config.formName+" #"+Registration.config.prefix+e))},community:function(e){this.hideError("community"),this.errorState.community=!1;var t=$("#"+Registration.config.formName+" #"+Registration.config.prefix+"postedby").val();""==e&&(this.errorState.community=!0,t?this.displayError("community","blank",t):this.displayError("community","blank","Default")),Registration.trackFieldEfficiency.trackSelect2("Focus OUT",$("#"+Registration.config.formName+" #"+Registration.config.prefix+"community"))},mother_tongue:function(e){this.hideError("mother_tongue"),this.errorState.mother_tongue=!1;var t=$("#"+Registration.config.formName+" #"+Registration.config.prefix+"postedby").val();""!=e&&0!=e||(this.errorState.mother_tongue=!0,t?this.displayError("mother_tongue","blank",t):this.displayError("mother_tongue","blank","Default")),Registration.trackFieldEfficiency.trackSelect2("Focus OUT",$("#"+Registration.config.formName+" #"+Registration.config.prefix+"mother_tongue"))},countryofresidence:function(e){this.hideError("countryofresidence"),this.errorState.countryofresidence=!1;var t=$("#"+Registration.config.formName+" #"+Registration.config.prefix+"postedby").val();""!=e&&0!=e||(this.errorState.countryofresidence=!0,t?this.displayError("countryofresidence","blank",t):this.displayError("countryofresidence","blank","Default")),Registration.trackFieldEfficiency.trackSelect2("Focus OUT",$("#"+Registration.config.formName+" #"+Registration.config.prefix+"countryofresidence"))},postedby:function(e){this.hideError("postedby"),this.errorState.postedby=!1,""==e&&(this.errorState.postedby=!0,this.displayError("postedby","blank")),Registration.trackFieldEfficiency.trackSelect2("Focus OUT",$("#"+Registration.config.formName+" #"+Registration.config.prefix+"postedby"))},first_name:function(e){if(this.hideError("first_name"),this.errorState.first_name=!1,""==e||"First Name"==e)this.errorState.first_name=!0,this.displayError("first_name","blank");else{var t=this.name(e),r=$("#"+Registration.config.formName+" #"+Registration.config.prefix+"last_name").val();if(!1===t.valid&&t.errorCase)this.errorState.first_name=!0,this.displayError("first_name",t.errorCase);else if(""!=r&&"Last Name"!=r){var o=new RegExp(/^[a-z ]*[a-z\.\']{3,}[a-z ]*$/i);o.test(e)||o.test(r)?!1===(t=this.name(r)).valid||t.errorCase||(this.errorState.last_name=!1,this.hideError("last_name")):(this.errorState.first_name=!0,this.errorState.last_name=!0,this.displayError("first_name","length < 4"),this.displayError("last_name","length < 4"))}}!this.errorState.first_name&&this.errorState.last_name&&this.displayError("last_name","blank"),Registration.trackFieldEfficiency.trackSelect2("Focus OUT",$("#"+Registration.config.formName+" #"+Registration.config.prefix+"first_name"))},last_name:function(e){if(this.hideError("last_name"),this.errorState.last_name=!1,""==e||"Last Name"==e)this.errorState.last_name=!0,this.displayError("last_name","blank");else{var t=this.name(e),r=$("#"+Registration.config.formName+" #"+Registration.config.prefix+"first_name").val();if(!1===t.valid&&t.errorCase)this.errorState.last_name=!0,this.displayError("last_name",t.errorCase);else if(""!=r&&"First Name"!=r){var o=new RegExp(/^[a-z ]*[a-z\.\']{3,}[a-z ]*$/i);o.test(e)||o.test(r)?!1===(t=this.name(r)).valid||t.errorCase||(this.errorState.first_name=!1,this.hideError("first_name")):(this.errorState.last_name=!0,this.errorState.first_name=!0,this.displayError("last_name","length < 4"),this.displayError("first_name","length < 4"))}}this.errorState.first_name&&!this.errorState.last_name&&this.displayError("first_name","blank")},name:function(e){var t=new RegExp(/^[a-z \']+$/gi),r=new RegExp(/(.)\1{2,}/i),o=new RegExp(/(\.){2,}|(\'){2,}/i),a=!0,i="";return"string"==typeof e&&(e=$.trim(e)),t.test(e)?e.length>20?(a=!1,i="length > 20"):r.test(e)?(a=!1,i="repetitive > 2"):o.test(e)&&(a=!1,i="repetitive > 1"):(a=!1,i="a-z"),{valid:a,errorCase:i}},contact_mobile_std:function(e){this.hideError("contact_mobile_std"),this.errorState.contact_mobile_std=!1,""==e||-1!==$.inArray(e,aPlaceholders.contact_mobile_std)?(this.errorState.contact_mobile_std=!0,this.displayError("contact_mobile_std","blank")):/^\d*$/.test(e)?(e<1||/^0.*$/.test(e))&&(this.errorState.contact_mobile_std=!0,this.displayError("contact_mobile_std","invali
1d")):(this.errorState.contact_mobile_std=!0,this.displayError("contact_mobile_std","NaN"))},contact_mobile_number:function(e){this.hideError("contact_mobile_number"),this.errorState.contact_mobile_number=!1;var t=$("#"+Registration.config.formName+" #"+Registration.config.prefix+"country_code").val();""==e||"Mobile No."==e?(this.errorState.contact_mobile_number=!0,this.displayError("contact_mobile_number","blank")):/^\d*$/.test(e)?(e<1||/^0.*$/.test(e)||"+91|India"==t&&e.length<10||"+65|Singapore"==t&&e.length<8||e.length<7)&&(this.errorState.contact_mobile_number=!0,this.displayError("contact_mobile_number","invalid")):(this.errorState.contact_mobile_number=!0,this.displayError("contact_mobile_number","blank"))},contact_tel_std:function(e){this.hideError("contact_tel_std"),this.errorState.contact_tel_std=!1,""==e||-1!==$.inArray(e,aPlaceholders.contact_tel_std)?(this.errorState.contact_tel_std=!0,this.displayError("contact_tel_std","blank")):/^\d*$/.test(e)?(e<1||/^0.*$/.test(e))&&(this.errorState.contact_tel_std=!0,this.displayError("contact_tel_std","invalid")):(this.errorState.contact_tel_std=!0,this.displayError("contact_tel_std","NaN"))},contact_tel_number:function(e){this.hideError("contact_tel_number"),this.errorState.contact_tel_number=!1;var t=$("#"+Registration.config.formName+" #"+Registration.config.prefix+"country_code").val();""==e||"Mobile No."==e?(this.errorState.contact_tel_number=!0,this.displayError("contact_tel_number","blank")):/^\d*$/.test(e)?(e<1||/^0.*$/.test(e)||"+91|India"==t&&e.length<6||"+65|Singapore"==t&&e.length<8||("+1|Canada"==t||"+1|USA"==t)&&e.length<7||e.length<5)&&(this.errorState.contact_tel_number=!0,this.displayError("contact_tel_number","invalid")):(this.errorState.contact_tel_number=!0,this.displayError("contact_tel_number","invalid"))},confirm_policy:function(e){$("#"+Registration.config.formName+" #"+Registration.config.prefix+"confirm_policy:checked").size()||(alert("Please read and confirm acceptance to the Privacy Policy and Terms and Conditions to proceed with your registration."),this.errorState.confirm_policy=!0)},displayError:function(e,t){void 0===t&&(t="Default"),"day"!=e&&"month"!=e&&"year"!=e||(e="dateofbirth"),$("#"+Registration.config.prefix+this.errorContainerMap[e]).addClass("common_error"),this.manipulateErrorMsg(e),this.manipulateErrorDiv(e,t),argv=[].slice.call(arguments),this.errorState[e]=t,3===argv.length?($("#errmsg_"+Registration.config.prefix+e).html(label[e]+aMessages[e][t][argv[2]]),this.errorStack.push({field:e,errmsg:aMessages[e][t][argv[2]]})):($("#errmsg_"+Registration.config.prefix+e).html(label[e]+aMessages[e][t]),this.errorStack.push({field:e,errmsg:aMessages[e][t]}))},setPositions:function(e){var t="";if("none"!=$("#hint_"+Registration.config.prefix+e).css("display")){t="arrow_hint";var r="hint_",o="hint_wrapper"}else if("none"!=$("#error_"+Registration.config.prefix+e).css("display")){t="error_tooltip_arrow";r="error_",o="error_tooltip_wrapper"}if(""!=t){var a=e;"dateofbirth"==e&&(a="year");var i=$("#"+Registration.config.prefix+a);if("mother_tongue"==a&&"hidden"==$("#"+Registration.config.prefix+a).attr("type")){-1!==$.inArray(Registration.config.regFormName,["REG_1_5_SOCIAL","REG_1_5_BLANK"])&&(a="mother_tongue_select");i=$("#"+Registration.config.prefix+a+"_select")}var n=i.outerHeight();if("Y"==Registration.config.select2&&$("#"+Registration.config.prefix+a).is("select"))n=$("#s2id_"+Registration.config.prefix+a).outerHeight();var s=$("."+t).css("height");s=parseInt(s);var l=$("#"+r+Registration.config.prefix+e+" ."+o).outerHeight(),c=Math.floor((l-n)/2),f=Math.floor((l-s)/2);c<0?(c=Math.abs(c),$("#"+r+Registration.config.prefix+e).css("top",c+"px")):$("#"+r+Registration.config.prefix+e).css("top","-"+c+"px"),$("#"+r+Registration.config.prefix+e+" ."+t).css("top",f+"px")}$(".social_btn_wrapper #hpage_lnked_wrap").hide()},manipulateErrorDiv:function(e,t){if("email"===e)"duplicate_email"==t?($("#"+Registration.config.formName+" #"+this.errorClassMap[e]).hide(),$("#"+Registration.config.formName+" #"+this.errorClassMap[t]).show()):($("#"+Registration.config.formName+" #"+this.errorClassMap.duplicate_email).hide(),$("#"+Registration.config.formName+" #"+this.errorClassMap[e]).show());else $("#"+Registration.config.formName+" #"+this.errorClassMap[e]).show()},manipulateErrorMsg:function(e){var t=$("#"+this.errorClassMap[e]+" .err_text");switch(e){case"first_name":case"last_name":(this.errorState.first_name&&this.errorState.last_name||!this.errorState.first_name&&this.errorState.last_name||this.errorState.first_name&&!this.errorState.last_name)&&t.html("Please specify valid full name")}},hideError:function(e){$("#"+Registration.config.prefix+this.errorContainerMap[e]).removeClass("common_error"),$("#"+Registration.config.formName+" #"+this.errorClassMap[e]).hide()},errorContainerMap:{email:"email",duplicate_email:"email",password1:"password1",postedby:"postedby_error",first_name:"first_name",last_name:"last_name",gender:"gender_error",day:"dob_error",month:"dob_error",year:"dob_error",dateofbirth:"dob_error",community:"community_error",mother_tongue:"mother_tongue_error",countryofresidence:"countryofresidence_error",contact_mobile_std:"contact_mobile_std",contact_mobile_number:"contact_mobile_number",contact_tel_std:"contact_tel_std",contact_tel_number:"contact_tel_number"},errorClassMap:{email:"err_text_email",duplicate_email:"err_text_duplicate_email",password1:"err_text_password1",postedby:"err_text_postedby",first_name:"err_name",last_name:"err_name",gender:"err_text_gender",day:"err_text_dateofbirth",month:"err_text_dateofbirth",year:"err_text_dateofbirth",dateofbirth:"err_text_dateofbirth",community:"err_text_community",mother_tongue:"err_text_mother_tongue",countryofresidence:"err_text_countryofresidence",contact_mobile_std:"err_text_phone",contact_mobile_number:"err_text_phone",contact_tel_std:"err_text_phone",contact_tel_number:"err_text_phone"},errorState:{email:!1,password1:!1,postedby:!1,first_name:!1,last_name:!1,gender:!1,day:!1,month:!1,year:!1,mother_tongue:!1,countryofresidence:!1,contact_mobile_std:!1,contact_mobile_number:!1,contact_tel_std:!1,contact_tel_number:!1,confirm_policy:!1,layer_email:!1,layer_password1:!1,layer_postedby:!1,layer_first_name:!1,layer_last_name:!1,layer_gender:!1,layer_day:!1,layer_month:!1,layer_year:!1,layer_mother_tongue:!1,layer_countryofresidence:!1,layer_contact_mobile_std:!1,layer_contact_mobile_number:!1,layer_contact_tel_std:!1,layer_contact_tel_number:!1,layer_confirm_policy:!1},resetErrorState:function(){for(f in this.errorState)this.errorState[f]=!1},errorStack:[]},trackFieldEfficiency:{track:function(e,t){if("Y"==Registration.config.formEfficiencyTracking){var r="N";switch(t.attr("name")){case"day":case"month":case"year":Registration.validate.errorState.dateofbirth&&(r="Y");break;default:Registration.validate.errorState[t.attr("name")]&&(r="Y")}var o="";switch(t.attr("type")){case"checkbox":case"radio":$("#"+Registration.config.formName+" input[name='"+t.attr("name")+"']").is(":checked")&&(o=$("#"+Registration.config.formName+" input[name="+t.attr("name")+"]:checked").val());break;default:o=t.val()}if(""!=o)switch(t.attr("id")){case"email":"string"!=typeof aPlaceholders.email&&$.isArray(aPlaceholders.email)&&-1!==$.inArray(o,aPlaceholders.email)&&(o="");var a=o.split("@");o=a.length>1?a[0].replace(a[0],this.getReplacingVal(a[0].length)+"@"+a[1]):o.replace(o,this.getReplacingVal(o.length));break;case"password1":"string"!=typeof aPlaceholders.password&&$.isArray(aPlaceholders.password)&&-1!==$.inArray(o,aPlaceholders.password)&&(o=""),o=o.replace(o,this.getReplacingVal(o.length))}$.ajax({url:NORMALSERVER+"/ajax/track-field-efficiency",data:"from_page=reg1&form_name="+encodeURIComponent($("#"+Registration.config.formName+" input[name='form_name']").val())+"&field_name="+encodeURIComponent(t.attr("id"))+"&event_name="+encodeURIComponent(e)+"&field_value="+encodeURIComponent(o)+"&is_error_flag="+encodeURIComponent(r),cache:!1,success:function(e){}})}},getReplacingVal:function(e){var t="";for(i=0;i<e;i++)t+="*";return t},bindTrackFieldEfficiency:function(){$("#"+Registration.config.formName+" input").each(function(e){if($(this).attr("name")&&$(this).attr("id")&&"counter1"!=$(this).attr("name")&&"ddSelOptText_"!=$(this).attr("id").substring(0,13))switch($(this).attr("type")){case"text":case"checkbox":case"password":case"radio":$(this).focusin(function(){Registration.trackFieldEfficiency.track("Focus IN",$(this))}),$(this).blur(function(){Registration.trackFieldEfficiency.track("Focus OUT",$(this))})}}),$("#"+Registration.config.formName+" select").each(function(e){"Y"==Registration.config.select2&&$("#"+Registration.config.prefix+$(this).attr("id")).is("select")?$(this).on("select2-focus",function(e){Registration.trackFieldEfficiency.track("Focus IN",$(this))}):($(this).focusin(function(){Registration.trackFieldEfficiency.track("Focus IN",$(this))}),$(this).blur(function(){Registration.trackFieldEfficiency.track("Focus OUT",$(this))}))}),$("#"+Registration.config.formName+" textarea").each(function(e){$(this).focusin(function(){Registration.trackFieldEfficiency.track("Focus IN",$(this))}),$(this).blur(function(){Registration.trackFieldEfficiency.track("Focus OUT",$(this))})})},trackSelect2:function(e,t){"Y"==Registration.config.select2&&$("#"+Registration.config.prefix+t.attr("id")).is("select")&&!chk_form_submit&&Registration.trackFieldEfficiency.track(e,t)}},config:{allowSubmitWithoutValidation:"N",trackErrors:"Y",formEfficiencyTracking:"N",formName:"frm_registration",prefix:"",regFormName:"",select2:"N"}
1,init:function(e){$.extend(Registration.config,e)}},RegistrationLayer={helper:{calculateAge:function(e,t,r,o,a,i){today=new Date;var n=new Date(e,t-1,r),s=o,l=a;if(finalunit="days"==s?one_day:"months"==s?one_month:one_year,l=l<=0?1:10*l,"years"!=o)"rounddown"==i?alert(Math.floor((today.getTime()-n.getTime())/finalunit*l)/l+" "+s):alert(Math.ceil((today.getTime()-n.getTime())/finalunit*l)/l+" "+s);else{yearspast=today.getFullYear()-e-1,tail=today.getMonth()>t-1||today.getMonth()==t-1&&today.getDate()>=r?1:0,n.setFullYear(today.getFullYear()),pastdate2=new Date(today.getFullYear()-1,t-1,r),tail=1==tail?tail+Math.floor((today.getTime()-n.getTime())/finalunit*l)/l:Math.floor((today.getTime()-pastdate2.getTime())/finalunit*l)/l;var c=yearspast+tail}return c},populateYearBasedOnGender:function(){var e=(new Date).getFullYear(),t=$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"year").val(),r=$("#"+RegistrationLayer.config.formName+" input[name='gender']:checked").val();if("Male"==r)var o=e-21;else if("Female"==r)o=e-20;else o=e-20;for(var a=e-70,i='<option label="'+$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"year option:first").text()+'" value="">'+$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"year option:first").text()+"</option>",n=o;n>a;n--)i+="<option label='"+n+"' value='"+n,i+=n==t?"' selected>":"'>",i+=n+"</option>";$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"year").html(i),""!=$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"day").val()&&""!=$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"month").val()&&RegistrationLayer.validate.dateofbirth()},replacePassword:function(e){var t=document.createElement("input");t.setAttribute("type","password"),t.setAttribute("name",e.getAttribute("name")),t.setAttribute("id",e.getAttribute("id")),e.parentNode.replaceChild(t,e);var r=$(t),o=$(e),a=o.data("events");$.each(a,function(e,t){$.each(t,function(t,o){""==o.namespace&&r.bind(e,o.handler)})}),r.attr("class",o.attr("class")),r.attr("tabindex",2),setTimeout(function(){r.focus()},500)}},country:{residenceChange:function(e){var t=$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"country_code").attr("id");$("#"+t).length&&(arr=$("#"+RegistrationLayer.config.formName+" #"+t).val().split("|"),document.getElementById(t).options[document.getElementById(t).selectedIndex].text=arr[1]+" ("+arr[0]+")",$.browser.msie||(document.getElementById(t).options[document.getElementById(t).selectedIndex].label=arr[1]+" ("+arr[0]+")"),this.countryCodeChange(e))},countryCodeChange:function(e){var t=$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"country_code").attr("id"),r=[];$("#"+t+" option").each(function(){if(r=$(this).val().split("|"),e==r[1])return $("#"+t).val($(this).val()),!1}),document.getElementById(t).options[document.getElementById(t).selectedIndex].text=r[0],$.browser.msie||(document.getElementById(t).options[document.getElementById(t).selectedIndex].label=r[0]),$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"contact_isd").val(r[0]),$("#"+RegistrationLayer.config.prefix+"contact_mobile_std_span").hide(),$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"contact_mobile_number").removeClass("reg_std_mobilenum_input").addClass("reg_mobilenum_input"),"India"==e?($("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"contact_mobile_std").val(aPlaceholders.contact_mobile_std[1]),$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"contact_tel_std").val(aPlaceholders.contact_tel_std[1]),$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"contact_mobile_std").data("placeholder",aPlaceholders.contact_mobile_std[1]),$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"contact_tel_std").data("placeholder",aPlaceholders.contact_tel_std[1])):"Canada"==e||"USA"==e?($("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"contact_mobile_std").val()==aPlaceholders.contact_mobile_std[1]&&($("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"contact_mobile_std").val(aPlaceholders.contact_mobile_std[0]),$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"contact_mobile_std").data("placeholder",aPlaceholders.contact_mobile_std[0])),$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"contact_tel_std").val()==aPlaceholders.contact_tel_std[1]&&($("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"contact_tel_std").val(aPlaceholders.contact_tel_std[0]),$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"contact_tel_std").data("placeholder",aPlaceholders.contact_tel_std[0]))):($("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"contact_mobile_std").val(aPlaceholders.contact_mobile_std[0]),$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"contact_tel_std").val(aPlaceholders.contact_tel_std[0]),$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"contact_mobile_std").data("placeholder",aPlaceholders.contact_mobile_std[0]),$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"contact_tel_std").data("placeholder",aPlaceholders.contact_tel_std[0])),set_max_length(e,RegistrationLayer.config.prefix)}},validate:{email:function(e){if(this.hideError("email"),this.hideError("duplicate_email"),this.errorState.email=!1,oRegX=new RegExp(/^[\w_-]+(\.[\w_-]+)*@[\w_
1-]+(\.[\w_-]+)*\.\w{2,4}$/gi),""==e)this.errorState.email=!0,this.displayError("email","blank");else if(/@shaadi.com/gi.test(e))this.errorState.email=!0,this.displayError("email","@shaadi.com");else if(oRegX.test(e)){objEmail=this,sUrl=NORMALSERVER+"/ajax/check-if-email-exist/email/"+escape(e)+"/duplicate/1/frompage/reg1";var t=!0;chk_form_submit&&(t=!1);var r=function(t){if(t&&0!=t.error){var r=!0;"Duplicate Email"==t.type&&chk_form_submit&&""!=dupEmail&&dupEmail!=e&&(r=!1),""==dupEmail&&"Duplicate Email"==t.type&&(dupEmail=e),r&&(objEmail.errorState.email=!0,objEmail.displayError("email","duplicate_email"))}};$.ajax({async:t,type:"GET",url:sUrl,dataType:"json",success:r,error:function(e){422===e.status&&r(parseEmailCheckResponse(e))}})}else this.errorState.email=!0,this.displayError("email","invalid")},password1:function(e){this.hideError("password1"),this.errorState.password1=!1;""==e||"Password"==e?(this.errorState.password1=!0,this.displayError("password1","blank")):/^[A-Za-z0-9\.\!@#\$\?\,\%\^&*\(\)\_\-\>\<]*$/.test(e)?e.length<4?(this.errorState.password1=!0,this.displayError("password1","length < 4")):e.length>20?(this.errorState.password1=!0,this.displayError("password1","length > 20")):$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"email").val().toLowerCase()==e.toLowerCase()&&(this.errorState.password1=!0,this.displayError("password1","email password same")):(this.errorState.password1=!0,this.displayError("password1","."))},gender:function(e){this.hideError("gender"),this.errorState.gender=!1,e=$("#"+RegistrationLayer.config.formName+" input[name='gender']:checked").val(),postedby=$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"postedby").val(),null!=e&&""!=e||(this.errorState.gender=!0,""==postedby?this.displayError("gender","blank","Default"):this.displayError("gender","blank",postedby)),"Son"!=postedby&&"Brother"!=postedby||"Male"==e||(this.errorState.gender=!0,this.displayError("gender","invali
1d")),"Daughter"!=postedby&&"Sister"!=postedby||"Female"==e||(this.errorState.gender=!0,this.displayError("gender","invalid"))},day:function(e){this.dateofbirth("day")},month:function(e){this.dateofbirth("month")},year:function(e){this.dateofbirth("year")},dateofbirth:function(e){this.hideError("dateofbirth"),this.errorState.dateofbirth=!1;var t=$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"day").val(),r=$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"month").val(),o=$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"year").val(),a=$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"postedby").val(),i=$("#"+RegistrationLayer.config.formName+" input[name='gender']:checked").val();if(""==t&&""==r&&""==o)this.errorState.dateofbirth=!0;else if(""==t)this.errorState.dateofbirth=!0;else if(""==r)this.errorState.dateofbirth=!0;else if(""==o)this.errorState.dateofbirth=!0;else if(""!=t&&""!=r&&""!=o)if(age=RegistrationLayer.helper.calculateAge(o,r,t,"years",0,"rounddown"),4!=r&&6!=r&&9!=r&&11!=r||31!=t)if(2==r){(t>29||29==t&&!(o%4==0&&(o%100!=0||o%400==0)))&&(this.errorState.dateofbirth=!0)}else(("Son"==a||"Brother"==a||"Male"==i)&&age<21||("Daughter"==a||"Sister"==a||"Female"==i)&&age<18)&&(this.errorState.dateofbirth=!0);else this.errorState.dateofbirth=!0;this.errorState.dateofbirth&&(""==a?this.displayError("dateofbirth","blank","Default"):this.displayError("dateofbirth","blank",a))},community:function(e){this.hideError("community"),this.errorState.community=!1;var t=$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"postedby").val();""==e&&(this.errorState.community=!0,t?this.displayError("community","blank",t):this.displayError("community","blank","Default"))},mother_tongue:function(e){this.hideError("mother_tongue"),this.errorState.mother_tongue=!1;var t=$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"postedby").val();""!=e&&0!=e||(this.errorState.mother_tongue=!0,t?this.displayError("mother_tongue","blank",t):this.displayError("mother_tongue","blank","Default"))},countryofresidence:function(e){this.hideError("countryofresidence"),this.errorState.countryofresidence=!1;var t=$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"postedby").val();""!=e&&0!=e||(this.errorState.countryofresidence=!0,t?this.displayError("countryofresidence","blank",t):this.displayError("countryofresidence","blank","Default"))},postedby:function(e){this.hideError("postedby"),this.errorState.postedby=!1,""==e&&(this.errorState.postedby=!0,this.displayError("postedby","blank"))},first_name:function(e){if(this.hideError("first_name"),this.errorState.first_name=!1,""==e||"First Name"==e)this.errorState.first_name=!0,this.displayError("first_name","blank");else{var t=this.name(e),r=$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"last_name").val();if(!1===t.valid&&t.errorCase)this.errorState.first_name=!0,this.displayError("first_name",t.errorCase);else if(""!=r&&"Last Name"!=r){(e+r).length<4&&(this.errorState.first_name=!0,this.errorState.last_name=!0,this.displayError("first_name","length < 4"),this.displayError("last_name","length < 4"))}}!this.errorState.first_name&&this.errorState.last_name&&this.displayError("last_name","blank")},last_name:function(e){if(this.hideError("last_name"),this.errorState.last_name=!1,""==e||"Last Name"==e)this.errorState.last_name=!0,this.displayError("last_name","blank");else{var t=this.name(e),r=$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"first_name").val();if(!1===t.valid&&t.errorCase)this.errorState.last_name=!0,this.displayError("last_name",t.errorCase);else if(""!=r&&"First Name"!=r){(e+r).length<4&&(this.errorState.last_name=!0,this.errorState.first_name=!0,this.displayError("last_name","length < 4"),this.displayError("first_name","length < 4"))}}this.errorState.first_name&&!this.errorState.last_name&&this.displayError("first_name","blank")},name:function(e){var t=new RegExp(/^[a-z \.\']+$/gi),r=new RegExp(/(.)\1{2,}/i),o=new RegExp(/(\.){2,}|(\'){2,}/i),a=!0,i="";return"string"==typeof e&&(e=$.trim(e)),t.test(e)?e.length>20?(a=!1,i="length > 20"):r.test(e)?(a=!1,i="repetitive > 2"):o.test(e)&&(a=!1,i="repetitive > 1"):(a=!1,i="a-z"),{valid:a,errorCase:i}},contact_mobile_std:function(e){this.hideError("contact_mobile_std"),this.errorState.contact_mobile_std=!1,""==e||-1!==$.inArray(e,aPlaceholders.contact_mobile_std)?(this.errorState.contact_mobile_std=!0,this.displayError("contact_mobile_std","blank")):/^\d*$/.test(e)?(e<1||/^0.*$/.test(e))&&(this.errorState.contact_mobile_std=!0,this.displayError("contact_mobile_std","invali
1d")):(this.errorState.contact_mobile_std=!0,this.displayError("contact_mobile_std","NaN"))},contact_mobile_number:function(e){this.hideError("contact_mobile_number"),this.errorState.contact_mobile_number=!1;var t=$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"country_code").val();""==e||"Mobile No."==e?(this.errorState.contact_mobile_number=!0,this.displayError("contact_mobile_number","blank")):/^\d*$/.test(e)?(e<1||/^0.*$/.test(e)||"+91|India"==t&&e.length<10||"+65|Singapore"==t&&e.length<8||e.length<7)&&(this.errorState.contact_mobile_number=!0,this.displayError("contact_mobile_number","invalid")):(this.errorState.contact_mobile_number=!0,this.displayError("contact_mobile_number","blank"))},contact_tel_std:function(e){this.hideError("contact_tel_std"),this.errorState.contact_tel_std=!1,""==e||-1!==$.inArray(e,aPlaceholders.contact_tel_std)?(this.errorState.contact_tel_std=!0,this.displayError("contact_tel_std","blank")):/^\d*$/.test(e)?(e<1||/^0.*$/.test(e))&&(this.errorState.contact_tel_std=!0,this.displayError("contact_tel_std","invalid")):(this.errorState.contact_tel_std=!0,this.displayError("contact_tel_std","NaN"))},contact_tel_number:function(e){this.hideError("contact_tel_number"),this.errorState.contact_tel_number=!1;var t=$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"country_code").val();""==e||"Mobile No."==e?(this.errorState.contact_tel_number=!0,this.displayError("contact_tel_number","blank")):/^\d*$/.test(e)?(e<1||/^0.*$/.test(e)||"+91|India"==t&&e.length<6||"+65|Singapore"==t&&e.length<8||("+1|Canada"==t||"+1|USA"==t)&&e.length<7||e.length<5)&&(this.errorState.contact_tel_number=!0,this.displayError("contact_tel_number","invalid")):(this.errorState.contact_tel_number=!0,this.displayError("contact_tel_number","invalid"))},confirm_policy:function(e){$("#"+RegistrationLayer.config.formName+" #"+RegistrationLayer.config.prefix+"confirm_policy:checked").size()||(alert("Please read and confirm acceptance to the Privacy Policy and Terms and Conditions to proceed with your registration."),this.errorState.confirm_policy=!0)},displayError:function(e,t){void 0===t&&(t="Default"),$("#"+RegistrationLayer.config.prefix+this.errorContainerMap[e]).addClass("common_error"),this.manipulateErrorMsg(e),this.manipulateErrorDiv(e,t),argv=[].slice.call(arguments),this.errorState[e]=t,3===argv.length?($("#errmsg_"+RegistrationLayer.config.prefix+e).html(label[e]+aMessages[e][t][argv[2]]),this.errorStack.push({field:e,errmsg:aMessages[e][t][argv[2]]})):($("#errmsg_"+RegistrationLayer.config.prefix+e).html(label[e]+aMessages[e][t]),this.errorStack.push({field:e,errmsg:aMessages[e][t]}))},setPositions:function(e){var t="";if($("#"+RegistrationLayer.config.prefix+Registration.config.formName).attr("frmregab")){if("none"!=$("#reg_"+RegistrationLayer.config.prefix+e).css("display")){t="reg_layer_left_arrow";var r="reg_",o="reg_tooltip_wrapper"}}else if("none"!=$("#hint_"+RegistrationLayer.config.prefix+e).css("display")){t="arrow_hint";r="hint_",o="hint_wrapper"}else if("none"!=$("#error_"+RegistrationLayer.config.prefix+e).css("display")){t="error_tooltip_arrow";r="error_",o="error_tooltip_wrapper"}if(""!=t){var a=e;if("dateofbirth"==e&&(a="year"),(i=$("#"+RegistrationLayer.config.prefix+a)).is("select")&&"reg_tooltip_wrapper"==o)var i=$("#s2id_"+RegistrationLayer.config.prefix+a);if("mother_tongue"==a&&"hidden"==$("#"+Registration.config.prefix+a).attr("type"))i=$("#"+RegistrationLayer.config.prefix+a+"_select");var n=i.outerHeight(),s=$("."+t).css("height");s=parseInt(s);var l=$("#"+r+RegistrationLayer.config.prefix+e+" ."+o).outerHeight();if("reg_tooltip_wrapper"==o){s=parseInt("20px");var c=Math.floor((l-n)/2)+10}else c=Math.floor((l-n)/2);var f=Math.floor((l-s)/2);c<0?(c=Math.abs(c),$("#"+r+RegistrationLayer.config.prefix+e).css("top",c+"px")):$("#"+r+RegistrationLayer.config.prefix+e).css("top","-"+c+"px"),$("#"+r+RegistrationLayer.config.prefix+e+" ."+t).css("top",f+"px")}},manipulateErrorDiv:function(e,t){if("email"===e)"duplicate_email"==t?($("#"+RegistrationLayer.config.formName+" #"+this.errorClassMap[e]).hide(),$("#"+RegistrationLayer.config.formName+" #"+this.errorClassMap[t]).show()):($("#"+RegistrationLayer.config.formName+" #"+this.errorClassMap.duplicate_email).hide(),$("#"+RegistrationLayer.config.formName+" #"+this.errorClassMap[e]).show());else $("#"+RegistrationLayer.config.formName+" #"+this.errorClassMap[e]).show()},manipulateErrorMsg:function(e){var t=$("#"+this.errorClassMap[e]+" .err_text");switch(e){case"first_name":case"last_name":(this.errorState.first_name&&this.errorState.last_name||!this.errorState.first_name&&this.errorState.last_name||this.errorState.first_name&&!this.errorState.last_name)&&t.html("Please specify valid full name")}},hideError:function(e){$("#"+RegistrationLayer.config.prefix+this.errorContainerMap[e]).removeClass("common_error"),$("#"+RegistrationLayer.config.formName+" #"+this.errorClassMap[e]).hide()},errorContainerMap:{email:"email",duplicate_email:"email",password1:"password1",postedby:"postedby_error",first_name:"first_name",last_name:"last_name",gender:"gender_error",day:"dob_error",month:"dob_error",year:"dob_error",dateofbirth:"dob_error",community:"community_error",mother_tongue:"mother_tongue_error",countryofresidence:"countryofresidence_error",contact_mobile_std:"contact_mobile_std",contact_mobile_number:"contact_mobile_number",contact_tel_std:"contact_tel_std",contact_tel_number:"contact_tel_number"},errorClassMap:{email:"err_text_email",duplicate_email:"err_text_duplicate_email",password1:"err_text_password1",postedby:"err_text_postedby",first_name:"err_name",last_name:"err_name",gender:"err_text_gender",day:"err_text_dateofbirth",month:"err_text_dateofbirth",year:"err_text_dateofbirth",dateofbirth:"err_text_dateofbirth",community:"err_text_community",mother_tongue:"err_text_mother_tongue",countryofresidence:"err_text_countryofresidence",contact_mobile_std:"err_text_phone",contact_mobile_number:"err_text_phone",contact_tel_std:"err_text_phone",contact_tel_number:"err_text_phone"},errorState:{email:!1,password1:!1,postedby:!1,first_name:!1,last_name:!1,gender:!1,day:!1,month:!1,year:!1,mother_tongue:!1,countryofresidence:!1,contact_mobile_std:!1,contact_mobile_number:!1,contact_tel_std:!1,contact_tel_number:!1,confirm_policy:!1,layer_email:!1,layer_password1:!1,layer_postedby:!1,layer_first_name:!1,layer_last_name:!1,layer_gender:!1,layer_day:!1,layer_month:!1,layer_year:!1,layer_mother_tongue:!1,layer_countryofresidence:!1,layer_contact_mobile_std:!1,layer_contact_mobile_number:!1,layer_contact_tel_std:!1,layer_contact_tel_number:!1,layer_confirm_policy:!1},resetErrorState:function(){for(f in this.errorState)this.errorState[f]=!1},errorStack:[]},trackFieldEfficiency:{track:function(e,t){if("Y"==RegistrationLayer.config.formEfficiencyTracking){var r="N";switch(t.attr("name")){case"day":case"month":case"year":RegistrationLayer.validate.errorState.dateofbirth&&(r="Y");break;default:RegistrationLayer.validate.errorState[t.attr("name")]&&(r="Y")}var o="";switch(t.attr("type")){case"checkbox":case"radio":$("#"+RegistrationLayer.config.formName+" input[name='"+t.attr("name")+"']").is(":checked")&&(o=$("#"+RegistrationLayer.config.formName+" input[name="+t.attr("name")+"]:checked").val());break;default:o=t.val()}if(""!=o)switch(t.attr("id")){case"email":"string"!=typeof aPlaceholders.email&&$.isArray(aPlaceholders.email)&&-1!==$.inArray(o,aPlaceholders.email)&&(o="");var a=o.split("@");o=a.length>1?a[0].replace(a[0],this.getReplacingVal(a[0].length)+"@"+a[1]):o.replace(o,this.getReplacingVal(o.length));break;case"password1":"string"!=typeof aPlaceholders.password&&$.isArray(aPlaceholders.password)&&-1!==$.inArray(o,aPlaceholders.password)&&(o=""),o=o.replace(o,this.getReplacingVal(o.length))}$.ajax({url:NORMALSERVER+"/ajax/track-field-efficiency",data:"from_page=reg1&form_name="+encodeURIComponent($("#"+RegistrationLayer.config.formName+" input[name='form_name']").val())+"&field_name="+encodeURIComponent(t.attr("id"))+"&event_name="+encodeURIComponent(e)+"&field_value="+encodeURIComponent(o)+"&is_error_flag="+encodeURIComponent(r),cache:!1,success:function(e){}})}},getReplacingVal:function(e){var t="";for(i=0;i<e;i++)t+="*";return t},bindTrackFieldEfficiency:function(){$("#"+RegistrationLayer.config.formName+" input").each(function(e){if($(this).attr("name")&&$(this).attr("id")&&"counter1"!=$(this).attr("name")&&"ddSelOptText_"!=$(this).attr("id").substring(0,13))switch($(this).attr("type")){case"text":case"checkbox":case"password":case"radio":$(this).focusin(function(){RegistrationLayer.trackFieldEfficiency.track("Focus IN",$(this))}),$(this).blur(function(){RegistrationLayer.trackFieldEfficiency.track("Focus OUT",$(this))})}}),$("#"+RegistrationLayer.config.formName+" select").each(function(e){$(this).focusin(function(){RegistrationLayer.trackFieldEfficiency.track("Focus IN",$(this))}),$(this).blur(function(){RegistrationLayer.trackFieldEfficiency.track("Focus OUT",$(this))})}),$("#"+RegistrationLayer.config.formName+" textarea").each(function(e){$(this).focusin(function(){RegistrationLayer.trackFieldEfficiency.track("Focus IN",$(this))}),$(this).blur(function(){RegistrationLayer.trackFieldEfficiency.track("Focus OUT",$(this))})})}},config:{allowSubmitWithoutValidation:"N",trackErrors:"Y",formEfficiencyTracking:"N",formName:"layer_frm_registration",prefix:"layer_"}
1,init:function(e){$.extend(RegistrationLayer.config,e)}};function regFormInit(e){$('[name="confirm_policy"][type="hidden"]').remove(),e.validate.resetErrorState();var t=new Array;if(t=e.config.nriCountries.split(","),-1!==$.inArray(e.config.ipCountry,t)&&(label.mother_tongue="<b>Community:</b> "),$("#"+e.config.formName).attr("frmregab"))var r="reg_tooltip_wrapper";else r="hint_wrapper";$("#"+e.config.formName+" ."+r).each(function(t,o){var a=$(o).parent().parent().attr("id");if($(this).hasClass("reg_tooltip_wrapper"))var i=a.replace("reg_","");else i=a.replace("hint_","");if("dateofbirth"===i||i===e.config.prefix+"dateofbirth")var n=[e.config.prefix+"day",e.config.prefix+"month",e.config.prefix+"year"];else n=[i];$.each(n,function(t,o){if("gender"==o||o==e.config.prefix+"gender")var n="#"+e.config.formName+" input[name=gender]";else n="#"+e.config.formName+" #"+o;if("undefined"!=typeof jq1_11&&$(n).is("select"))var s=jq1_11(n);else s=$(n);i=s.attr("name"),"Y"==e.config.select2&&s.is("select")?(s.on("select2-focus",function(t){if("day"!=i&&"month"!=i&&"year"!=i||(i="dateofbirth"),e.validate.errorState[i]){if(""==$("#errmsg_"+e.config.prefix+i).html())if("string"==typeof aMessages[i].blank)var o=aMessages[i].blank;else o=aMessages[i].blank.Default;if((n=$("#"+e.config.formName+" #"+e.config.prefix+"postedby").val())&&null!=aMessages[i][e.validate.errorState[i]][n])o=aMessages[i][e.validate.errorState[i]][n];o&&$("#errmsg_"+e.config.prefix+i).html(label[i]+o),$("#error_"+e.config.prefix+i).show(),e.validate.setPositions(i)}else{var n,s=tooltips[i].Default;if((n=$("#"+e.config.formName+" #"+e.config.prefix+"postedby").val())&&null!=tooltips[i][n])s=tooltips[i][n];"reg_tooltip_wrapper"==r?$("#"+a+" div div.reg_tooltip_wrapper").html('<div class="reg_layer_left_arrow"></div>'+label[i]+s):$("#"+a+" div div.hint_wrapper").html(label[i]+s),$("#"+a).show(),e.validate.setPositions(i)}}),s.on("select2-blur",function(t){if(e.validate.errorState[i]){if($("#"+e.config.formName).attr("frmregab"))var r="reg_";else r="error_";"email"==i?setTimeout(function(){$("#"+r+e.config.prefix+i).hide()},250):$("#"+r+RegistrationLayer.config.prefix+i).hide()}else $("#"+a).hide()})):(s.focus(function(){if("day"!=i&&"month"!=i&&"year"!=i||(i="dateofbirth"),e.validate.errorState[i]){if(""==$("#errmsg_"+e.config.prefix+i).html())if("string"==typeof aMessages[i].blank)var t=aMessages[i].blank;else t=aMessages[i].blank.Default;if((o=$("#"+e.config.formName+" #"+e.config.prefix+"postedby").val())&&null!=aMessages[i][e.validate.errorState[i]][o])t=aMessages[i][e.validate.errorState[i]][o];t&&$("#errmsg_"+e.config.prefix+i).html(label[i]+t),$("#error_"+e.config.prefix+i).show(),e.validate.setPositions(i)}else{var o,n=tooltips[i].Default;if((o=$("#"+e.config.formName+" #"+e.config.prefix+"postedby").val())&&null!=tooltips[i][o])n=tooltips[i][o];"reg_tooltip_wrapper"==r?$("#"+a+" div div.reg_tooltip_wrapper").html('<div class="reg_layer_left_arrow"></div>'+label[i]+n):$("#"+a+" div div.hint_wrapper").html(label[i]+n),$("#"+a).show(),e.validate.setPositions(i)}}),s.blur(function(){e.validate.errorState[i]?"email"==i?setTimeout(function(){$("#error_"+e.config.prefix+i).hide()},250):$("#error_"+e.config.prefix+i).hide():$("#"+a).hide()}))})}),$(".disabled-detector").size()>0&&($(".disabled-detector").click(function(t){t.stopPropagation(),$("#"+e.config.formName).attr("frmregab")?($("#reg_"+e.config.prefix+"mother_tongue").find(".reg_tooltip_wrapper").html('<div class="reg_layer_left_arrow"></div>'+label.mother_tongue+"To create a profile with mother tongue other than "+$("#mother_tongue").val()+' visit <a href="'+SHAADI_HTTP_URL+'">Shaadi.com</a>').show(),$("#reg_"+e.config.prefix+"mother_tongue").show()):($("#errmsg_"+e.config.prefix+"mother_tongue").html(label.mother_tongue+"To create a profile with mother tongue other than "+$("#mother_tongue").val()+' visit <a href="'+SHAADI_HTTP_URL+'">Shaadi.com</a>').show(),$("#error_"+e.config.prefix+"mother_tongue").show()),e.validate.setPositions("mother_tongue")}),$("html").click(function(){$("#error_"+e.config.prefix+"mother_tongue").hide()}
1)),$(".placeholder").each(function(){var e=$(this),t=e.attr("name");"string"!=typeof aPlaceholders[t]&&$.isArray(aPlaceholders[t])&&null==e.data("placeholder")&&e.data("placeholder",aPlaceholders[t][0]),e.focus(function(){var e=$(this);"string"!=typeof aPlaceholders[t]&&$.isArray(aPlaceholders[t])&&(-1!==$.inArray(e.val(),aPlaceholders[t])&&e.val(""),e.removeClass("reg_form_placeholder"))}).blur(function(){""==e.val()&&(e.val(e.data("placeholder")),e.addClass("reg_form_placeholder"))}),"string"!=typeof aPlaceholders[t]&&$.isArray(aPlaceholders[t])&&-1!==$.inArray(e.val(),aPlaceholders[t])&&e.addClass("reg_form_placeholder")}),$("#"+e.config.prefix+"contact_type_tel").click(function(){e.validate.errorState[e.config.prefix+"contact_mobile_std"]=!1,e.validate.errorState[e.config.prefix+"contact_mobile_number"]=!1,$("#"+e.config.prefix+"contact_mobile_wrap_div2").hide(),$("#"+e.config.prefix+"contact_tele_wrap_div2").show(),$(this).hide(),$("#"+e.config.prefix+"contact_type_mobile").show(),$("#"+e.config.prefix+"contact_mobile_std").val($("#"+e.config.prefix+"contact_mobile_std").data("placeholder")),$("#"+e.config.prefix+"contact_mobile_number").val($("#"+e.config.prefix+"contact_mobile_number").data("placeholder")),e.validate.hideError("contact_mobile_std"),e.validate.hideError("contact_mobile_number"),e.validate.hideError("contact_tel_std"),e.validate.hideError("contact_tel_number")}),$("#"+e.config.prefix+"contact_type_mobile").click(function(){e.validate.errorState[e.config.prefix+"contact_tel_std"]=!1,e.validate.errorState[e.config.prefix+"contact_tel_number"]=!1,$("#"+e.config.prefix+"contact_mobile_wrap_div2").show(),$("#"+e.config.prefix+"contact_tele_wrap_div2").hide(),$(this).hide(),$("#"+e.config.prefix+"contact_type_tel").show(),$("#"+e.config.prefix+"contact_tel_std").val($("#"+e.config.prefix+"contact_tel_std").data("placeholder")),$("#"+e.config.prefix+"contact_tel_number").val($("#"+e.config.prefix+"contact_tel_number").data("placeholder")),e.validate.hideError("contact_mobile_std"),e.validate.hideError("contact_mobile_number"),e.validate.hideError("contact_tel_std"),e.validate.hideError("contact_tel_number")}),$(".validate").each(function(t,r){$(this).blur(function(){var t=$(this),r=t.attr("name"),o=t.val();"confirm_policy"!=r&&("Y"==e.config.select2&&t.is("select")&&"layer_"!=e.config.prefix||e.validate[r](o))}),$(this).change(function(){var t=$(this),r=t.attr("name"),o=t.val();"email"===r&&(o=o.trim(),t.val(o)),"day"!=r&&"month"!=r&&"year"!=r||(r="dateofbirth"),$("#error_"+e.config.prefix+r).css("display","none"),$("#hint_"+e.config.prefix+r).css("display","none"),$("#reg_"+e.config.prefix+r).css("display","none"),"dateofbirth"!=r&&e.validate[r](o)})}),$(function(){var t,r;$(document).mousedown(function(e){t=$(e.target)}),$(document).mouseup(function(e){t=null}),$("#"+e.config.prefix+"day, #"+e.config.prefix+"month").blur(function(e){r=$(e.target)}),$("#"+e.config.prefix+"year").blur(function(e){r=null}),$("#"+e.config.prefix+"day, #"+e.config.prefix+"month, #"+e.config.prefix+"year").blur(function(o){if(t){if("option"==t.attr("tagName").toLowerCase())var a=t.parent().attr("id").toLowerCase();else a=t.attr("id").toLowerCase();a!=e.config.prefix+"day"&&a!=e.config.prefix+"month"&&a!=e.config.prefix+"year"||(e.validate.hideError("dateofbirth"),e.validate.errorState.dateofbirth=!1)}else r&&(e.validate.hideError("dateofbirth"),e.validate.errorState.dateofbirth=!1)})}),"Y"==e.config.select2&&$("#"+e.config.formName+" select").each(function(t){"true"==$("#"+e.config.formName).attr("frmregab")?(jq1_11(this).select2({minimumResultsForSearch:-1}).on("change",function(){$(this).trigger("change")}),"undefined"!=typeof PLATFORM&&"mobile"==PLATFORM&&$(".reg_layer_frm_wrap .select2-container input").remove(),jq1_11(this).hasClass("val
1idate")&&jq1_11(this).on("select2-blur",function(t){e.validate[$(this).attr("name")]($(this).val())})):($(this).select2(),$(this).hasClass("validate")&&$(this).on("select2-blur",function(t){e.validate[$(this).attr("name")]($(this).val())})),aSelect2Elements.push($(this).attr("id"))}),$("#"+e.config.formName+" input[name='gender']").change(function(){e.validate.gender($(this).val()),$("#error_"+e.config.prefix+"gender").hide()}),$.each([e.config.prefix+"postedby",e.config.prefix+"mother_tongue",e.config.prefix+"countryofresidence"],function(t,r){var o="#"+r;$(o).change(function(){if(-1!=$(o+" option:selected").text().indexOf("Show More")){var t=$(o+" option").first().text();return $("#loading_"+r).length>0&&($(o+"_error").hide(),$("#loading_"+r).html('<img src="'+IMG_HTTP_URL+'/imgs/profiles/ver2/loading.gif" height="15" width="15" border="0" alt="Loading" title="Loading">')),setTimeout(function(){"undefined"!=typeof jq1_11?(jq1_11(o).html($(o).data("allOptions")),jq1_11(o).select2("val",$(o+" option:eq(0)").val())):($(o).html($(o).data("allOptions")),$(o+" option").first().text(t)),$("#loading_"+r).html(""),$(o+"_error").show()},.1),!1}"countryofresidence"!=r&&"layer_countryofresidence"!=r||e.country.residenceChange($("#"+e.config.formName+" #"+e.config.prefix+"countryofresidence option:selected").text())})}),$("#"+e.config.formName+" #"+e.config.prefix+"country_code").attr("data",$("#"+e.config.formName+" #"+e.config.prefix+"country_code").val()),$("#"+e.config.formName+" #"+e.config.prefix+"country_code").blur(function(){$(this).change()}),$("#"+e.config.formName+" #"+e.config.prefix+"country_code").change(function(){var t=$("#"+e.config.formName+" #"+e.config.prefix+"country_code option:selected").val().split("|")[1];e.country.countryCodeChange(t),$.browser.msie&&$.browser.version<9&&$(this).addClass("reg_country_code").removeClass("reg_country_code_open")}),$("#"+e.config.formName+" #"+e.config.prefix+"country_code").mousedown(function(){arr=$("#"+$(this).attr("id")+" option:selected").attr("value").split("|"),$.browser.msie&&$.browser.version<9&&$(this).addClass("reg_country_code_open").removeClass("reg_country_code"),$("#"+$(this).attr("id")).length>0&&(document.getElementById($(this).attr("id")).options[document.getElementById($(this).attr("id")).selectedIndex].text=arr[1]+" ("+arr[0]+")",$.browser.msie||(document.getElementById($(this).attr("id")).options[document.getElementById($(this).attr("id")).selectedIndex].label=arr[1]+" ("+arr[0]+")"))}),$("#"+e.config.formName+" #"+e.config.prefix+"country_code").length&&$("#"+e.config.formName+" #"+e.config.prefix+"country_code").change(),$("#centralizedBtnSubmitWrapper #btnSubmit").unbind("click").click(function(t){"undefined"!=typeof trackRegOne&&($("#reg2fields").is(":visible")?trackRegOne("reg_12_submit_clicked"):trackRegOne("reg_11_next_clicked")),$("#"+e.config.formName).submit()}),$("#"+e.config.formName).unbind("submit").submit(function(){e.validate.resetErrorState(),chk_form_submit=!0;var t=!0;for(f in e.validate.errorStack=[],$("#"+e.config.formName+" .validate:visible").each(function(t,r){var o=$(this),a=o.attr("name"),i=o.val();o.is("div")||e.validate[a](i)}),e.validate.errorState)e.validate.errorState[f]&&(t=!1);if("Y"==e.config.trackErrors){var r="";if($(e.validate.errorStack).each(function(e,t){r+="\x3c!-- "+t.field+"--\x3e"+t.errmsg}),!t)return $.ajax({type:"GET",url:NORMALSERVER+"/registration/ajax/track-errors",dataType:"json",data:{errors:r},success:function(e){}}),"Y"==e.config.allowSubmitWithoutValidation&&!e.validate.errorState[e.config.prefix+"confirm_policy"]||(chk_form_submit=!1,!1)}else if("Y"==e.config.allowSubmitWithoutValidation)return!e.validate.errorState[e.config.prefix+"confirm_policy"]||(chk_form_submit=!1,!1);if("true"==$("#"+e.config.formName).attr("frmregab")){$("#reg1fields").hide(),$("#regpageabheading").html("<span class='reg_msg1'>Tell us more about yourself</span>"),$("#layer_first_name").addClass("f_name"),$("#layer_last_name").addClass("l_name"),$("#"+e.config.formName).attr("frmregab","false");var o="Male"==$("#"+e.config.formName+" input[name='gender']:checked").val()?"His":"Her",a="Male"==$("#"+e.config.formName+" input[name='gender']:checked").val()?"him":"her";return"Self"!=$("#"+e.config.formName+" #layer_postedby").val()&&($("#"+e.config.formName+" .herhim").each(function(){$(this).html(o+" "+$(this).html())}),$("#regpageabheading").html("<span class='reg_msg1'>Tell us more about "+a+"<span>")),$("#reg2fields").show(),"undefined"!=typeof trackRegOne&&trackRegOne("reg_12_displayed"),"undefined"!=typeof fbq&&fbq("track","Reg1.1"),!1}}),$("#"+e.config.formName+" input[name='gender']").click(e.helper.populateYearBasedOnGender),$("#"+e.config.prefix+"postedby").change(function(){$(this).find('option[text="Select"]').attr("disabled",!0);var t=$(this).val(),r=$("#"+e.config.formName+" #"+e.config.prefix+"gender-Male"),o=$("#"+e.config.formName+" #"+e.config.prefix+"gender-Female");
1if(r.parent().hasClass("deactivate")&&r.parent().removeClass("deactivate"),o.parent().hasClass("deactivate")&&o.parent().removeClass("deactivate"),"Self"==t||"Friend"==t||"Relative"==t||""==t){o.removeAttr("disabled",""),r.removeAttr("disabled","");var a=$(this).attr("data-prev-value");a&&-1===$.inArray(a,["Self","Friend","Relative"])&&(r.removeAttr("checked"),o.removeAttr("checked")),"undefined"!=typeof GENDER_ON_SEARCH&&""!=GENDER_ON_SEARCH&&("Female"==GENDER_ON_SEARCH?o.attr("checked","checked"):r.attr("checked","checked"))}else"Son"==t||"Brother"==t?(r.removeAttr("disabled"),o.attr("disabled","disabled"),r.attr("checked","checked"),o.parent().addClass("deactivate")):"Daughter"!=t&&"Sister"!=t||(o.removeAttr("disabled"),r.attr("disabled","disabled"),o.attr("checked","checked"),r.parent().addClass("deactivate"));e.helper.populateYearBasedOnGender(),"Son"!=t&&"Brother"!=t&&"Daughter"!=t&&"Sister"!=t||e.validate.gender(),$(this).attr("data-prev-value",this.value)}),$("#"+e.config.prefix+"password1").live("keyup",function(){var e=$
1(this);""!=e.val()&&($("#pwd_typed").text(e.val()),$("#display_pwd").show())}),$("#"+e.config.prefix+"password1").live("blur",function(){$("#display_pwd").hide()}),$("#"+e.config.prefix+"password1.placeholder").bind("focus.replace",function(){e.helper.replacePassword($("#"+e.config.prefix+"password1.placeholder")[0]),$("#"+e.config.prefix+"password1.placeholder")[0].value=""}),$(".numonly").keydown(function(e){-1!==$.inArray(e.keyCode,[46,8,9,27,13,190])||65==e.keyCode&&!0===e.ctrlKey||e.keyCode>=35&&e.keyCode<=39||(e.shiftKey||(e.keyCode<48||e.keyCode>57)&&(e.keyCode<96||e.keyCode>105))&&e.preventDefault()}),$(".numonly").keyup(function(e){0===parseInt(this.value)&&(this.value="")}),$(".alphaonly").bind("blur",function(e,t){$(this).val($(this).val().replace(/[^a-zA-Z\s \']/g,""))}),$(".alphaonly").bind("keyup",function(e,t){e.keyCode>=65&&e.keyCode<=90||-1==$.inArray(e.keyCode,[37,8,46,39,16])&&$(this).val($(this).val().replace(/[^a-zA-Z\s \']/g,""))}),e.trackFieldEfficiency.bindTrackFieldEfficiency()}function set_max_length(e,t){int_max_length_number="10",arr_country_number=Array(),arr_country_number.China="11",arr_country_number.Germany="11",arr_country_number.USA="10",arr_country_number.Canada="10",arr_country_number.India="10",arr_country_number["United Kingdom"]="10",arr_country_number.Malaysia="11",arr_country_number.Indonesia="12",arr_country_number.Austria="12",arr_country_number.Brazil="11",""!=e&&arr_country_number[e]&&(int_max_length_number=arr_country_number[e]),$("#"+t+"contact_mobile_number").attr("maxlength",int_max_length_number),$("#"+t+"country_code").attr("data")!=$("#"+t+"country_code").val()&&$("#"+t+"contact_mobile_number").attr("value","Mobile No."),$("#"+t+"country_code").attr("data",$("#"+t+"country_code").val())}function changeMotherTongue(e){e&&($("#layer_mother_tongue").length?defaultText=$("select#layer_mother_tongue option:first-child").text():defaultText=$("select#mother_tongue option:first-child").text(),$.ajax({type:"POST",url:NORMALSERVER+"/registration/ajax/get-nri-plus-mother-tongue",data:{religion:e,default_option:defaultText},success:function(e){$("#layer_mother_tongue").length?$("#layer_mother_tongue").html(e):$("#mother_tongue").html(e)}}))}function forgotPasswordSubmit(){var e=$("#frmforgotpassword"),t=e.find("#forgotpasswordemail").val(),r=e.attr("frompage");return e.find("#err_text_forgotpasswordemail").hide(),oRegX=new RegExp(/^[\w_-]+(\.[\w_-]+)*@[\w_-]+(\.[\w_-]+)*\.\w{2,4}$/gi),""!=t&&oRegX.test(t)?$.ajax({type:"POST",url:NORMALSERVER+"/ajax/forgot-password-submit",data:{email:t},dataType:"json",success:function(o){"member_not_found"==o.messageCode||"invalid_email"==o.messageCode?showForgotPasswordError(e):"deactivated"==o.messageCode?($("#reg_layer_forgot_password_box").hide(),"undefined"!=typeof PLATFORM&&"mobile"!=PLATFORM&&($("#modalContent_login,#login_box").width("750px"),$("#modalContent_login,#login_box").height("530px"),"homepage"!=r&&$("#modalContent_login #login_box").addClass("alert_main_wrap"),XYpos=getXY("modalContent_login"),topval=XYpos[1],leftval=XYpos[0],$(".blockPage").css({top:topval+"px",left:leftval+"px"})),"homepage"!=r&&$("#modalContent_login #login_box").prepend('<div class="reg_layer_close" onclick="window.location.href = \''+NORMALSERVER+"'\"></div>"),$("#reg_layer_deactivated_box").show()):($("#reg_layer_forgot_password_box").hide(),$("#reg_layer_thankyou_box").find("#sentemailid").html(t),$("#reg_layer_thankyou_box").show("fast",function(){setTimeout(function(){$("#reg_layer_thankyou_box").hide(),$("#reg_layer_login_box").show()},5e3)}))}}):showForgotPasswordError(e),!1}function showForgotPasswordError(e){e.find("#info_email").hide(),e.find("#forgotpasswordemail").addClass("common_error"),e.find("#err_text_forgotpasswordemail .err_text").html("Please enter the email that you are registered with."),e.find("#err_text_forgotpasswordemail").show()}$("#errmsg_email").live("mouseenter",function(){$("#hint_email").hide(),$("#errmsg_email").live("blur","focusout",function(){return!1})}),$("#errmsg_email").live("mouseleave",function(){$("#errmsg_email").live("blur","focusout",function(){return!0})}),$("#errmsg_email").find("a[href*='/registration/user/login']").live("mousedown",function(){var e=$
1(this).attr("href");location.href=e});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.