PageSourceSearch

https://www.familyestatemanager.com/us/site.js?vs=1.2

js familyestatemanager.com collected 2026-10-04 06:33:42 UTC 93,640 bytes, 2,485 lines download raw bytes

1$(function () {
2    $('textarea').keypress(function () {
3        if (this.value != "") {
4            this.style.color = "#3b3b3b";
5        }
6        else {
7            this.style.color = "#b9baba";
8        }
9    });
10
11    $('textarea').keyup(function () {
12        if (this.value != "") {
13            this.style.color = "#3b3b3b";
14        }
15        else {
16            this.style.color = "#b9baba";
17        }
18    });
19
20    $('input[id$=txt_email]').focus(function () {
21        document.getElementById("div_confirmemail").style.display = "block";
22    });
23
24    $('input[type=text]').keypress(function () {
25        if (this.value != "") {
26            this.style.color = "#3b3b3b";
27        }
28        else {
29            this.style.color = "#b9baba";
30        }
31    });
32
33    $('input[type=password]').keypress(function () {
34        if (this.value != "") {
35            this.style.color = "#3b3b3b";
36        }
37        else {
38            this.style.color = "#b9baba";
39        }
40    });
41
42    $('input[type=text]').keyup(function () {
43        if (this.value != "") {
44            this.style.color = "#3b3b3b";
45        }
46        else {
47            this.style.color = "#b9baba";
48        }
49    });
50
51    $('input[type=password]').keyup(function () {
52        if (this.value != "") {
53            this.style.color = "#3b3b3b";
54        }
55        else {
56            this.style.color = "#b9baba";
57        }
58    });
59
60    $('input[id$=btn_submitkey]').click(function () {
61        var keyus = $('input[id$=txt_uniquekeyentr]');
62        if (keyus.val() == "") {
63            keyus.style.color = "red";
64            keyus.focus();
65        }
66        else {
67            check_validkey();
68        }
69    });
70
71    // create user  in user panel
72
73    $('input[id$=btn_submituser]').click(function () {
74        var j = 0;
75        for (var i = 4; i > 0; i--) {
76
77            var boxvalue = document.getElementsByName("box" + i)[0].value;
78            var box = document.getElementsByName("box" + i);
79
80            if (boxvalue == "") {
81                box[0].style.color = "red";
82                box[0].focus();
83                j = 1;
84            }
85        }
86        if (j == 0) {
87            create_user();
88        }
89    });
90});
91
92function isNumberKey(evt) {
93    var charCode = (evt.which) ? evt.which : evt.keyCode;
94    if (charCode != 46 && charCode > 31 && (charCode < 48 || charCode > 57))
95        return false;
96
97    return true;
98}
99
100function validation() {
101    var s = document.getElementById("txt_Cdate").value;
102    if (isDate(s) == false) {
103        document.getElementById("txt_Cdate").value = '';      
104    } else {
105        document.getElementById("txt_Cdate").value = s;
106    }
107}
108
109function isDate(txtDate) {
110    //debugger;
111    var currVal = txtDate;
112    if (currVal == '')
113        return false;
114    var rxDatePattern = /^(\d{1,2})(\/|-)(\d{1,2})(\/|-)(\d{4})$/;
115    var dtArray = currVal.match(rxDatePattern);
116
117    if (dtArray == null)
118        return false;
119
120    dtMonth = dtArray[1];
121    dtDay = dtArray[3];
122    dtYear = dtArray[5];
123
124    if (dtMonth < 1 || dtMonth > 12)
125        return false;
126    else if (dtDay < 1 || dtDay > 31)
127        return false;
128    else if ((dtMonth == 4 || dtMonth == 6 || dtMonth == 9 || dtMonth == 11) && dtDay == 31)
129        return false;
130    else if (dtMonth == 2) {
131        var isleap = (dtYear % 4 == 0 && (dtYear % 100 != 0 || dtYear % 400 == 0));
132        if (dtDay > 29 || (dtDay == 29 && !isleap))
133            return false;
134    }
135    return true;
136}
137
138
139function forphonenumber(txb) {
140    txb.value = txb.value.replace(/[^\0-9.() ]/ig, "");
141}
142
143function Openloadingpopup() {
144    $('.loading').show();
145    $('.loadingoverlay').show();
146    return false;
147}
148
149function hideloadingpopup() {
150    $('.loading').hide();
151    $('.loadingoverlay').hide();
152    return false;
153}
154
155$(function () {
156    urlBase = location.href.substring();
157    var index = urlBase.lastIndexOf("/") + 1;
158    var filenameWithExtension = urlBase.substr(index);
159    var filename = filenameWithExtension.split(".")[0]; // <-- added this line
160    $("input[id$=txt_userid]").attr("disabled", "disabled");
161
162    if (filename == "welcome" || filename == "Welcome") {
163        BindListPage();
164    }
165    if (filename == "FillForm") {
166        RedirectForm();
167    }
168    if (filename == "DA_OthdetailList") {
169        othsList();
170    }
171
172    // login btn function of user login
173    $('#btn_login').click(function () {
174        getlogin();
175    });
176	$('#btn_loginLKD').click(function () {
177        GetLoginLKD();
178    });
179    $('#btn_signup_user').click(function () {
180        //debugger;
181        getsignup();
182    });
183
184    $('#btn_signup_user1').click(function () {
185        getsignup11();
186    });
187	function GetLoginLKD() {
188    var l = 0;
189    for (var k = 2; k > 0; k--) {
190        var boxvalue = document.getElementsByName("loginbox" + k)[0].value;
191        var box = document.getElementsByName("loginbox" + k);
192
193        if (boxvalue == "") {
194            box[0].style.color = "red";
195            box[0].focus();
196            l = 1;
197        }
198    }
199    if (l == 0) {
200        LoginUserLKD();
201    }
202}
203
204// Login User for LKD - Ankit 28-07-2021
205function LoginUserLKD() {
206    var useridl = $('input[id$=txt_loginemail]').val();
207    var passwrdl = $('input[id$=txt_loginpasswrd]').val();
208    $.ajax({
209        type: "POST",
210        url: "site.asmx/LoginUserLKD",
211        data: "{'useridl':'" + $.trim(useridl) + "','passwrdl':'" + $.trim(passwrdl) + "'}",
212
213        contentType: "application/json; charset=utf-8",
214        dataType: "json",
215        async: false,
216        success: function (response) {
217            debugger;
218            var alldata = $.parseJSON(response.d);
219            $.each(alldata, function (index, ad) {
220
221                if (ad.result == "0") {
222                    $("#div_commonpopup").html("Invalid email, account id or password. Please enter your login details correctly and try again.<br><br>Don't have login details? <a style='cursor:pointer;color:#519eb1;' href='https://www.familyestatemanager.com/register'>Register your activation code</a> to get started today.");
223                    Opencommonpopup();
224                }
225
226                else if (ad.result == "-1") {
227                    $("#div_commonpopup").html("Please make sure that the account has been verified before trying again.");
228                    Opencommonpopup();
229                }
230                else {
231                    if (ad.fullaccess == "3") {
232                        //    window.location.href = "LifeKeyDocumentLanding.aspx";
233                        //   window.location.href = "lkdabout.aspx";
234                        window.location.href = "lifes-key-documents-about.aspx";
235                    }
236					  else if (ad.fullaccess == "5") {
237      window.location.href = "Planning_Step4-LKD.aspx";
238  }
239                    else {
240                        $("#div_commonpopup").html("Please make sure that the account is a Life Key Document Account.");
241                        Opencommonpopup();
242                    }
243                }
244            });
245        }
246    });
247}
248
249    // update user profile function 
250    $('input[id$=btn_usersubmit]').click(function () {
251        //debugger;
252        var n = 0;
253        var address = document.getElementById("ContentPlaceHolder1_txt_useraddress");
254        if (address.value == "") {
255            address.style.color = "red";
256            address.focus();
257            n = 1;
258        }
259        for (var m = 6; m > 0; m--) {
260
261            var boxvalue = document.getElementsByName("ubox" + m)[0].value;
262            var box = document.getElementsByName("ubox" + m);
263
264            if (boxvalue == "") {
265                box[0].style.color = "red";
266                box[0].focus();
267                n = 1;
268            }
269        }
270        if (n == 0) {
271            Update_userProfile();
272        }
273    });
274	
275    // create DA Profile function
276    $('input[id$=btn_dasubmit]').click(function () {
277        //debugger;
278        var nn = 0;
279       
280        for (var mm = 5; mm > 0; mm--) {
281            var boxvalue = document.getElementsByName("dabox" + mm)[0].value;
282            var box = document.getElementsByName("dabox" + mm);
283
284            if (boxvalue == "") {
285
286                box[0].style.color = "red";
287                box[0].focus();
288                nn = 1;
289            }
290        }
291
292        if (nn == 0) {
293            var btnval = $('input[id$=btn_dasubmit]').val();
294            if (btnval == "Submit") {
295                createDAProfile();
296            }
297            else {
298                UpdateDAProfile();
299            }
300        }
301    });
302
303    // check valid date from date of issuing in DMV details
304    $('#txtValidityDatedl').change(function () {
305        var issueDt = $('#txtIssueDatedl').val();
306        var ValidDt = $('#txtValidityDatedl').val();
307        if (issueDt == ValidDt) {
308            $("#div_commonpopup").html("Issued date & Validity should be different");
309            Opencommonpopup();
310            $('#txtValidityDatedl').val('');
311            return false;
312        }
313    });
314    // check last work date from date of joining in employees details
315    $('#txtlastwrkingDt').change(function () {
316        var joingDate = new Date($('#txt_estdt').val());
317        var lastDate = new Date($('#txtlastwrkingDt').val());
318
319        if (lastDate < joingDate) {
320            // Do something
321            $("#div_commonpopup").html("Last Date should be greater than joining date");
322            Opencommonpopup();
323            $('#txtlastwrkingDt').val('')
324            return false;
325        }
326    });
327    // bank details of da function
328
329    $('input[id$=btn_DA_Bank_submit]').click(function () {
330        //debugger;
331        var nn1 = 0;
332        var address = document.getElementById("ContentPlaceHolder1_txt_DA_Bank_address");
333        if (address.value == "") {
334            address.style.color = "red";
335            address.focus();
336            nn1 = 1;
337        }
338        for (var mm1 = 5; mm1 > 0; mm1--) {
339
340            var boxvalue = document.getElementsByName("Bbox" + mm1)[0].value;
341            var box = document.getElementsByName("Bbox" + mm1);
342
343            if (boxvalue == "") {
344                box[0].style.color = "red";
345                box[0].focus();
346
347                nn1 = 1;
348            }
349        }
350
351        if (nn1 == 0) {
352            var btnval = $('input[id$=btn_DA_Bank_submit]').val();
353            if (btnval == "Submit") {
354                FillDA_BankDetails();
355            }
356            else {
357                UpdateBankDetails();
358            }
359        }
360    });
361
362    $("input[id$=txt_da_dob_yy]").keydown(function (e) {
363        // Allow: backspace, delete, tab, escape, enter and .
364        if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110, 190]) !== -1 ||
365            // Allow: Ctrl+A
366            (e.keyCode == 65 && e.ctrlKey === true) ||
367            // Allow: home, end, left, right
368            (e.keyCode >= 35 && e.keyCode <= 39)) {
369            // let it happen, don't do anything
370            return;
371        }
372        // Ensure that it is a number and stop the keypress
373        if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) {
374            e.preventDefault();
375        }
376    });
377
378    $("input[id$=txt_da_dod_yy]").keydown(function (e) {
379        // Allow: backspace, delete, tab, escape, enter and .
380        if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110, 190]) !== -1 ||
381            // Allow: Ctrl+A
382            (e.keyCode == 65 && e.ctrlKey === true) ||
383            // Allow: home, end, left, right
384            (e.keyCode >= 35 && e.keyCode <= 39)) {
385            // let it happen, don't do anything
386            return;
387        }
388        // Ensure that it is a number and stop the keypress
389        if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) {
390            e.preventDefault();
391        }
392    });
393
394    $("input[id$=txt_usercontact]").keydown(function (e) {
395        // Allow: backspace, delete, tab, escape, enter and .
396        if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110, 190]) !== -1 ||
397            // Allow: Ctrl+A
398            (e.keyCode == 65 && e.ctrlKey === true) ||
399            // Allow: home, end, left, right
400            (e.keyCode >= 35 && e.keyCode <= 39)) {
401            // let it happen, don't do anything
402            return;
403        }
404        // Ensure that it is a number and stop the keypress
405        if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) {
406            e.preventDefault();
407        }
408    });
409
410    $("input[id$=btn_Gopage]").click(function () {
411        var index = $('input[id$=hdn_indexcode]').val();
412        var pcode = $("span[id$=code_id" + parseInt(index) + "]").text();
413        var usrid = $("input[id$=hdn_usr_id]").val();
414        var pc = $.trim(pcode);
415
416        $.ajax({
417            type: "POST",
418            url: "site.asmx/create_pcodeSession",
419            data: "pcode=" + pcode + "&usrid=" + usrid,
420            dataType: "text",
421            success: function (msg) {
422
423                if (pc != "CP" && pc != "DP" && pc != "BD" && pc != "CC" && pc != "DMV" && pc != "ER" && pc != "LI" && pc != "IFI" && pc != "MC" && pc != "TU" && pc != "EX" && pc != "EC") {
424                    window.location.replace("PrintLetter.aspx");
425                }
426                else {
427                    window.location.replace("FillForm.aspx");
428                }
429            }
430        });
431    });
432
433    // CC details of da function
434    $('input[id$=btn_DA_CC_submit]').click(function () {
435        //debugger;
436        var nn1 = 0;
437
438        var address = document.getElementById("ContentPlaceHolder1_txt_DA_CC_address");
439        if (address.value == "") {
440            address.style.color = "red";
441            address.focus();
442            nn1 = 1;
443        }
444        for (var mm1 = 4; mm1 > 0; mm1--) {
445
446            var boxvalue = document.getElementsByName("ccbox" + mm1)[0].value;
447            var box = document.getElementsByName("ccbox" + mm1);
448
449            if (boxvalue == "") {
450                box[0].style.color = "red";
451                box[0].focus();
452                nn1 = 1;
453            }
454        }
455        if (nn1 == 0) {
456            var btnval = $('input[id$=btn_DA_CC_submit]').val();
457            if (btnval == "Submit") {
458                FillDA_CreditCard();
459            }
460            else {
461                UpdateCreditCardDetails();
462            }
463        }
464    });
465
466    //*****************save/update details of DMV**************
467
468    $('input[id$=btn_dmv]').click(function () {
469        //debugger;
470        var nn11 = 0;
471
472        var address = document.getElementById("ContentPlaceHolder1_txtdaddressdmv");
473        if (address.value == "") {
474            address.style.color = "red";
475            address.focus();
476            nn11 = 1;
477        }
478        for (var mm1 = 9; mm1 > 0; mm1--) {
479
480            var boxvalue = document.getElementsByName("dmvbox" + mm1)[0].value
481            var box = document.getElementsByName("dmvbox" + mm1);
482
483            if (boxvalue == "") {
484                box[0].style.color = "red";
485                box[0].focus();
486
487                nn11 = 1;
488            }
489        }
490        var ddltypeof = document.getElementById("ContentPlaceHolder1_ddl_typeofvehicle").value;
491
492        if (ddltypeof == 0) {
493            nn11 = 1;
494            $("#div_commonpopup").html("Select Type of vehicle");
495            Opencommonpopup();
496
497            return false;
498        }
499
500        if (nn11 == 0) {
501            var btnval = $('input[id$=btn_dmv]').val();
502            if (btnval == "Submit") {
503                FillDMV_details();
504            }
505            else {
506                UpdateFillDMV_details();
507            }
508        }
509    });
510    //end dmv
511
512    ///////////Save/update Employer
513    $('input[id$=btn_Employer]').click(function () {
514        var nn11 = 0;
515
516        var address = document.getElementById("ContentPlaceHolder1_txt_addressemp");
517
518        if (address.value == "") {
519            address.style.color = "red";
520            address.focus();
521            nn11 = 1;
522        }
523        for (var mm1 = 7; mm1 > 0; mm1--) {
524
525            var boxvalue = document.getElementsByName("empbox" + mm1)[0].value
526
527            var box = document.getElementsByName("empbox" + mm1);
528
529            if (boxvalue == "") {
530
531                box[0].style.color = "red";
532                box[0].focus();
533
534                nn11 = 1;
535            }
536        }
537        var ddl_func = document.getElementById("ContentPlaceHolder1_ddl_designation").value;
538        if (ddl_func == 0) {
539            nn11 = 1;
540            $("#div_commonpopup").html("Select Designation");
541            Opencommonpopup();
542
543            return false;
544        }
545
546        if (nn11 == 0) {
547            var btnval = $('input[id$=btn_Employer]').val();
548            if (btnval == "Submit") {
549                FillEmployer_details();
550            }
551            else {
552                UpdateEmployer_details();
553            }
554        }
555    });
556
557    /////////////////Save/Update Life Insurance/////////////////
558    $('input[id$=btn_Insurance]').click(function () {
559        var nn11 = 0;
560
561        var address = document.getElementById("ContentPlaceHolder1_txt_addressInsr");
562        if (address.value == "") {
563            address.style.color = "red";
564            address.focus();
565            nn11 = 1;
566        }
567        for (var mm1 = 6; mm1 > 0; mm1--) {
568
569            var boxvalue = document.getElementsByName("pbox" + mm1)[0].value
570            var box = document.getElementsByName("pbox" + mm1);
571
572            if (boxvalue == "") {
573                box[0].style.color = "red";
574                if (box == document.getElementsByName("pbox3")) {
575                }
576                else {
577                    box[0].focus();
578                }
579                nn11 = 1;
580            }
581        }
582
583        if (nn11 == 0) {
584            var btnval = $('input[id$=btn_Insurance]').val();
585            if (btnval == "Submit") {
586                FillLifeInsurance_details();
587            }
588            else {
589                UpdateLifeInsurance_details();
590            }
591        }
592    });
593
594    //**************Save/update for Inestment Life Insurance
595
596    $('input[id$=btn_InvestmentFinIns]').click(function () {
597        var nn11 = 0;
598
599        var address = document.getElementById("ContentPlaceHolder1_txt_addressIns");
600
601        if (address.value == "") {
602            address.style.color = "red";
603            address.focus();
604            nn11 = 1;
605        }
606        for (var mm1 = 5; mm1 > 0; mm1--) {
607
608            var boxvalue = document.getElementsByName("ibox" + mm1)[0].value
609            var box = document.getElementsByName("ibox" + mm1);
610
611            if (boxvalue == "") {
612                box[0].style.color = "red";
613                box[0].focus();
614
615                nn11 = 1;
616            }
617
618        }
619
620        if (nn11 == 0) {
621            var btnval = $('input[id$=btn_InvestmentFinIns]').val();
622
623            if (btnval == "Submit") {
624                FillInvestmentFinance_details();
625            }
626            else {
627                UpdateInvestmentFinance_details();
628            }
629        }
630    });
631
632    /////////////////////////Save/update Mortgage Company
633    $('input[id$=btn_mortgage]').click(function () {
634        var nn11 = 0;
635
636        var address = document.getElementById("ContentPlaceHolder1_txt_addressm");
637
638        if (address.value == "") {
639            address.style.color = "red";
640            address.focus();
641            nn11 = 1;
642        }
643        for (var mm1 = 6; mm1 > 0; mm1--) {
644
645            var boxvalue = document.getElementsByName("mbox" + mm1)[0].value
646
647            var box = document.getElementsByName("mbox" + mm1);
648
649            if (boxvalue == "") {
650
651                box[0].style.color = "red";
652                box[0].focus();
653
654                nn11 = 1;
655            }
656
657        }
658
659        if (nn11 == 0) {
660            var btnval = $('input[id$=btn_mortgage]').val();
661
662            if (btnval == "Submit") {
663                FillMortgage_details();
664            }
665            else {
666                UpdateMortgage_details();
667            }
668        }
669    });
670
671    //save TransUnion///////////////////
672    $('input[id$=btn_transunion]').click(function () {
673        var nn11 = 0;
674
675        var address = document.getElementById("ContentPlaceHolder1_txt_addresssubs");
676
677        if (address.value == "") {
678            address.style.color = "red";
679            address.focus();
680            nn11 = 1;
681        }
682        for (var mm1 = 5; mm1 > 0; mm1--) {
683
684            var boxvalue = document.getElementsByName("sbox" + mm1)[0].value
685
686            var box = document.getElementsByName("sbox" + mm1);
687
688            if (boxvalue == "") {
689
690                box[0].style.color = "red";
691                box[0].focus();
692
693                nn11 = 1;
694            }
695        }
696
697        if (nn11 == 0) {
698            var btnval = $('input[id$=btn_transunion]').val();
699
700            if (btnval == "Submit") {
701                FillTransUnion_details();
702            }
703            else {
704                UpdateTransUnion_details();
705            }
706        }
707    });
708
709    /////////////////////Saveupdate Equifax
710    $('input[id$=btn_Equifax]').click(function () {
711        var nn11 = 0;
712        var address = document.getElementById("ContentPlaceHolder1_txt_addressequ");
713
714        if (address.value == "") {
715            address.style.color = "red";
716            address.focus();
717            nn11 = 1;
718        }
719        for (var mm1 = 6; mm1 > 0; mm1--) {
720
721            var boxvalue = document.getElementsByName("ebox" + mm1)[0].value
722            var box = document.getElementsByName("ebox" + mm1);
723
724            if (boxvalue == "") {
725
726                box[0].style.color = "red";
727                box[0].focus();
728
729                nn11 = 1;
730            }
731        }
732        if (nn11 == 0) {
733            var btnval = $('input[id$=btn_Equifax]').val();
734
735            if (btnval == "Submit") {
736                FillEquifax_details();
737            }
738            else {
739                UpdateEquifax_details();
740            }
741        }
742    });
743
744    /////////////Save and update Experience/////////////////////////////
745    $('input[id$=btn_experience]').click(function () {
746        var nn11 = 0;
747
748        var address = document.getElementById("ContentPlaceHolder1_txt_addressexp");
749        if (address.value == "") {
750            address.style.color = "red";
751            address.focus();
752            nn11 = 1;
753        }
754        for (var mm1 = 4; mm1 > 0; mm1--) {
755
756            var boxvalue = document.getElementsByName("exbox" + mm1)[0].value
757
758            var box = document.getElementsByName("exbox" + mm1);
759
760            if (boxvalue == "") {
761                box[0].style.color = "red";
762                box[0].focus();
763                nn11 = 1;
764            }
765        }
766        var ddl_func = document.getElementById("ContentPlaceHolder1_ddl_funarea").value;
767        // alert(ddl_func);
768        if (ddl_func == 0) {
769            nn11 = 1;
770            $("#div_commonpopup").html("Select functional area");
771            Opencommonpopup();
772
773            return false;
774        }
775
776        if (nn11 == 0) {
777            var btnval = $('input[id$=btn_experience]').val();
778
779            if (btnval == "Submit") {
780                FillExperience_details();
781            }
782            else {
783
784                UpdateExperience_details();
785            }
786        }
787    });
788});
789
790$(function () {
791    $(".pressenter").keypress(function (e) {
792        if (e.which == 13) {
793            getlogin();
794        }
795    });
796});
797
798
799function getlogin() {
800    //debugger;
801    var l = 0;
802    for (var k = 2; k > 0; k--) {
803
804        var boxvalue = document.getElementsByName("loginbox" + k)[0].value;
805        var box = document.getElementsByName("loginbox" + k);
806
807        if (boxvalue == "") {
808            box[0].style.color = "red";
809            box[0].focus();
810
811            l = 1;
812        }
813    }
814    if (l == 0) {
815        loginuser();
816    }
817}
818
819function getsignup11() {
820    var l = 0;
821    
822    if (l == 0) {
823        var captchaval = document.getElementById('txtcaptcha').value.trim();
824        var gcaptcha = $("#lblcaptcha").text();
825
826        if (captchaval != gcaptcha) {
827            l = 1;
828            $("#div_commonpopup").html('Captcha do not match!');
829            Opencommonpopup();
830            return false;
831        }
832        else
833        {
834            l = 1;
835            $("#div_commonpopup").html('Captcha match!');
836            Opencommonpopup();
837            return false;
838        }
839    }       
840}
841
842function getsignup() {
843    //debugger;
844    var l = 0;
845    var ptype = 0;
846
847    for (var k = 8; k > 0; k--) {
848
849        var boxvalue = document.getElementsByName("signupbox" + k)[0].value;
850        var box = document.getElementsByName("signupbox" + k);
851
852        if (boxvalue == "") {
853            box[0].style.color = "red";
854            box[0].focus();
855            l = 1;
856        }
857    }
858
859    if (l == 1)
860    {
861        $("#div_commonpopup").html('All fields are mandatory. Please check and submit again.');
862        Opencommonpopup();
863    }
864
865    if (l == 0) {
866        if (document.getElementById('txtpasswod1').value.length < 8)
867        {
868            l = 1;
869            $("#div_commonpopup").html('Your password must be at least 8 characters!');
870            Opencommonpopup();
871            return false;
872        }
873
874        if (document.getElementById('txtpasswod1').value.trim() != document.getElementById('txtpasswod2').value.trim())
875        {
876            l = 1;
877            $("#div_commonpopup").html('Passwords need to match. Please check.');
878            Opencommonpopup();
879            return false;
880        }
881       
882        var captchaval = document.getElementById('txtcaptcha').value.trim();
883        var gcaptcha = $("#lblcaptcha").text();
884
885        if (captchaval != gcaptcha) {
886            l = 1;
887            $("#div_commonpopup").html('The CAPTCHA code you entered is not correct.<br>
887Please re-enter the CAPTCHA code correctly.');
888            Opencommonpopup();
889            return false;
890        }
891        //debugger;
892        if ($("#chbkactstup").prop('checked') == false) {
893            
894            l = 1;
895            $("#div_commonpopup").html("Please accept Family Estate Manager's Terms of Use and Privacy Policy to continue.");
896            Opencommonpopup();
897            return false;
898        }
899    }
900
901    if (l == 0) {
902        check_validkey(ptype);
903    }
904}
905//get index of selected radio button on welcome
906
907function Getindex(i) {
908    $('input[id$=hdn_indexcode]').val(i);
909    document.getElementById("btn_Gopage").style.display = "block";
910}
911
912function clearsignupkeys() {
913    $('#txt_ukey1').val("");
914    $('#txt_ukey2').val("");
915    $('#txt_ukey3').val("");
916    $('#txt_ukey4').val("");
917}
918
919function check_validkey(ptype) {
920    Openloadingpopup();
921    //debugger;
922    var Uniquekeys = $('#txt_ukey1').val() + $('#txt_ukey2').val() + $('#txt_ukey3').val() + $('#txt_ukey4').val();
923    var useremail = $('input[id$=txt_signupemail]').val();
924    var regpwd = $('input[id$=txtpasswod2]').val();
925    var Uniquekeys1 = $('#txt_ukey1').val();
926    var Uniquekeys2 = $('#txt_ukey2').val();
927
928    $.ajax({
929        type: "POST",
930        url: "admin/admin.asmx/check_validkey",
931        data: "regpwd=" + regpwd + "&Uniquekeys=" + Uniquekeys + "&useremail=" + useremail + "&ptype=" + ptype,
932        dataType: "text",
933        success: function (msg) {
934
935            var fin = msg.replace('<?xml version="1.0" encoding="utf-8"?>', '');
936            var fin1 = fin.replace('<string xmlns="http://tempuri.org/">', '');
937            var fin2 = fin1.replace('</string>', '');
938            var fin4 = fin2.replace(/~/g, '<');
939            var fin5 = fin4.replace(/`/g, '>');
940
941            hideloadingpopup();
942
943            var result = $.trim(fin2);
944            if (result == "-2") {
945                clearsignupkeys();
946
947                if (Uniquekeys1.substring(0, 2).toLowerCase() == "cn" && Uniquekeys2.substring(0, 2).toLowerCase() == "en") {
948                    $("#div_commonpopup").html('The key entered is invalid on this platform. It belongs to the <a href="https://www.familyestatemanager.com/canada/signup.aspx" class="btnactivelgn2"> CANADA version </a>of this tool. Enter a valid unique key.');
949                }
950                else if (Uniquekeys1.substring(0, 2).toLowerCase() == "qe" && Uniquekeys2.substring(0, 2).toLowerCase() == "en") {
951                    $("#div_commonpopup").html('The key entered is invalid on this platform. It belongs to the <a href="https://www.familyestatemanager.com/quebec/fr/signup.aspx" class="btnactivelgn2"> QUEBEC version </a>of this tool. Enter a valid unique key.');
952                }
953                else {
954                    $("#div_commonpopup").html('The key entered is invalid. Please check and enter a valid unique key.');
955                }
956                Opencommonpopup();
957                return false;
958            }
959            else if (result == "-1") {
960                $("#div_commonpopup").html('The key entered is already in use. Please enter a new unique key.');
961                Opencommonpopup();
962                return false;
963            }
964            else if (result == "-3") {
965                $("#div_commonpopup").html('Email address entered is already being used for US, please use a different email address.');
966                Opencommonpopup();
967                return false;
968            }
969            else if (result == "-4") {
970                $("#div_commonpopup").html('Email address entered is already being used for Canada, please use a different email address.');
971                Opencommonpopup();
972                return false;
973            }
974            else if (result == "-5") {
975                $("#div_commonpopup").html('Email address entered is already being used for Quebec, please use a different email address.');
976                Opencommonpopup();
977                return false;
978            }
979            else if (result == "1") {
980                DAProfile_AccStpUp(1);
981            }
982            else if (result == "2") {
983                DAProfile_AccStpUp(2);
984            }
985            else if (result == "3") {
986                DAProfile_AccStpUp(3);
987            }
988            else if (result == "4") {
989                DAProfile_AccStpUp(4);
990            }
991        }
992    });
993}
994
995function clearsignupgradekeys() {
996    $('#upkey1').val("");
997    $('#upkey2').val("");
998    $('#upkey3').val("");
999    $('#upkey4').val("");
1000
1001    $('#txt_accid').val("");
1002}
1003
1004function Upgraderegdirect_login() {
1005    var accountid = $('#txt_upgrdaccid').val();
1006
1007    if (accountid != "") {
1008        $.ajax({
1009            type: "POST",
1010            url: "InnerSite.asmx/Upgraderegdirect_login",
1011            data: "ex_email=" + accountid,
1012            dataType: "text",
1013            success: function (msg) {
1014                var fin = msg.replace('<?xml version="1.0" encoding="utf-8"?>', '');
1015                var fin1 = fin.replace('<string xmlns="http://tempuri.org/">', '');
1016                var fin2 = fin1.replace('</string>', '');
1017                var result = $.trim(fin2);
1018
1019                if (result == "0") {
1020                    $("#div_commonpopup").html('Invalid Account ID');
1021                    Opencommonpopup();
1022                    return false;
1023                }
1024                if (result == "1") {
1025                    window.location.href = "UpgradeAccount.aspx";
1026                }
1027
1028            }
1029        });
1030    }
1031}
1032
1033function UpgradeAcctonloginactivate() {
1034
1035    var accountid = $('#txt_accid').val();
1036    var Uniquekeys = $('#upkey1').val() + $('#upkey2').val() + $('#upkey3').val() + $('#upkey4').val();
1037    if (accountid != "" && Uniquekeys != "") {
1038        Openloadingpopup();
1039
1040        $.ajax({
1041            type: "POST",
1042            url: "InnerSite.asmx/UpgradeAcctonlogin",
1043            data: "Uniquekeys=" + Uniquekeys + "&ex_email=" + accountid,
1044            dataType: "text",
1045            success: function (msg) {
1046                var fin = msg.replace('<?xml version="1.0" encoding="utf-8"?>', '');
1047                var fin1 = fin.replace('<string xmlns="http://tempuri.org/">', '');
1048                var fin2 = fin1.replace('</string>', '');
1049                var result = $.trim(fin2);
1050
1051                if (result == "-1") {
1052                    $("#div_commonpopup").html('This key is already used!');
1053                }
1054
1055                if (result == "-2") {
1056                    $("#div_commonpopup").html('Invalid Unique Key, Please enter valid unique key');
1057                }
1058                if (result == "-3") {
1059                    $("#div_commonpopup").html('This key is limitted access key, Please use full access key.');
1060                }
1061                if (result == "0") {
1062                    $("#div_commonpopup").html('Invalid Account ID');
1063                }
1064                if (result == "1") {
1065                    UpgradeAcctonupgde(accountid);
1066                }
1067
1068                if (result == "2") {
1069                    $("#div_commonpopup").html('You have already upgraded account.');
1070                }
1071                clearsignupgradekeys();
1072
1073                hideloadingpopup();
1074                Opencommonpopup();
1075                return false;
1076            }
1077        });
1078    }
1079}
1080
1081function UpgradeAcctonupgde(ex_email) {  
1082    var Uniquekeys = $('#upkey1').val() + $('#upkey2').val() + $('#upkey3').val() + $('#upkey4').val();
1083    $.ajax({
1084        type: "POST",
1085        url: "InnerSite.asmx/UpgradeAcct",
1086        data: "Uniquekeys=" + Uniquekeys + "&ex_email=" + ex_email,
1087        dataType: "text",
1088        success: function (msg) {
1089            var fin = msg.replace('<?xml version="1.0" encoding="utf-8"?>', '');
1090            var fin1 = fin.replace('<string xmlns="http://tempuri.org/">', '');
1091            var fin2 = fin1.replace('</string>', '');
1092            var result = $.trim(fin2);
1093
1094            if (result == "1") {
1095                $("#div_commonpopup").html('Your account was successfully upgraded. Please sign in with your existing account details and access the settlement section.');           
1096            }
1097
1098            if (result == "2") {
1099                $("#div_commonpopup").html('You have already upgraded account.');
1100            }
1101        }
1102    });
1103}
1104
1105function checkexeemail() {
1106    var userid = $('input[id$=txt_signupemail]').val();
1107    $.ajax({
1108        type: "POST",
1109        url: "site.asmx/checkexeemail",
1110        data: "userid=" + userid,
1111        dataType: "text",
1112        success: function (msg) {
1113            var fin = msg.replace('<?xml version="1.0" encoding="utf-8"?>', '');
1114            var fin1 = fin.replace('<string xmlns="http://tempuri.org/">', '');
1115            var fin2 = fin1.replace('</string>', '');
1116
1117            if ($.trim(fin2) == "-1") {
1118                $('input[id$=txt_signupemail]').val("");
1119                $("#div_commonpopup").html("This email-id is already exists");
1120                Opencommonpopup();
1121            }
1122        }
1123    });
1124}
1125// create user function in user
1126
1127function create_user() {
1128    var userid = $('input[id$=txt_userid]').val();
1129    var password = $('input[id$=txt_passwrd]').val();
1130    var uniquekeyy = $('input[id$=hdn_uniquekey]').val();
1131    Openloadingpopup();
1132    $.ajax({
1133        type: "POST",
1134        url: "site.asmx/create_user",
1135        data: "uniquekeyy=" + uniquekeyy + "&userid=" + userid + "&password=" + password,
1136        dataType: "text",
1137        success: function (msg) {
1138            var fin = msg.replace('<?xml version="1.0" encoding="utf-8"?>', '');
1139            var fin1 = fin.replace('<string xmlns="http://tempuri.org/">', '');
1140            var fin2 = fin1.replace('</string>', '');
1141            hideloadingpopup();
1142            if ($.trim(fin2) == "1") {
1143
1144                $('input[id$=hdn_popupstatus]').val("lupd");
1145                $("#div_commonpopup").html("Login Details Submitted Succuessfully<br>Please check your email.");
1146            }
1147
1148            if ($.trim(fin2) == "-1") {
1149                $("#div_commonpopup").html("This userid is already exists");
1150            }
1151            $('input[id$=txt_userid]').val("");
1152            $('input[id$=txt_passwrd]').val("");
1153            Opencommonpopup();
1154        }
1155    });
1156}
1157
1158// Bind user list in user panel
1159
1160function List_users() {
1161    var uniquekeyy = $('input[id$=hdn_uniquekey]').val();
1162    $.ajax({
1163        type: "POST",
1164        url: "site.asmx/List_users",
1165        data: "uniquekeyy=" + uniquekeyy,
1166        dataType: "text",
1167        success: function (msg) {
1168            // alert('aa');
1169            var fin = msg.replace('<?xml version="1.0" encoding="utf-8"?>', '');
1170            var fin1 = fin.replace('<string xmlns="http://tempuri.org/">', '');
1171            var fin2 = fin1.replace('</string>', '');
1172            var fin4 = fin2.replace(/~/g, '<');
1173            var fin5 = fin4.replace(/`/g, '>');
1174            document.getElementById("list_user").innerHTML = fin5;
1175        }
1176    });
1177}
1178
1179// email validation function
1180
1181function ValidateEmail(x) {
1182    //var EmailExp = /^[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$/;
1183     var EmailExp = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
1184
1185    if (x.value == "") {
1186        x.placeholder = " ";
1187        x.focus();
1188        return false;
1189    }
1190    if (x.value.match(EmailExp)) {
1191        x.style.color = "#3b3b3b";
1192        return true;
1193    }
1194    else {
1195        // alert("Invalid Mail ID");
1196        x.placeholder = "Invalid Email";
1197        x.style.color = "red";
1198        x.value = "";
1199        x.focus();
1200        return false;
1201    }
1202}
1203
1204//check email confirm function
1205
1206function checkconfirmemail() {
1207    var email = $('input[id$=txt_email]').val();
1208    var confirmemail = $('input[id$=txt_confirmemail]').val();
1209
1210    if (email != confirmemail) {
1211        $('input[id$=txt_confirmemail]').val("");
1212        $('input[id$=txt_userid]').val("");
1213        $("#div_commonpopup").html('Please enter correct confirm email');
1214        Opencommonpopup();
1215    }
1216    else {
1217        fillemail();
1218    }
1219}
1220
1221//auto fill on focus of userid 
1222
1223function fillemail() {
1224    var confirmemail = $('input[id$=txt_confirmemail]').val();
1225    if (confirmemail != "") {
1226        $('input[id$=txt_userid]').val(confirmemail);
1227        document.getElementById("txt_userid").style.border = "none";
1228        $("input[id$=txt_userid]").attr("disabled", "disabled");
1229    }
1230}
1231
1232// login function for user
1233
1234function loginuser_old() {
1235    var useridl = $('input[id$=txt_loginemail]').val();
1236    var passwrdl = $('input[id$=txt_loginpasswrd]').val();
1237
1238    $.ajax({
1239        type: "POST",
1240        url: "site.asmx/loginuser",
1241        data: "useridl=" + useridl + "&passwrdl=" + passwrdl,
1242        dataType: "text",
1243        success: function (msg) {
1244            // alert('aa');
1245            var fin = msg.replace('<?xml version="1.0" encoding="utf-8"?>', '');
1246            var fin1 = fin.replace('<string xmlns="http://tempuri.org/">', '');
1247            var fin2 = fin1.replace('</string>', '');
1248            var fin4 = fin2.replace(/~/g, '<');
1249            var fin5 = fin4.replace(/`/g, '>');
1250
1251            if ($.trim(fin2) == "0") {
1252                $("#div_commonpopup").html("Invalid user-id or password");
1253                Opencommonpopup();
1254            }
1255            else if ($.trim(fin2) == "-1") {
1256                $("#div_commonpopup").html("Please make sure that the account has been verified before trying again.");
1257                Opencommonpopup();
1258            }
1259            else {
1260                CheckRedirectpage();
1261                window.location.replace("Settlement_HowToUse.aspx");
1262            }           
1263        }
1264    });
1265}
1266
1267function onremmbrcheck() {
1268    if (document.getElementById("chbk_rembr").checked) {
1269        chk = 1;
1270    }
1271    else {
1272        chk = 0;
1273    }
1274    Checkforremmember(chk);
1275}
1276
1277function Checkforremmember(chekcrem) {
1278    var userid = $("#txt_loginemail").val();
1279    var passwrd = $("#txt_loginpasswrd").val();
1280    var chk = chekcrem;
1281
1282    $.ajax({
1283        type: "POST",
1284        url: "AllStepsPDFDownload.asmx/Checkforremmember",
1285        data: "{'check':'" + chk + "','userid':'" + userid + "','passwrd':'" + passwrd + "'}",
1286        contentType: "application/json; charset=utf-8",
1287        dataType: "json",
1288        success: function (response) {
1289            var alldata = $.parseJSON(response.d);
1290            $.each(alldata, function (index, ad) {
1291                 $("#txt_loginemail").val(ad.uid);
1292                 $("#txt_loginpasswrd").val(ad.pwd);
1293
1294                if (ad.chk == "1") {
1295                    document.getElementById("chbk_rembr").checked = true;
1296                    $("#txt_loginemail").css("color", "#3b3b3b");
1297                    $("#txt_loginpasswrd").css("color", "#3b3b3b");
1298                }
1299                else {
1300                    document.getElementById("chbk_rembr").checked = false;
1301                }
1302            });
1303        }
1304    });
1305}
1306
1307function redirect() { 
1308    window.location.href = "https://www.familyestatemanager.com/register";
1309}
1310
1311function loginuser_orginal() {
1312    //debugger;
1313    var useridl = $('input[id$=txt_loginemail]').val();
1314    var passwrdl = $('input[id$=txt_loginpasswrd]').val();
1315    $.ajax({
1316        type: "POST",
1317        url: "site.asmx/loginuser",
1318        data: "{'useridl':'" + $.trim(useridl) + "','passwrdl':'" + $.trim(passwrdl) + "'}",
1319
1320        contentType: "application/json; charset=utf-8",
1321        dataType: "json",
1322        success: function (response) {
1323            //debugger;
1324            var alldata = $.parseJSON(response.d);
1325            $.each(alldata, function (index, ad) {
1326
1327                if (ad.result == "0") {
1328                    $("#div_commonpopup").html("Invalid email, account ID or password. Please login again.<br><br>Don't have login credentials yet? Please <a style='cursor:pointer;color:#519eb1;' href='https://www.familyestatemanager.com/register'>Register your activation code</a> to get started.");
1329                    Opencommonpopup();
1330                }
1331                else if (ad.result == "-1") {
1332                    $("#div_commonpopup").html("Please make sure that the account has been verified before trying again.");
1333                    Opencommonpopup();
1334                }
1335                else if (ad.result == "-2") {
1336                    $("#div_commonpopup").html("Your login access was disabled. The activation code attached to this account has been deactivated. Please contact your funeral home if you have any questions.");
1337                    Opencommonpopup();
1338                }
1339                else {
1340                    if (ad.fullaccess == "1") {
1341                        window.location.href = "Planning.aspx";
1342                    }
1343                    else if (ad.fullaccess == "2") {
1344                        window.location.href = "settlement.aspx";
1345                    }
1346                    else if (ad.fullaccess == "3") {
1347                        window.location.href = "lifes-key-documents-about.aspx";
1348                    }
1349                    else if (ad.fullaccess == "4") {
1350                        window.location.href = "Planning.aspx";
1351                    }
1352                    else {
1353                        window.location.href = "AboutFEM.aspx.aspx";
1354                    }
1355                }
1356            });
1357        }
1358    });
1359}
1360
1361// Admin Cross-Platform Sign In Popup    -- By Ankit 20.7.2020
1362function Opencommonpopupadmin() {
1363    $('.Commonoverlay').show();
1364    $('#popup_admin').show();
1365    return false;
1366}
1367
1368function hidecommonpopupadmin() {
1369    $('#popup_admin').hide();
1370    $('.Commonoverlay').hide();
1371    return false;
1372}
1373
1374function Opencommonpopup() {
1375    $('.Commonoverlay').show();
1376    $('#popup_admin').show();
1377    return false;
1378}
1379
1380function hidecommonpopup() {
1381    $('#popup_admin').hide();
1382    $('.Commonoverlay').hide();
1383    return false;
1384}
1385
1386// Admin Cross-Platform Sign In Popup
1387
1388// New Single Sign ON - Login 
1389function loginuser() {
1390    //debugger;
1391    var useridl = $('input[id$=txt_loginemail]').val();
1392    var passwrdl = $('input[id$=txt_loginpasswrd]').val().replace("'", "&#39;");
1393    $.ajax({
1394        type: "POST",
1395        url: "site.asmx/loginuser",
1396        data: "{'useridl':'" + $.trim(useridl) + "','passwrdl':'" + $.trim(passwrdl) + "'}",
1397
1398        contentType: "application/json; charset=utf-8",
1399        dataType: "json",
1400        async: false,
1401        success: function (response) {
1402            //debugger;
1403            var alldata = $.parseJSON(response.d);
1404            $.each(alldata, function (index, ad) {
1405
1406                if (ad.result == "0") {
1407                    //debugger;
1408                    $("#div_commonpopup").html("Invalid email, account id or password. Please enter your login details correctly and try again.<br><br>Don't have login details? <a style='cursor:pointer;color:#519eb1;' href='https://www.familyestatemanager.com/register'>Register your activation code</a> to get started today.");
1409                    Opencommonpopup();
1410                }
1411                else if (ad.result == "-1") {
1412                    //debugger;
1413                    $("#div_commonpopup").html("Invalid email, account ID or password. Please login again.<br><br>Don't have login credentials yet? Please <a style='cursor:pointer;color:#519eb1;' href='https://www.familyestatemanager.com/register'>Register your activation code</a> to get started.");
1414                    Opencommonpopup();
1415                }
1416                else if (ad.result == "-3") {
1417                    // alert("Invalid user-id or password");
1418                    $("#div_commonpopup").html("This account has been deactivated. Please contact your funeral home if you have any questions.");
1419                    Opencommonpopup();
1420                }
1421                else if (ad.result == "4") {
1422                    //debugger;
1423                    $("#div_admin_login").html("Login to:");
1424                    $(".all-platforms").addClass("login_admin");
1425                    Opencommonpopupadmin();
1426                }
1427                else if (ad.result == "11") {
1428                    //debugger;
1429                    $("#div_commonpopup").html("It is a US platform Credentials");
1430                    Opencommonpopup();
1431                }
1432                else if (ad.result == "21") {
1433                    window.location.href = "https://www.familyestatemanager.com/canada/SSO.aspx?did=" + ad.did + "&access=" + ad.access + "";
1434                }
1435                else if (ad.result == "31") {
1436                    window.location.href = "https://www.familyestatemanager.com/quebec/en/SSO.aspx?did=" + ad.did + "&access=" + ad.access + "";
1437                }
1438                else if (ad.result == "41") {
1439                    window.location.href = "https://www.familyestatemanager.com/quebec/fr/SSO.aspx?did=" + ad.did + "&access=" + ad.access + "";
1440                }
1441                else {
1442                    if (ad.fullaccess == "1") {
1443                        window.location.href = "Planning.aspx";
1444                    }
1445                    else if (ad.fullaccess == "2") {
1446                        window.location.href = "settlement.aspx";
1447                    }
1448                    else if (ad.fullaccess == "3") {
1449                        window.location.href = "lifes-key-documents-about.aspx";
1450                    }
1451                    else if (ad.fullaccess == "4") {
1452
1453                        window.location.href = "Planning.aspx";
1454                    }
1455					 else if (ad.fullaccess == "5") {
1456     window.location.href = "planning_Step4-LKD.aspx";
1457 }
1458                    else {
1459                        window.location.href = "AboutFEM.aspx";
1460                    }
1461                }
1462            });
1463        }
1464    });
1465}
1466
1467//login admin
1468function loginadmin(access) {
1469    //debugger;
1470    var useridl = $('input[id$=txt_loginemail]').val();
1471    var passwrdl = $('input[id$=txt_loginpasswrd]').val();
1472    $.ajax({
1473        type: "POST",
1474        url: "site.asmx/loginadmin",
1475        data: "{'useridl':'" + $.trim(useridl) + "','passwrdl':'" + $.trim(passwrdl) + "','access':'" + access + "'}",
1476
1477        contentType: "application/json; charset=utf-8",
1478        dataType: "json",
1479        async: false,
1480        success: function (response) {
1481            //debugger;
1482            var alldata = $.parseJSON(response.d);
1483            $.each(alldata, function (index, ad) {
1484
1485                if (ad.result == "0") {
1486                    //debugger;
1487                    $("#div_commonpopup").html("Invalid email, account id or password. Please enter your login details correctly and try again.<br><br>Don't have login details? <a style='cursor:pointer;color:#519eb1;' href='https://www.familyestatemanager.com/register'>Register your activation code</a> to get started today.");
1488                    Opencommonpopup();
1489                }
1490                else if (ad.result == "-1") {
1491                    //debugger;
1492                    $("#div_commonpopup").html("Please make sure that the account has been verified before trying again.");
1493                    Opencommonpopup();
1494                }
1495                else if (ad.result == "4") {
1496                    //debugger;
1497                    $("#div_admin_login").html("Weclome to Admin cross platform Sign in");
1498                    Opencommonpopupadmin();
1499                }
1500                else {
1501                    if (ad.fullaccess == "1") {
1502                        window.location.href = "Planning.aspx";
1503                    }
1504                    else if (ad.fullaccess == "2") {
1505                        window.location.href = "settlement.aspx";
1506                    }
1507                    else if (ad.fullaccess == "3") {
1508                        window.location.href = "lifes-key-documents-about.aspx";
1509                    }
1510                    else if (ad.fullaccess == "4") {
1511                        window.location.href = "Planning.aspx";
1512                    }
1513                    else {
1514                        window.location.href = "AboutFEM.aspx";
1515                    }
1516                }
1517            });
1518        }
1519    });
1520}
1521
1522//login admin - For language dropdown
1523function loginCrossplatform_login(access, calltype) {
1524    //debugger;
1525    var useridl = $('input[id$=txt_loginemail]').val();
1526    var passwrdl = $('input[id$=txt_loginpasswrd]').val();
1527    $.ajax({
1528        type: "POST",
1529        url: "site.asmx/loginCrossplatform",
1530        data: "{'useridl':'" + $.trim(useridl) + "','passwrdl':'" + $.trim(passwrdl) + "','access':'" + access + "','call':'" + calltype + "'}",
1531
1532        contentType: "application/json; charset=utf-8",
1533        dataType: "json",
1534        async: false,
1535        success: function (response) {
1536            //debugger;
1537            var alldata = $.parseJSON(response.d);
1538            $.each(alldata, function (index, ad) {
1539
1540                if (ad.result == "21") {
1541                    window.location.href = "https://www.familyestatemanager.com/canada/SSO.aspx?did=" + ad.did + "&access=" + ad.access + "";
1542                }
1543                else if (ad.result == "31") {
1544                    window.location.href = "https://www.familyestatemanager.com/quebec/en/SSO.aspx?did=" + ad.did + "&access=" + ad.access + "";
1545                }
1546                else if (ad.result == "41") {
1547                    window.location.href = "https://www.familyestatemanager.com/quebec/fr/SSO.aspx?did=" + ad.did + "&access=" + ad.access + "";
1548                }
1549            });
1550        }
1551    });
1552}
1553
1554function Checkforintropage(accid, type) {
1555    // debugger;
1556    $.ajax({
1557        type: "POST",
1558        url: "site.asmx/Checkforintropage",
1559        data: "{'accid':'" + accid + "','type':'" + type + "'}",
1560        contentType: "application/json; charset=utf-8",
1561        dataType: "json",
1562        success: function (response) {
1563            var alldata = $.parseJSON(response.d);
1564            $.each(alldata, function (index, ad) {
1565
1566                var check = $.trim(ad.compltstp);
1567                var totalcmplt = $.trim(ad.totalcompt);
1568                if (parseInt(check) > 0) {
1569
1570                    if (type == "1") {
1571                        if (totalcmplt == "14") {
1572                            window.location.href = "PlanningGuideComplt.aspx";
1573                        }
1574                        else {
1575                            window.location.href = "AboutFEM.aspx";
1576                        }
1577                    }
1578                    if (type == "2") {
1579                        if (totalcmplt == "15") {
1580                            window.location.href = "SettlementGuideComplt.aspx";
1581                        }
1582                        else {
1583                            window.location.href = "Settlement.aspx";
1584                        }
1585                    }
1586                }
1587                else {
1588                    if (type == "1") {
1589                        if (parseInt(totalcmplt) > 0) {
1590                            window.location.href = "Planning.aspx";
1591                        }
1592                        else {
1593                            window.location.href = "AboutFEM.aspx";
1594                        }
1595                    }
1596                    if (type == "2") {
1597                        if (totalcmplt == "15") {
1598                            window.location.href = "SettlementGuideComplt.aspx";
1599                        }
1600                        else {
1601                            window.location.href = "Settlement.aspx";
1602                        }
1603                    }
1604                }
1605            });
1606        }
1607    });
1608}
1609
1610function CheckRedirectpage(access) {
1611    var useridl = $('#txt_loginemail').val();
1612    $.ajax({
1613        type: "POST",
1614        url: "site.asmx/CheckRedirectpage",
1615        data: "{'usrid':'" + useridl + "','access':'" + access + "'}",
1616
1617        contentType: "application/json; charset=utf-8",
1618        dataType: "json",
1619        success: function (response) {
1620            // 
1621            var alldata = $.parseJSON(response.d);
1622            var i = 1;
1623
1624            $.each(alldata, function (index, ad) {
1625                if (ad.step == i) {
1626
1627                }
1628                else {
1629                    return false;
1630                }
1631                i++;
1632            });
1633
1634            if (access == "2") {
1635                window.location.replace("Planning_Step" + i + ".aspx");
1636            }
1637            else {
1638                window.location.replace("Settlement_Step" + i + ".aspx");
1639            }
1640        }
1641    });
1642}
1643
1644// signup function for user
1645
1646
1647// complete user profile after login if not completed .
1648
1649function Update_userProfile() {
1650    var Fname = $('input[id$=txt_userFname]').val();
1651    var Lname = $('input[id$=txt_userlname]').val();
1652    var email = $('input[id$=txt_useremail]').val();
1653    var contact = $('input[id$=txt_usercontact]').val();
1654    var state = $('input[id$=txt_userState]').val();
1655    var city = $('input[id$=txt_userCity]').val();
1656    var zipcode = $('input[id$=txt_userZipCode]').val();
1657    var address = document.getElementById("ContentPlaceHolder1_txt_useraddress").value; //$('textarea[id$=txt_useraddress]').val();
1658    var updatestatus = $("input[id$=hdn_editpage]").val();
1659    $.ajax({
1660        type: "POST",
1661        url: "site.asmx/CompleteProfile",
1662        data: "updatestatus=" + updatestatus + "&Fname=" + Fname + "&Lname=" + Lname + "&email=" + email + "&contact=" + contact + "&state=" + state + "&city=" + city + "&zipcode=" + zipcode + "&address=" + address,
1663        dataType: "text",
1664        success: function (msg) {
1665            $('input[id$=hdn_popupstatus]').val("1");
1666            $("#div_commonpopup").html("Profile updated successfully");
1667            Opencommonpopup();
1668        }
1669    });
1670}
1671
1672// login function for user
1673
1674function createDAProfile() {
1675    var ssn = $('input[id$=txtssn]').val();
1676    var dafname = $('input[id$=txt_daFname]').val();
1677    var dalname = $('input[id$=txt_dalname]').val();
1678    var dob_mm = $('select[id$=ddl_da_dob_mm] option:selected').val();
1679    var dob_dd = $('select[id$=ddl_da_dob_dd] option:selected').val();
1680    var dob_yy = $('input[id$=txt_da_dob_yy]').val();
1681    var dod_mm = $('select[id$=ddl_da_dod_mm] option:selected').val();
1682    var dod_dd = $('select[id$=ddl_da_dod_dd] option:selected').val();
1683    var dod_yy = $('input[id$=txt_da_dod_yy]').val();
1684    var pcode = $('input[id$=hdn_pcode]').val();
1685    var uid = $('input[id$=hdn_uid]').val();
1686
1687    $.ajax({
1688        type: "POST",
1689        url: "site.asmx/createDAProfile",
1690        data: "pcode=" + pcode + "&uid=" + uid + "&dafname=" + dafname + "&dalname=" + dalname + "&dob_mm=" + dob_mm + "&dob_dd=" + dob_dd + "&dob_yy=" + dob_yy + "&dod_mm=" + dod_mm + "&dod_dd=" + dod_dd + "&dod_yy=" + dod_yy + "&ssn=" + ssn,//+ "&daemail=" + daemail + "&dalcontact=" + dalcontact + "&dafaddress=" + dafaddress,
1691        dataType: "text",
1692        success: function (msg) {
1693            var fin = msg.replace('<?xml version="1.0" encoding="utf-8"?>', '');
1694            var fin1 = fin.replace('<string xmlns="http://tempuri.org/">', '');
1695            var fin2 = fin1.replace('</string>', '');
1696            var fin4 = fin2.replace(/~/g, '<');
1697            var fin5 = fin4.replace(/`/g, '>');
1698            if ($.trim(fin2) == "1") {
1699                $('input[id$=hdn_popupstatus]').val("1");
1700                $("#div_commonpopup").html("Deceased Profile created successully");
1701                Opencommonpopup();
1702                clearDAFields();
1703            }
1704        }
1705    });
1706}
1707
1708function UpdateDAProfile() {
1709    var ssn = $('input[id$=txtssn]').val();
1710    var dafname = $('input[id$=txt_daFname]').val();
1711    var dalname = $('input[id$=txt_dalname]').val();
1712    var dob_mm = $('select[id$=ddl_da_dob_mm] option:selected').val();
1713    var dob_dd = $('select[id$=ddl_da_dob_dd] option:selected').val();
1714    var dob_yy = $('input[id$=txt_da_dob_yy]').val();
1715    var dod_mm = $('select[id$=ddl_da_dod_mm] option:selected').val();
1716    var dod_dd = $('select[id$=ddl_da_dod_dd] option:selected').val();
1717    var dod_yy = $('input[id$=txt_da_dod_yy]').val();
1718    var uid = $('input[id$=hdn_uid]').val();
1719
1720    $.ajax({
1721        type: "POST",
1722        url: "site.asmx/UpdateDAProfile",
1723        data: "uid=" + uid + "&dafname=" + dafname + "&dalname=" + dalname + "&dob_mm=" + dob_mm + "&dob_dd=" + dob_dd + "&dob_yy=" + dob_yy + "&dod_mm=" + dod_mm + "&dod_dd=" + dod_dd + "&dod_yy=" + dod_yy + "&ssn=" + ssn,//+ "&daemail=" + daemail + "&dalcontact=" + dalcontact + "&dafaddress=" + dafaddress,
1724        dataType: "text",
1725        success: function (msg) {
1726            var fin = msg.replace('<?xml version="1.0" encoding="utf-8"?>', '');
1727            var fin1 = fin.replace('<string xmlns="http://tempuri.org/">', '');
1728            var fin2 = fin1.replace('</string>', '');
1729            var fin4 = fin2.replace(/~/g, '<');
1730            var fin5 = fin4.replace(/`/g, '>');
1731
1732            if ($.trim(fin2) == "1") {
1733                $('input[id$=hdn_popupstatus]').val("1");
1734                $("#div_commonpopup").html("Deceased Profile updated successully");
1735                Opencommonpopup();
1736                clearDAFields();
1737            }
1738        }
1739    });
1740}
1741
1742// clear DA fields
1743function clearDAFields() {
1744    $('input[id$=txtssn]').val("");
1745    $('input[id$=txt_daFname]').val("");
1746    $('input[id$=txt_dalname]').val("");
1747    $('input[id$=txt_da_dob_yy]').val("");
1748    $('input[id$=txt_da_dod_yy]').val("");
1749    $('input[id$=txt_daemail]').val("");
1750    $('input[id$=txt_dacontact]').val("");
1751    $('input[id$=txt_daaddress]').val("");
1752}
1753
1754// fill bank details of da
1755function FillDA_BankDetails() {
1756    var Bankname = $('input[id$=txt_DA_Bank]').val();
1757    var Bstate = $('input[id$=txt_DA_Bank_State]').val();
1758    var Bcity = $('input[id$=txt_DA_Bank_City]').val();
1759    var Bzipcode = $('input[id$=txt_DA_Bank_ZipCode]').val();
1760    var Baddress = document.getElementById("ContentPlaceHolder1_txt_DA_Bank_address").value; //$('textarea[id$=txt_DA_Bank_address]').val();
1761    var accountno = $('input[id$=txt_DA_Bank_Ac]').val();
1762    var uid = $('input[id$=hdn_uid]').val();
1763    var pcode = $('input[id$=hdn_pcode]').val();
1764    $.ajax({
1765        type: "POST",
1766        url: "site.asmx/FillDA_BankDetails",
1767        data: "pcode=" + pcode + "&uid=" + uid + "&Bankname=" + Bankname + "&Bstate=" + Bstate + "&Bcity=" + Bcity + "&Bzipcode=" + Bzipcode + "&Baddress=" + Baddress + "&accountno=" + accountno,
1768        dataType: "text",
1769        success: function (msg) {
1770            var fin = msg.replace('<?xml version="1.0" encoding="utf-8"?>', '');
1771            var fin1 = fin.replace('<string xmlns="http://tempuri.org/">', '');
1772            var fin2 = fin1.replace('</string>', '');
1773
1774            $('input[id$=hdn_popupstatus]').val("bpdf");
1775            $("#div_commonpopup").html("Bank details saved successfully");
1776            Opencommonpopup();
1777        }
1778    });
1779}
1780
1781//numeric filter function
1782function numericFilter(txb) {
1783    txb.value = txb.value.replace(/[^.0-9]+/gi, '');
1784}
1785
1786function suppressCharacterInput(evt) {
1787    var _keyCode = evt.getKeyCode();
1788    var _filterField = evt.getCurrentTarget();
1789    var _oldValue = _filterField.getValue();
1790
1791    if (!((_keyCode < 57) || (_keyCode > 96 && _keyCode < 105))) {
1792        _filterField.setValue(_oldValue);
1793        evt.cancel();
1794    }
1795}
1796
1797
1798// validation for dob and dod of da
1799
1800function Check_dobyrs() {
1801    var dobyear = $('input[id$=txt_da_dob_yy]').val();
1802    var dobmonth = document.getElementById("ContentPlaceHolder1_ddl_da_dob_mm").value;// $('input[id$=ddl_da_dob_mm] :selected').val();
1803    var dobday = document.getElementById("ContentPlaceHolder1_ddl_da_dob_dd").value; //$('input[id$=ddl_da_dob_dd] :selected').val();
1804
1805    var dob_date = dobyear + "/" + dobmonth + "/" + dobday;
1806    var dobdate = new Date(dob_date);
1807    var currentdate = new Date();
1808
1809    var loopyear = parseInt(dobyear);
1810    var loopday = parseInt(dobday);
1811
1812    if (loopyear % 4 == 0) {
1813
1814        if ((dobmonth == "02") && (loopday > 29)) {
1815            $('input[id$=txt_da_dob_yy]').val("");
1816            $("#div_commonpopup").html(loopyear + " is a leap year, So for February month, days can't be greater than 29");
1817            Opencommonpopup();
1818        }
1819    }
1820
1821    if (dobdate > currentdate) {
1822        $('input[id$=txt_da_dob_yy]').val("");
1823        $("#div_commonpopup").html("Date of Birth can't be greater than current date");
1824        Opencommonpopup();
1825    }
1826}
1827
1828function Check_dodyrs() {
1829    var dobyear = $('input[id$=txt_da_dob_yy]').val();
1830    var dobmonth = document.getElementById("ContentPlaceHolder1_ddl_da_dob_mm").value;
1831    var dobday = document.getElementById("ContentPlaceHolder1_ddl_da_dob_dd").value;
1832
1833    var dob_date = dobyear + "/" + dobmonth + "/" + dobday;
1834    var dobdate = new Date(dob_date);
1835
1836    var loopyear = parseInt(dodyear);
1837    var loopday = parseInt(dodday);
1838
1839    if (loopyear % 4 == 0) {
1840        $('input[id$=txt_da_dod_yy]').val("");
1841        if ((dodmonth == "02") && (loopday > 29)) {
1842            $("#div_commonpopup").html(loopyear + " is a leap year, So for February month, days can't be greater than 29");
1843            Opencommonpopup();
1844        }
1845    }
1846
1847    var dodyear = $('input[id$=txt_da_dod_yy]').val();
1848    var dodmonth = document.getElementById("ContentPlaceHolder1_ddl_da_dod_mm").value;
1849    var dodday = document.getElementById("ContentPlaceHolder1_ddl_da_dod_dd").value;
1850    var dod_date = dodyear + "/" + dodmonth + "/" + dodday;
1851    var doddate = new Date(dod_date);
1852    var currentdate = new Date();
1853
1854    if (doddate > currentdate) {
1855        $('input[id$=txt_da_dod_yy]').val("");
1856        $("#div_commonpopup").html("Date of Death can't be greater than current date");
1857        Opencommonpopup();
1858    }
1859    if (dobdate > doddate) {
1860        $('input[id$=txt_da_dod_yy]').val("");
1861        $("#div_commonpopup").html("Date of Death can't be less than Date of Birth");
1862        Opencommonpopup();
1863    }
1864}
1865
1866// Bind pagecategory on welcome 
1867function BindListPage() {
1868    var uid = $('input[id$=hdn_usr_id]').val();
1869
1870    $.ajax({
1871        type: "POST",
1872        url: "site.asmx/List_Page",
1873        data: "uid=" + uid,
1874        dataType: "text",
1875        success: function (msg) {
1876            var fin = msg.replace('<?xml version="1.0" encoding="utf-8"?>', '');
1877            var fin1 = fin.replace('<string xmlns="http://tempuri.org/">', '');
1878            var fin2 = fin1.replace('</string>', '');
1879            var fin4 = fin2.replace(/~/g, '<');
1880            var fin5 = fin4.replace(/`/g, '>');
1881
1882            document.getElementById("list_page").innerHTML = fin5;
1883        }
1884    });
1885}
1886
1887// alert popup
1888function Open_checkkeypopup() {
1889    $('.Commonoverlay').show();
1890    $('.checkkeyPopup').show();
1891    return false;
1892}
1893
1894function hide_checkkeypopup() {
1895    $('.CommonPopup').hide();
1896    $('.checkkeyPopup').hide();
1897
1898    window.location.replace("AccountSetup.aspx");
1899}
1900
1901function Opencommonpopup() {
1902    $('.Commonoverlay').show();
1903    $('.CommonPopup').show();
1904    return false;
1905}
1906
1907function hidecommonpopup() {
1908    $('.CommonPopup').hide();
1909    $('.Commonoverlay').hide();
1910    return false;
1911}
1912
1913// continue popup
1914function hideContinueSkip() {
1915    $('.popup_ContinueSkip').hide();
1916    $('.Commonoverlay').hide();
1917    return false;
1918}
1919
1920function openContinueSkip() {
1921    $('.popup_ContinueSkip').show();
1922    $('.Commonoverlay').show();
1923    return false;
1924}
1925
1926///////////////////////////////////////////////////////////////////////////////////////////////////////////
1927
1928
1929////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1930
1931// fill CC details of da
1932function FillDA_CreditCard() {
1933    var CreditCard = $('input[id$=txt_DA_CC]').val();
1934    var ccstate = $('input[id$=txt_DA_CC_State]').val();
1935    var cccity = $('input[id$=txt_DA_CC_City]').val();
1936    var cczipcode = $('input[id$=txt_DA_CC_ZipCode]').val();
1937    var ccaddress = document.getElementById("ContentPlaceHolder1_txt_DA_CC_address").value; //$('textarea[id$=txt_DA_Bank_address]').val();
1938    var uid = $('input[id$=hdn_uid]').val();
1939    var pcode = $('input[id$=hdn_pcode]').val();
1940    $.ajax({
1941        type: "POST",
1942        url: "site.asmx/FillDA_CreditCard",
1943        data: "pcode=" + pcode + "&uid=" + uid + "&CreditCard=" + CreditCard + "&ccstate=" + ccstate + "&cccity=" + cccity + "&cczipcode=" + cczipcode + "&ccaddress=" + ccaddress,
1944        dataType: "text",
1945        success: function (msg) {
1946            var fin = msg.replace('<?xml version="1.0" encoding="utf-8"?>', '');
1947            var fin1 = fin.replace('<string xmlns="http://tempuri.org/">', '');
1948            var fin2 = fin1.replace('</string>', '');
1949
1950            $('input[id$=hdn_popupstatus]').val("othrpdf");
1951            $("#div_commonpopup").html("Credit Card details saved successfully");
1952            Opencommonpopup();
1953        }
1954    });
1955}
1956/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1957
1958function UpdateCreditCardDetails() {
1959    var CreditCard = $('input[id$=txt_DA_CC]').val();
1960    var CCstate = $('input[id$=txt_DA_CC_State]').val();
1961    var CCcity = $('input[id$=txt_DA_CC_City]').val();
1962    var CCzipcode = $('input[id$=txt_DA_CC_ZipCode]').val();
1963    var CCaddress = document.getElementById("ContentPlaceHolder1_txt_DA_CC_address").value;
1964    var id = $("input[id$=hdn_listid]").val();
1965    var uid = $("input[id$=hdn_uid]").val();
1966    $.ajax({
1967        type: "POST",
1968        url: "site.asmx/UpdateCreditCardDetails",
1969        data: "id=" + id + "&uid=" + uid + "&CreditCard=" + CreditCard + "&CCstate=" + CCstate + "&CCcity=" + CCcity + "&CCzipcode=" + CCzipcode + "&CCaddress=" + CCaddress,
1970        dataType: "text",
1971        success: function (msg) {
1972            var fin = msg.replace('<?xml version="1.0" encoding="utf-8"?>', '');
1973            var fin1 = fin.replace('<string xmlns="http://tempuri.org/">', '');
1974            var fin2 = fin1.replace('</string>', '');
1975
1976            $('input[id$=hdn_popupstatus]').val("othrpdf");
1977            $("#div_commonpopup").html("Credit Card details updated successfully");
1978            Opencommonpopup();
1979        }
1980    });
1981}
1982
1983/////////////////////////
1984function FillDMV_details() {
1985    var DriverLicenseNumber = $('input[id$=txtdlno]').val();
1986    var Issueddate = $('input[id$=txtIssueDatedl]').val();
1987    var Validitydate = $('input[id$=txtValidityDatedl]').val();
1988    var VehicleIdentificationNo = $('input[id$=txtvin]').val();
1989    var TypeOfVehicle = document.getElementById("ContentPlaceHolder1_ddl_typeofvehicle").value;
1990    var MotorcycleEngineNo = $('input[id$=txtengineNo]').val();
1991    var ModelOrSeries = $('input[id$=txtmodel]').val();
1992
1993    var ccstate = $('input[id$=txtstatedmv]').val();
1994    var cccity = $('input[id$=txtcitydmv]').val();
1995    var cczipcode = $('input[id$=txtzipcodedmv]').val();
1996    var ccaddress = document.getElementById("ContentPlaceHolder1_txtdaddressdmv").value; //$('textarea[id$=txt_DA_Bank_address]').val();
1997    var uid = $('input[id$=hdn_uid]').val();
1998    var pcode = $('input[id$=hdn_pcode]').val();
1999    $.ajax({
2000        type: "POST",
2001        url: "site.asmx/FillDMV",
2002        data: "pcode=" + pcode + "&uid=" + uid + "&DriverLicenseNumber=" + DriverLicenseNumber + "&Issueddate=" + Issueddate + "&Validitydate=" + Validitydate + "&VehicleIdentificationNo=" + VehicleIdentificationNo + "&TypeOfVehicle=" + TypeOfVehicle + "&MotorcycleEngineNo=" + MotorcycleEngineNo + "&ModelOrSeries=" + ModelOrSeries + "&ccstate=" + ccstate + "&cccity=" + cccity + "&cczipcode=" + cczipcode + "&ccaddress=" + ccaddress,
2003        dataType: "text",
2004        success: function (msg) {
2005            var fin = msg.replace('<?xml version="1.0" encoding="utf-8"?>', '');
2006            var fin1 = fin.replace('<string xmlns="http://tempuri.org/">', '');
2007            var fin2 = fin1.replace('</string>', '');
2008
2009            $('input[id$=hdn_popupstatus]').val("othrpdf");
2010            $("#div_commonpopup").html("Credit DMV saved successfully");
2011            Opencommonpopup();
2012        }
2013    });
2014}
2015
2016function UpdateFillDMV_details() {
2017    var DriverLicenseNumber = $('input[id$=txtdlno]').val();
2018    var Issueddate = $('input[id$=txtIssueDatedl]').val();
2019    var Validitydate = $('input[id$=txtValidityDatedl]').val();
2020    var VehicleIdentificationNo = $('input[id$=txtvin]').val();
2021    var TypeOfVehicle = document.getElementById("ContentPlaceHolder1_ddl_typeofvehicle").value;
2022    var MotorcycleEngineNo = $('input[id$=txtengineNo]').val();
2023    var ModelOrSeries = $('input[id$=txtmodel]').val();
2024
2025    var ccstate = $('input[id$=txtstatedmv]').val();
2026    var cccity = $('input[id$=txtcitydmv]').val();
2027    var cczipcode = $('input[id$=txtzipcodedmv]').val();
2028    var ccaddress = document.getElementById("ContentPlaceHolder1_txtdaddressdmv").value; //$('textarea[id$=txt_DA_Bank_address]').val();
2029
2030    var id = $("input[id$=hdn_listid]").val();
2031    var uid = $("input[id$=hdn_uid]").val();
2032    $.ajax({
2033        type: "POST",
2034        url: "site.asmx/UpdateDMVDetails",
2035        data: "id=" + id + "&uid=" + uid + "&DriverLicenseNumber=" + DriverLicenseNumber + "&Issueddate=" + Issueddate + "&Validitydate=" + Validitydate + "&VehicleIdentificationNo=" + VehicleIdentificationNo + "&TypeOfVehicle=" + TypeOfVehicle + "&MotorcycleEngineNo=" + MotorcycleEngineNo + "&ModelOrSeries=" + ModelOrSeries + "&ccstate=" + ccstate + "&cccity=" + cccity + "&cczipcode=" + cczipcode + "&ccaddress=" + ccaddress,
2036
2037        dataType: "text",
2038        success: function (msg) {
2039            var fin = msg.replace('<?xml version="1.0" encoding="utf-8"?>', '');
2040            var fin1 = fin.replace('<string xmlns="http://tempuri.org/">', '');
2041            var fin2 = fin1.replace('</string>', '');
2042
2043            $('input[id$=hdn_popupstatus]').val("othrpdf");
2044            $("#div_commonpopup").html("DMV details updated successfully");
2045            Opencommonpopup();
2046        }
2047    });
2048}
2049
2050///////////////Employer save//////////////////////////////////////////
2051
2052function FillEmployer_details() {
2053    var regisNo = $('input[id$=txt_regisNo]').val();
2054    var companyname = $('input[id$=txt_comp]').val();
2055    var estdate = $('input[id$=txt_estdt]').val();
2056    var ccaddress = document.getElementById("ContentPlaceHolder1_txt_addressemp").value; //$('textarea[id$=txt_DA_Bank_address]').val();
2057    var ccstate = $('input[id$=txt_state]').val();
2058    var cccity = $('input[id$=txt_city]').val();
2059    var cczipcode = $('input[id$=txt_zip]').val();
2060    var lastworkingDt = $('input[id$=txtlastwrkingDt]').val();
2061    var designation = document.getElementById("ContentPlaceHolder1_ddl_designation").value;
2062
2063    var uid = $('input[id$=hdn_uid]').val();
2064    var pcode = $('input[id$=hdn_pcode]').val();
2065    $.ajax({
2066        type: "POST",
2067        url: "site.asmx/FillEmployer",
2068        data: "pcode=" + pcode + "&uid=" + uid + "&regisNo=" + regisNo + "&companyname=" + companyname + "&estdate=" + estdate + "&ccstate=" + ccstate + "&cccity=" + cccity + "&cczipcode=" + cczipcode + "&ccaddress=" + ccaddress + "&lastworkingDt=" + lastworkingDt + "&Designation=" + designation,
2069        dataType: "text",
2070        success: function (msg) {
2071            var fin = msg.replace('<?xml version="1.0" encoding="utf-8"?>', '');
2072            var fin1 = fin.replace('<string xmlns="http://tempuri.org/">', '');
2073            var fin2 = fin1.replace('</string>', '');
2074
2075            $('input[id$=hdn_popupstatus]').val("othrpdf");
2076            $("#div_commonpopup").html("Employer Details saved successfully");
2077            Opencommonpopup();
2078        }
2079    });
2080}
2081
2082//////////////////Update Employer details
2083
2084function UpdateEmployer_details() {
2085
2086    var regisNo = $('input[id$=txt_regisNo]').val();
2087    var companyname = $('input[id$=txt_comp]').val();
2088    var estdate = $('input[id$=txt_estdt]').val();
2089    var ccaddress = document.getElementById("ContentPlaceHolder1_txt_addressemp").value; //$('textarea[id$=txt_DA_Bank_address]').val();
2090    var ccstate = $('input[id$=txt_state]').val();
2091    var cccity = $('input[id$=txt_city]').val();
2092    var cczipcode = $('input[id$=txt_zip]').val();
2093    var lastworkingDt = $('input[id$=txtlastwrkingDt]').val();
2094    var designation = document.getElementById("ContentPlaceHolder1_ddl_designation").value;
2095
2096    var id = $("input[id$=hdn_listid]").val();
2097    var uid = $("input[id$=hdn_uid]").val();
2098    $.ajax({
2099        type: "POST",
2100        url: "site.asmx/UpdateEmployerDetails",
2101        data: "id=" + id + "&uid=" + uid + "&regisNo=" + regisNo + "&companyname=" + companyname + "&estdate=" + estdate + "&ccstate=" + ccstate + "&cccity=" + cccity + "&cczipcode=" + cczipcode + "&ccaddress=" + ccaddress + "&lastworkingDt=" + lastworkingDt + "&Designation=" + designation,
2102
2103        dataType: "text",
2104        success: function (msg) {
2105            var fin = msg.replace('<?xml version="1.0" encoding="utf-8"?>', '');
2106            var fin1 = fin.replace('<string xmlns="http://tempuri.org/">', '');
2107            var fin2 = fin1.replace('</string>', '');
2108
2109            $('input[id$=hdn_popupstatus]').val("othrpdf");
2110            $("#div_commonpopup").html("Employer Details updated successfully");
2111            Opencommonpopup();
2112        }
2113    });
2114}
2115
2116function FillLifeInsurance_details() {
2117    var PolicyNo = $('input[id$=txt_ploicyNo]').val();
2118    var Policyname = $('input[id$=txt_policyname]').val();
2119    var maturitydate = $('input[id$=txt_maturityDt]').val();
2120    var ccaddress = document.getElementById("ContentPlaceHolder1_txt_addressInsr").value;
2121    var ccstate = $('input[id$=txt_stateInsr]').val();
2122    var cccity = $('input[id$=txt_cityInsr]').val();
2123    var cczipcode = $('input[id$=txt_zipInsr]').val();
2124
2125    var uid = $('input[id$=hdn_uid]').val();
2126    var pcode = $('input[id$=hdn_pcode]').val();
2127    $.ajax({
2128        type: "POST",
2129        url: "site.asmx/FillLifeInsurance",
2130        data: "pcode=" + pcode + "&uid=" + uid + "&PolicyNo=" + PolicyNo + "&PolicyName=" + Policyname + "&Maturitydate=" + maturitydate + "&ccstate=" + ccstate + "&cccity=" + cccity + "&cczipcode=" + cczipcode + "&ccaddress=" + ccaddress,
2131        dataType: "text",
2132        success: function (msg) {
2133            var fin = msg.replace('<?xml version="1.0" encoding="utf-8"?>', '');
2134            var fin1 = fin.replace('<string xmlns="http://tempuri.org/">', '');
2135            var fin2 = fin1.replace('</string>', '');
2136
2137            $('input[id$=hdn_popupstatus]').val("othrpdf");
2138            $("#div_commonpopup").html("Life Insurance Details saved successfully");
2139            Opencommonpopup();
2140        }
2141    });
2142}
2143
2144function UpdateLifeInsurance_details() {
2145
2146    var PolicyNo = $('input[id$=txt_ploicyNo]').val();
2147    var Policyname = $('input[id$=txt_policyname]').val();
2148    var maturitydate = $('input[id$=txt_maturityDt]').val();
2149    var ccaddress = document.getElementById("ContentPlaceHolder1_txt_addressInsr").value;
2150    var ccstate = $('input[id$=txt_stateInsr]').val();
2151    var cccity = $('input[id$=txt_cityInsr]').val();
2152    var cczipcode = $('input[id$=txt_zipInsr]').val();
2153
2154    var id = $("input[id$=hdn_listid]").val();
2155    var uid = $("input[id$=hdn_uid]").val();
2156    $.ajax({
2157        type: "POST",
2158        url: "site.asmx/UpdateLifeInsurance_details",
2159        data: "id=" + id + "&uid=" + uid + "&PolicyNo=" + PolicyNo + "&PolicyName=" + Policyname + "&Maturitydate=" + maturitydate + "&ccstate=" + ccstate + "&cccity=" + cccity + "&cczipcode=" + cczipcode + "&ccaddress=" + ccaddress,
2160
2161        dataType: "text",
2162        success: function (msg) {
2163            var fin = msg.replace('<?xml version="1.0" encoding="utf-8"?>', '');
2164            var fin1 = fin.replace('<string xmlns="http://tempuri.org/">', '');
2165            var fin2 = fin1.replace('</string>', '');
2166
2167            $('input[id$=hdn_popupstatus]').val("othrpdf");
2168            $("#div_commonpopup").html("Life Insurance Details updated successfully");
2169            Opencommonpopup();
2170        }
2171    });
2172}
2173
2174function FillInvestmentFinance_details() {
2175
2176    var investmentNo = $('input[id$=txt_InvestNo]').val();
2177    var investmentname = $('input[id$=txt_investmentcomp]').val();
2178    var ccaddress = document.getElementById("ContentPlaceHolder1_txt_addressIns").value;
2179    var ccstate = $('input[id$=txt_stateIns]').val();
2180    var cccity = $('input[id$=txt_cityIns]').val();
2181    var cczipcode = $('input[id$=txt_zipIns]').val();
2182
2183    var uid = $('input[id$=hdn_uid]').val();
2184    var pcode = $('input[id$=hdn_pcode]').val();
2185    $.ajax({
2186        type: "POST",
2187        url: "site.asmx/FillInvestmentFinance",
2188        data: "pcode=" + pcode + "&uid=" + uid + "&investmentNo=" + investmentNo + "&investmentname=" + investmentname + "&ccstate=" + ccstate + "&cccity=" + cccity + "&cczipcode=" + cczipcode + "&ccaddress=" + ccaddress,
2189        dataType: "text",
2190        success: function (msg) {
2191            var fin = msg.replace('<?xml version="1.0" encoding="utf-8"?>', '');
2192            var fin1 = fin.replace('<string xmlns="http://tempuri.org/">', '');
2193            var fin2 = fin1.replace('</string>', '');
2194
2195            $('input[id$=hdn_popupstatus]').val("othrpdf");
2196            $("#div_commonpopup").html("Investment Financial Institution saved successfully");
2197            Opencommonpopup();
2198        }
2199    });
2200}
2201
2202function UpdateInvestmentFinance_details() {
2203    var investmentNo = $('input[id$=txt_InvestNo]').val();
2204    var investmentname = $('input[id$=txt_investmentcomp]').val();
2205    var ccaddress = document.getElementById("ContentPlaceHolder1_txt_addressIns").value;
2206    var ccstate = $('input[id$=txt_stateIns]').val();
2207    var cccity = $('input[id$=txt_cityIns]').val();
2208    var cczipcode = $('input[id$=txt_zipIns]').val();
2209
2210    var id = $("input[id$=hdn_listid]").val();
2211    var uid = $("input[id$=hdn_uid]").val();
2212    $.ajax({
2213        type: "POST",
2214        url: "site.asmx/UpdateInvestment_details",
2215        data: "id=" + id + "&uid=" + uid + "&investmentNo=" + investmentNo + "&investmentname=" + investmentname + "&ccstate=" + ccstate + "&cccity=" + cccity + "&cczipcode=" + cczipcode + "&ccaddress=" + ccaddress,
2216
2217        dataType: "text",
2218        success: function (msg) {
2219            var fin = msg.replace('<?xml version="1.0" encoding="utf-8"?>', '');
2220            var fin1 = fin.replace('<string xmlns="http://tempuri.org/">', '');
2221            var fin2 = fin1.replace('</string>', '');
2222
2223            $('input[id$=hdn_popupstatus]').val("othrpdf");
2224            $("#div_commonpopup").html("Investment Financial Institution updated successfully");
2225            Opencommonpopup();
2226        }
2227    });
2228}
2229
2230function FillMortgage_details() {
2231
2232    var serialNo = $('input[id$=txt_serialno]').val();
2233    var mortgageComp = $('input[id$=txt_mortgage]').val();
2234    var amount = $('input[id$=txt_loanamount]').val();
2235    var ccaddress = document.getElementById("ContentPlaceHolder1_txt_addressm").value;
2236    var ccstate = $('input[id$=txt_statem]').val();
2237    var cccity = $('input[id$=txt_citym]').val();
2238    var cczipcode = $('input[id$=txt_zipm]').val();
2239
2240    var uid = $('input[id$=hdn_uid]').val();
2241    var pcode = $('input[id$=hdn_pcode]').val();
2242    $.ajax({
2243        type: "POST",
2244        url: "site.asmx/FillMortgage",
2245        data: "pcode=" + pcode + "&uid=" + uid + "&serialNo=" + serialNo + "&mortgageComp=" + mortgageComp + "&amount=" + amount + "&ccstate=" + ccstate + "&cccity=" + cccity + "&cczipcode=" + cczipcode + "&ccaddress=" + ccaddress,
2246        dataType: "text",
2247        success: function (msg) {
2248            var fin = msg.replace('<?xml version="1.0" encoding="utf-8"?>', '');
2249            var fin1 = fin.replace('<string xmlns="http://tempuri.org/">', '');
2250            var fin2 = fin1.replace('</string>', '');
2251
2252            $('input[id$=hdn_popupstatus]').val("othrpdf");
2253            $("#div_commonpopup").html("Mortgage Company saved successfully");
2254            Opencommonpopup();
2255        }
2256    });
2257}
2258
2259function UpdateMortgage_details() {
2260    var serialNo = $('input[id$=txt_serialno]').val();
2261    var mortgageComp = $('input[id$=txt_mortgage]').val();
2262    var amount = $('input[id$=txt_loanamount]').val();
2263    var ccaddress = document.getElementById("ContentPlaceHolder1_txt_addressm").value;
2264    var ccstate = $('input[id$=txt_statem]').val();
2265    var cccity = $('input[id$=txt_citym]').val();
2266    var cczipcode = $('input[id$=txt_zipm]').val();
2267
2268    var id = $("input[id$=hdn_listid]").val();
2269    var uid = $("input[id$=hdn_uid]").val();
2270    $.ajax({
2271        type: "POST",
2272        url: "site.asmx/UpdateMortgage_details",
2273        data: "id=" + id + "&uid=" + uid + "&serialNo=" + serialNo + "&mortgageComp=" + mortgageComp + "&amount=" + amount + "&ccstate=" + ccstate + "&cccity=" + cccity + "&cczipcode=" + cczipcode + "&ccaddress=" + ccaddress,
2274
2275        dataType: "text",
2276        success: function (msg) {
2277            var fin = msg.replace('<?xml version="1.0" encoding="utf-8"?>', '');
2278            var fin1 = fin.replace('<string xmlns="http://tempuri.org/">', '');
2279            var fin2 = fin1.replace('</string>', '');
2280
2281            $('input[id$=hdn_popupstatus]').val("othrpdf");
2282            $("#div_commonpopup").html("Mortgage Company updated successfully");
2283            Opencommonpopup();
2284        }
2285    });
2286}
2287
2288function FillTransUnion_details() {
2289
2290    var subscription = $('input[id$=txt_subscription]').val();
2291    var subscribercode = $('input[id$=txt_subscribercode]').val();
2292    var ccaddress = document.getElementById("ContentPlaceHolder1_txt_addresssubs").value;
2293    var ccstate = $('input[id$=txt_statesubs]').val();
2294    var cccity = $('input[id$=txt_citysubs]').val();
2295    var cczipcode = $('input[id$=txt_zipsubs]').val();
2296
2297    var uid = $('input[id$=hdn_uid]').val();
2298    var pcode = $('input[id$=hdn_pcode]').val();
2299    $.ajax({
2300        type: "POST",
2301        url: "site.asmx/FillTransUnion",
2302        data: "pcode=" + pcode + "&uid=" + uid + "&subscription=" + subscription + "&subscribercode=" + subscribercode + "&ccstate=" + ccstate + "&cccity=" + cccity + "&cczipcode=" + cczipcode + "&ccaddress=" + ccaddress,
2303        dataType: "text",
2304        success: function (msg) {
2305            var fin = msg.replace('<?xml version="1.0" encoding="utf-8"?>', '');
2306            var fin1 = fin.replace('<string xmlns="http://tempuri.org/">', '');
2307            var fin2 = fin1.replace('</string>', '');
2308
2309            $('input[id$=hdn_popupstatus]').val("othrpdf");
2310            $("#div_commonpopup").html("TransUnion Details saved successfully");
2311            Opencommonpopup();
2312        }
2313    });
2314}
2315
2316function UpdateTransUnion_details() {
2317    var subscription = $('input[id$=txt_subscription]').val();
2318    var subscribercode = $('input[id$=txt_subscribercode]').val();
2319    var ccaddress = document.getElementById("ContentPlaceHolder1_txt_addresssubs").value;
2320    var ccstate = $('input[id$=txt_statesubs]').val();
2321    var cccity = $('input[id$=txt_citysubs]').val();
2322    var cczipcode = $('input[id$=txt_zipsubs]').val();
2323
2324    var id = $("input[id$=hdn_listid]").val();
2325    var uid = $("input[id$=hdn_uid]").val();
2326    $.ajax({
2327        type: "POST",
2328        url: "site.asmx/UpdateTransUnion",
2329        data: "id=" + id + "&uid=" + uid + "&subscription=" + subscription + "&subscribercode=" + subscribercode + "&ccstate=" + ccstate + "&cccity=" + cccity + "&cczipcode=" + cczipcode + "&ccaddress=" + ccaddress,
2330
2331        dataType: "text",
2332        success: function (msg) {
2333            var fin = msg.replace('<?xml version="1.0" encoding="utf-8"?>', '');
2334            var fin1 = fin.replace('<string xmlns="http://tempuri.org/">', '');
2335            var fin2 = fin1.replace('</string>', '');
2336
2337            $('input[id$=hdn_popupstatus]').val("othrpdf");
2338            $("#div_commonpopup").html("TransUnion Details updated successfully");
2339            Opencommonpopup();
2340        }
2341    });
2342}
2343
2344function FillEquifax_details() {
2345    var creditcardNo = $('input[id$=txt_creditcardNo]').val();
2346    var subscriptionName = $('input[id$=txt_subscriptionName]').val();
2347    var subscriptioncode = $('input[id$=txt_subscribercodeeq]').val();
2348    var ccaddress = document.getElementById("ContentPlaceHolder1_txt_addressequ").value;
2349    var ccstate = $('input[id$=txt_stateequ]').val();
2350    var cccity = $('input[id$=txt_cityequ]').val();
2351    var cczipcode = $('input[id$=txt_zipequ]').val();
2352
2353    var uid = $('input[id$=hdn_uid]').val();
2354    var pcode = $('input[id$=hdn_pcode]').val();
2355    $.ajax({
2356        type: "POST",
2357        url: "site.asmx/FillEquifax",
2358        data: "pcode=" + pcode + "&uid=" + uid + "&creditcardNo=" + creditcardNo + "&subscriptionName=" + subscriptionName + "&subscriptioncode=" + subscriptioncode + "&ccstate=" + ccstate + "&cccity=" + cccity + "&cczipcode=" + cczipcode + "&ccaddress=" + ccaddress,
2359        dataType: "text",
2360        success: function (msg) {
2361            var fin = msg.replace('<?xml version="1.0" encoding="utf-8"?>', '');
2362            var fin1 = fin.replace('<string xmlns="http://tempuri.org/">', '');
2363            var fin2 = fin1.replace('</string>', '');
2364
2365            $('input[id$=hdn_popupstatus]').val("othrpdf");
2366            $("#div_commonpopup").html("Equifax Details saved successfully");
2367            Opencommonpopup();
2368        }
2369    });
2370}
2371
2372function UpdateEquifax_details() {
2373    var creditcardNo = $('input[id$=txt_creditcardNo]').val();
2374    var subscriptionName = $('input[id$=txt_subscriptionName]').val();
2375    var subscriptioncode = $('input[id$=txt_subscribercodeeq]').val();
2376    var ccaddress = document.getElementById("ContentPlaceHolder1_txt_addressequ").value;
2377    var ccstate = $('input[id$=txt_stateequ]').val();
2378    var cccity = $('input[id$=txt_cityequ]').val();
2379    var cczipcode = $('input[id$=txt_zipequ]').val();
2380
2381    var id = $("input[id$=hdn_listid]").val();
2382    var uid = $("input[id$=hdn_uid]").val();
2383    $.ajax({
2384        type: "POST",
2385        url: "site.asmx/UpdateEquifax",
2386        data: "id=" + id + "&uid=" + uid + "&creditcardNo=" + creditcardNo + "&subscriptionName=" + subscriptionName + "&subscriptioncode=" + subscriptioncode + "&ccstate=" + ccstate + "&cccity=" + cccity + "&cczipcode=" + cczipcode + "&ccaddress=" + ccaddress,
2387
2388        dataType: "text",
2389        success: function (msg) {
2390            var fin = msg.replace('<?xml version="1.0" encoding="utf-8"?>', '');
2391            var fin1 = fin.replace('<string xmlns="http://tempuri.org/">', '');
2392            var fin2 = fin1.replace('</string>', '');
2393
2394            $('input[id$=hdn_popupstatus]').val("othrpdf");
2395            $("#div_commonpopup").html("Equifax Details updated successfully");
2396            Opencommonpopup();
2397        }
2398    });
2399}
2400
2401////////////////////Save Experience//////////////////////////////////////////
2402function FillExperience_details() {
2403    var exp = $('input[id$=txt_exp]').val();
2404    var functional = document.getElementById("ContentPlaceHolder1_ddl_funarea").value;
2405    var ccaddress = document.getElementById("ContentPlaceHolder1_txt_addressexp").value;
2406    var ccstate = $('input[id$=txt_stateexp]').val();
2407    var cccity = $('input[id$=txt_cityexp]').val();
2408    var cczipcode = $('input[id$=txt_zipcodeexp]').val();
2409
2410    var uid = $('input[id$=hdn_uid]').val();
2411    var pcode = $('input[id$=hdn_pcode]').val();
2412    $.ajax({
2413        type: "POST",
2414        url: "site.asmx/FillExperience",
2415        data: "pcode=" + pcode + "&uid=" + uid + "&exp=" + exp + "&functional=" + functional + "&ccstate=" + ccstate + "&cccity=" + cccity + "&cczipcode=" + cczipcode + "&ccaddress=" + ccaddress,
2416        dataType: "text",
2417        success: function (msg) {
2418            var fin = msg.replace('<?xml version="1.0" encoding="utf-8"?>', '');
2419            var fin1 = fin.replace('<string xmlns="http://tempuri.org/">', '');
2420            var fin2 = fin1.replace('</string>', '');
2421
2422            $('input[id$=hdn_popupstatus]').val("othrpdf");
2423            $("#div_commonpopup").html("Experience Details saved successfully");
2424            Opencommonpopup();
2425        }
2426    });
2427}
2428
2429////////////////////////Update Experience///////////////////
2430
2431function UpdateExperience_details() {
2432    var exp = $('input[id$=txt_exp]').val();
2433    var functional = document.getElementById("ContentPlaceHolder1_ddl_funarea").value;
2434
2435    var ccaddress = document.getElementById("ContentPlaceHolder1_txt_addressexp").value;
2436    var ccstate = $('input[id$=txt_stateexp]').val();
2437    var cccity = $('input[id$=txt_cityexp]').val();
2438    var cczipcode = $('input[id$=txt_zipcodeexp]').val();
2439
2440    var id = $("input[id$=hdn_listid]").val();
2441    var uid = $("input[id$=hdn_uid]").val();
2442    $.ajax({
2443        type: "POST",
2444        url: "site.asmx/UpdateExperience",
2445        data: "id=" + id + "&uid=" + uid + "&exp=" + exp + "&functional=" + functional + "&ccstate=" + ccstate + "&cccity=" + cccity + "&cczipcode=" + cczipcode + "&ccaddress=" + ccaddress,
2446
2447        dataType: "text",
2448        success: function (msg) {
2449            var fin = msg.replace('<?xml version="1.0" encoding="utf-8"?>', '');
2450            var fin1 = fin.replace('<string xmlns="http://tempuri.org/">', '');
2451            var fin2 = fin1.replace('</string>', '');
2452
2453            $('input[id$=hdn_popupstatus]').val("othrpdf");
2454            $("#div_commonpopup").html("Experience Details updated successfully");
2455            Opencommonpopup();
2456        }
2457    });
2458}
2459
2460function leapYear(year) {
2461    return ((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0);
2462}
2463
2464function StrContainsNumber(inputtxt) {
2465    if (inputtxt.search(/\d/) != -1) {
2466        return false;
2467    } else {
2468        return true;
2469    }
2470}
2471
2472function StrContainsString(inputtxt) {
2473    if (inputtxt.search(/^[0-9]+$/) != -1) {
2474        return true;
2475    } else {
2476        return false;
2477    }
2478}
2479
2480function onlyalpha(txb) {
2481    txb.value = txb.value.replace(/[^.A-Za-z0-9-_, ]+/gi, '');
2482}
2483function onlyalphaaddrss(txb) {
2484    txb.value = txb.value.replace(/[^.A-Za-z0-9-_, ]+/gi, '');
2485}

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.