PageSourceSearch

https://debtorcc.org/Content/js/Debtor/CreateAttorney-1.js?ver=202606240333

js debtorcc.org collected 2026-09-26 04:51:45 UTC 30,014 bytes, 720 lines download raw bytes

1
2
3
4//function hidethis(e) {  //changed method parsley validations..(for hiding)
5//    $(e).addClass('hidden');
6//    var value = parseInt(parseInt(e.id));
7//    var value1 = parseInt(parseInt(e.id) + 1);
8
9//    $('#' + value).parent('div').removeClass('hidden');
10//    if (value1 != 20) {
11//        $('#' + value1).removeClass('hidden');
12//    }
13//    $('#' + value1).parent('div').removeClass('hidden');
14
15//    $("#additionalmails_" + value1).removeClass().addClass("form-group");
16//    return false;
17//}
18
19//function checkvalidemail() {
20//    var txtAttorneyEmail = $('#txtEmailAddress').val().trim();
21//    for (var i = 1; i <= 20; i++) {
22//        var txtAdditionalEmail = $('#txtAttorneyEmail_' + i.toString()).val().trim();
23//        var lblEmailError = $("#txtAttorneyEmail_" + i.toString() + "_Error");
24//        if (txtAdditionalEmail != "" && txtAdditionalEmail == txtAttorneyEmail) {
25
26//            $('#txtAttorneyEmail_' + i.toString()).addClass("parsley-error");
27//            $('#additionalmails_' + i.toString()).addClass('input-error');
28//            lblEmailError.html($('#duplicatemail').val());
29//            $('#txtAttorneyEmail_' + i.toString()).focus();
30//            $('#txtAttorneyEmail_' + i.toString()).val($('#txtAttorneyEmail_' + i.toString()).val());
31//            return false;
32//        }
33//        else {
34//            lblEmailError.html('');
35//            $('#txtAttorneyEmail_' + i.toString()).removeClass('parsley-error');
36//            $('#additionalmails_' + i.toString()).removeClass('input-error');
37
38//        }
39//    }
40//    return true;
41//}
42
43//function checkduplicatemails() {
44//    if (checkvalidemail()) {
45//        var txtEmails = new Array();
46//        for (var i = 0; i < 20; i++) {
47//            txtEmails[i] = $('#txtAttorneyEmail_' + (i + 1).toString()).val().trim();
48//        }
49//        for (var i = 0; i < 20; i++) {
50//            if (txtEmails[i].length != 0) {
51//                for (var j = i + 1; j < txtEmails.length; j++) {
52//                    if (txtEmails[j].length != 0 && txtEmails[j] == txtEmails[i]) {
53
54//                        $('#txtAttorneyEmail_' + (j + 1).toString()).addClass('parsley-error');
55//                        $('#additionalmails_' + (j + 1).toString()).addClass('input-error');
56//                        $("#txtAttorneyEmail_" + (j + 1).toString() + "_Error").html($('#duplicatemail').val());
57//                        $('#txtAttorneyEmail_' + (j + 1).toString()).focus();
58//                        $('html,body').animate({ scrollTop: $('#txtAttorneyEmail_' + (j + 1).toString()).offset().top - 120 }, "fast");
59//                        return false;
60//                    }
61//                    else {
62//                        $('#txtAttorneyEmail_' + (j + 1).toString()).removeClass('parsley-error');
63//                        $('#additionalmails_' + (j + 1).toString()).removeClass('input-error');
64//                        $("#lblAttorneyEmail" + (j + 1).toString()).html("");
65//                    }
66//                }
67//            }
68//        }
69//        return true;
70//    }
71//    else {
72//        return false;
73//    }
74//}
75
76//var changeCheck2 = function () {
77//    $('#ChkBilling').on('change', function () {
78//        if ($('#ChkBilling').is(':checked')) {
79//            $('#custom-block').removeClass('hidden');
80//        }
81//        else {
82//            $('#custom-block').addClass('hidden');
83//            $('#cardType').html("<br/>");
84//            $('#custom-block').find('input').each(function () {
85//                if ($(this).hasClass('parsley-error')) {
86//                    $(this).removeClass().addClass('form-control')
87//                    $(this).closest('div').removeClass().addClass('form-group');
88//                }
89//                $(this).val('');
90//            });
91//            $('#custom-block').find('select').each(function () {
92//                if ($(this).hasClass('parsley-error')) {
93//                    $(this).removeClass().addClass('form-control jcf-hidden')
94//                    $(this).closest('div').find('span.jcf-select-form-control').removeClass("parsley-error");
95//                    $(this).closest('div').find("span.jcf-option-hideme").removeClass("selectparsleycolor");
96//                    $(this).closest('div').removeClass('input-error');
97//                }
98//                $(this).val('');
99//                jcf.refreshAll();
100//            });
101//        }
102//    });
103//}
104
105//function chkcreditcard() {
106//    if ($("#ChkBilling").is(':checked')) {
107//        $('#custom-block').wrap('<form id="form2"></form1>');
108//        $('#form2').parsley().validate();
109//        if ($('#form2').parsley().isValid() && validcardsubmit() && payment_expdate()) {
110//            $('#custom-block').unwrap();
111//            return true;
112//        }
113//        else {
114//            $('#form2').find('input, select').each(function () {
115//                if ($(this).attr("id") == "txtcardnumber") { validcardsubmit(); }
116//                else {
117//                    if ($(this).hasClass("parsley-error")) {
118//                        $(this).closest('div').addClass('input-error');
119//                        //===== for ie 9 place holsers, messages
120//                        if ($.browser.msie && $.browser.version == 9.0) {
121//                            if (this.value != null && this.value != "") {
122//                                this.value = this.value;
123//                            }
124//                        };
125//                        //=====
126//                        if ($(this).hasClass("jcf-hidden parsley-error")) {
127//                            $(this).closest('div').find('span.jcf-select-form-control').addClass("parsley-error");
128//                            $(this).closest('div').find("span.jcf-option-hideme").addClass("selectparsleycolor");
129//                        }
130//                    }
131//                    else {
132//                        $(this).closest('div').removeClass('input-error');
133//                        if ($(this).attr('class') == "form-control jcf-hidden parsley-success") {
134//                            $(this).closest('div').find('span.jcf-select-form-control').removeClass("parsley-error");
135//                            $(this).closest('div').find("span.jcf-option-hideme").removeClass("selectparsleycolor");
136//                        }
137//                    }
138//                }
139//            })
140
141//            return false;
142//        }
143
144
145//    }
146//    else { return true; }
147
148//}
149
150//function chkmaindiv() {
151//    $('#dvcommon').wrap('<form id="form1"></form>');
152//    $('#form1').parsley().validate();
153//    if ($('#form1').parsley().isValid() && phoneChange('#txtPhone')) {
154//        $('#dvcommon').unwrap();
155//        if (checkduplicatemails())
156//            return true;
157//    }
158//    else {
159//        $('#form1').find('select, input').each(function () {
160//            if ($(this).attr("id") == "txtPhone") { phoneChange(this); }
161//            if ($(this).hasClass("parsley-error") || $(this).hasClass("jcf-hidden parsley-error")) {
162//                $(this).closest('div').addClass('input-error');
163//                //===== for ie 9 place holsers, messages
164//                if ($.browser.msie && $.browser.version == 9.0) {
165//                    if (this.value != null && this.value != "") {
166//                        this.value = this.value;
167//                    }
168//                };
169//                //=====
170//                if ($(this).hasClass("jcf-hidden parsley-error")) {
171//                    $(this).closest('div').find('span.jcf-select-form-control').addClass("parsley-error");
172//                    $(this).closest('div').find("span.jcf-option-hideme").addClass("selectparsleycolor");
173//                }
174//            }
175//            else {
176//                $(this).closest('div').removeClass('input-error');
177//                if ($(this).attr('class') == "form-control jcf-hidden parsley-success") {
178//                    $(this).closest('div').find('span.jcf-select-form-control').removeClass("parsley-error");
179//                    $(this).closest('div').find("span.jcf-option-hideme").removeClass("selectparsleycolor");
180//                }
181//            }
182//        })
183//        if (dropDownScroll('#divddlState', '#ddlState'))
184//        { dropDownScroll('#phonediv', '#txtPhone') }
185//        return false;
186//    }
187//}
188
189//function buttonclicked1() {
190
191//    count1 = 0;
192//    var a = 0; b = 0;
193//    if (chkcreditcard()) { b = 1 }
194//    if (chkmaindiv()) { a = 1 }
195//    if (a == 1 && b == 1) {
196//        if ($("#ChkBilling").is(':checked')) {
197//            if (b == 1) {
198//                submit();
199//            }
200//            else {
201//                $('#message').html('The credit card number is invali
201d');
202//                $('#messagediv').removeClass('hidden');
203//                showMessage();
204//                return false;
205//            }
206//        }
207//        else { submit(); }
208
209
210//    } else { return false; }
211//}
212
213
214//function buttonclicked() {
215//    if ($("#ChkBilling").is(':checked')) {
216//        if (validateTotalForm()) {
217//            submit();
218//        } else {
219//            return false;
220//        }
221//    }
222//    else {
223//        if (validateMainForm()) {
224//            submit();
225//        } else {
226//            return false;
227//        }
228//    }
229//}
230
231//function validateTotalForm() {
232//    $('#formCreateAttorney').parsley().validate();
233//    if ($('#formCreateAttorney').parsley().isValid() && phoneChange('#txtPhone') && validcardsubmit() && payment_expdate()) {
234//        if (checkduplicatemails())
235//            return true;
236//    }
237//    else {
238//        $('#formCreateAttorney').find('select, input').each(function () {
239//            if ($(this).attr("id") == "txtcardnumber") { validcardsubmit(); }
240//            if ($(this).attr("id") == "txtPhone") { phoneChange(this); }
241//            if ($(this).hasClass("parsley-error") || $(this).hasClass("jcf-hidden parsley-error")) {
242//                $(this).closest('div').addClass('input-error');
243//                //===== for ie 9 place holsers, messages
244//                if ($.browser.msie && $.browser.version == 9.0) {
245//                    if (this.value != null && this.value != "") {
246//                        this.value = this.value;
247//                    }
248//                };
249//                //=====
250//                if ($(this).hasClass("jcf-hidden parsley-error")) {
251//                    $(this).closest('div').find('span.jcf-select-form-control').addClass("parsley-error");
252//                    $(this).closest('div').find("span.jcf-option-hideme").addClass("selectparsleycolor");
253//                }
254//            }
255//            else {
256//                $(this).closest('div').removeClass('input-error');
257//                if ($(this).attr('class') == "form-control jcf-hidden parsley-success") {
258//                    $(this).closest('div').find('span.jcf-select-form-control').removeClass("parsley-error");
259//                    $(this).closest('div').find("span.jcf-option-hideme").removeClass("selectparsleycolor");
260//                }
261//            }
262//        })
263//        if (dropDownScroll('#divddlState', '#ddlState')) { dropDownScroll('#phonediv', '#txtPhone') }
264//        return false;
265//    }
266//}
267
268//function validateMainForm() {
269//    $('#dvcommon').wrap('<form id="form1"></form>');
270//    $('#form1').parsley().validate();
271//    if ($('#form1').parsley().isValid() && phoneChange('#txtPhone')) {
272//        $('#dvcommon').unwrap();
273//        if (checkduplicatemails())
274//            return true;
275//    }
276//    else {
277//        $('#form1').find('select, input').each(function () {
278//            if ($(this).attr("id") == "txtPhone") { phoneChange(this); }
279//            if ($(this).hasClass("parsley-error") || $(this).hasClass("jcf-hidden parsley-error")) {
280//                $(this).closest('div').addClass('input-error');
281//                //===== for ie 9 place holsers, messages
282//                if ($.browser.msie && $.browser.version == 9.0) {
283//                    if (this.value != null && this.value != "") {
284//                        this.value = this.value;
285//                    }
286//                };
287//                //=====
288//                if ($(this).hasClass("jcf-hidden parsley-error")) {
289//                    $(this).closest('div').find('span.jcf-select-form-control').addClass("parsley-error");
290//                    $(this).closest('div').find("span.jcf-option-hideme").addClass("selectparsleycolor");
291//                }
292//            }
293//            else {
294//                $(this).closest('div').removeClass('input-error');
295//                if ($(this).attr('class') == "form-control jcf-hidden parsley-success") {
296//                    $(this).closest('div').find('span.jcf-select-form-control').removeClass("parsley-error");
297//                    $(this).closest('div').find("span.jcf-option-hideme").removeClass("selectparsleycolor");
298//                }
299//            }
300//        })
301//        if (dropDownScroll('#divddlState', '#ddlState')) { dropDownScroll('#phonediv', '#txtPhone') }
302//        return false;
303//    }
304//}
305
306
307function submit() {
308
309    var objCreateAttorney = { objCreateAttorney: {} };
310    objCreateAttorney.attoneyfirmname = $('#txtFirmName').val();
311    objCreateAttorney.attoneyfirstname = $('#txtAttorneyFirstName').val();
312    objCreateAttorney.attoneylastname = $('#txtAttorneyLastName').val();
313    //objCreateAttorney.attoneyaddress = $('#txtAddressLine1').val();
314    //objCreateAttorney.attoneycity = $('#txtCity').val();
315    //objCreateAttorney.attoneystate = $('#ddlState').val();
316    //objCreateAttorney.attoneyzip = $('#txtZipCode').val();
317    //objCreateAttorney.attoneyphone = $('#txtPhone').val();
318    //objCreateAttorney.attoneyfax = $('#txtFax').val();
319    //objCreateAttorney.attoneymainemail = $('#txtEmailAddress').val();
320    //objCreateAttorney.attoneyemail1 = $('#txtAttorneyEmail_1').val();
321    //objCreateAttorney.attoneyemail2 = $('#txtAttorneyEmail_2').val();
322    //objCreateAttorney.attoneyemail3 = $('#txtAttorneyEmail_3').val();
323    //objCreateAttorney.attoneyemail4 = $('#txtAttorneyEmail_4').val();
324    //objCreateAttorney.attoneyemail5 = $('#txtAttorneyEmail_5').val();
325    //objCreateAttorney.attoneyemail6 = $('#txtAttorneyEmail_6').val();
326    //objCreateAttorney.attoneyemail7 = $('#txtAttorneyEmail_7').val();
327    //objCreateAttorney.attoneyemail8 = $('#txtAttorneyEmail_8').val();
328    //objCreateAttorney.attoneyemail9 = $('#txtAttorneyEmail_9').val();
329    //objCreateAttorney.attoneyemail10 = $('#txtAttorneyEmail_10').val();
330    //objCreateAttorney.attoneyemail11 = $('#txtAttorneyEmail_11').val();
331    //objCreateAttorney.attoneyemail12 = $('#txtAttorneyEmail_12').val();
332    //objCreateAttorney.attoneyemail13 = $('#txtAttorneyEmail_13').val();
333    //objCreateAttorney.attoneyemail14 = $('#txtAttorneyEmail_14').val();
334    //objCreateAttorney.attoneyemail15 = $('#txtAttorneyEmail_15').val();
335
336    //objCreateAttorney.attoneyemail16 = $('#txtAttorneyEmail_16').val();
337    //objCreateAttorney.attoneyemail17 = $('#txtAttorneyEmail_17').val();
338    //objCreateAttorney.attoneyemail18 = $('#txtAttorneyEmail_18').val();
339    //objCreateAttorney.attoneyemail19 = $('#txtAttorneyEmail_19').val();
340    //objCreateAttorney.attoneyemail20 = $('#txtAttorneyEmail_20').val();
341    //if ($('#ChkBilling').is(':checked')) {
342    //    objCreateAttorney.chkbilling = $('#ChkBilling').is(':checked');
343    //    objCreateAttorney.cardholderfirstname = $('#txtCardFirstName').val();
344    //    objCreateAttorney.cardholderlastname = $('#txtCardLastName').val();
345    //    objCreateAttorney.cardno = $('#txtcardnumber').val().replace(/\s/g, '');
346    //    objCreateAttorney.cardmonth = $('#ddlMonth').val();
347    //    objCreateAttorney.cardyear = $('#ddlYear').val();
348    //    objCreateAttorney.BillingAddressLine1 = $('#txtAttrBillingAddress').val();
349    //    objCreateAttorney.BillingCity = $('#txtAttrCity').val();
350    //    objCreateAttorney.BillingState = $('#ddlAttrState').val();
351    //    objCreateAttorney.BillingZip = $('#txtAttrZipCode').val();
352    //    objCreateAttorney.CreditCardNumberLastFourDigits = $('#txtcardnumber').val().replace(/\s/g, '');
353    //}
354    //objCreateAttorney.chkfiling = $('#ChkAttorney').is(':checked');
355    $('#btnattorneyReg').prop('disabled', true);
356    $.ajax({
357        type: "POST",
358        url: "/WebServices/CourseWServices.asmx/CreateAttorneyPortal1",
359        data: JSON.stringify({ objCreateAttorney: objCreateAttorney }),
360        dataType: "JSON",
361        contentType: "application/json; charset=utf-8",
362        async: true,
363        success: function (data) {
364            var result = jQuery.parseJSON(data.d);
365            if (result != null) {
366                if (result.ResponseMsg != "True") {
367                    $('#messagediv').removeClass('hidden');
368                    $('#message').html(result.ResponseMsg);
369                    $('#messagediv').removeClass('hidden');
370                    showMessage();
371                }
372                else {
373                    //$('#messagediv').removeClass('hidden');
374                    //$('#message').html(result.ResponseMsg);
375                    //$('#messagediv').removeClass('hidden');
376                    //showMessage();
377                    window.location.replace(result.RedirectURL);
378                   // clrCtrl();
379                    //$('#txtPhone').removeClass('checkonce');
380                }
381                $('#btnattorneyReg').prop('disabled', false);
382            } else { window.location.replace("/Logout.aspx"); }
383        },
384        error: function (e) {
385            window.location.replace("/Logout.aspx");
386        }
387    });
388
389    return false;
390
391}
392
393function clrCtrl() {
394    $('#certificatesearchform').find('input[type="text"]').val('');     
395    $('#certificatesearchform').parsley().reset();
396
397    ////Added on 27-may-2019
398    //for (var j = 1; j <= 20; j++) {
399    //    $('#txtAttorneyEmail_' + j).val('');
400    //}
401    ////
402
403    //for (var i = 4; i <= 20; i++) {
404    //    $('#additionalmails_' + i).closest('div').addClass('hidden');
405    //    if (!$('#' + i).hasClass('hidden')) {
406    //        $('#' + i).addClass('hidden');
407    //    }
408    //}
409    //$('#3').removeClass('hidden');
410    //jcf.refreshAll();
411}
412
413//function payment_expdate() {
414//    var currentMont = (new Date).getMonth() + 1;
415//    var currentYear = (new Date).getFullYear();
416//    var selectedMonth = $('#ddlMonth').val();
417//    var selectedYear = $('#ddlYear').val();
418
419//    if (parseInt(currentYear) == parseInt(selectedYear)) {
420//        if (parseInt(selectedMonth) < parseInt(currentMont)) {
421//            $('#messagediv').removeClass('hidden');
422//            $('#message').html('Invalid Expiration Date');
423//            showMessage();
424//            return false;
425//        } else {
426//            return true;
427//        }
428//    }
429//    else {
430//        return true;
431//    }
432
433//}
434
435
436$(document).ready(function () {   
437    FillDetails1();
438    //changeCheck2();
439
440    //$('#ChkBilling').on('change', function () {
441    //    if ($('#ChkBilling').is(':checked')) {
442    //        $('#custom-block').removeClass('hidden');
443    //    }
444    //    else {
445    //        $('#custom-block').addClass('hidden');
446    //    }
447    //});
448
449    $('#txtFirmName,#txtAttorneyFirstName,#txtAttorneyLastName').blur(function () { bluer(this); })
450    //$('#txtFirmName,#txtAttorneyFirstName,#txtAttorneyLastName,#txtAddressLine1,#txtCity,#txtZipCode,#txtEmailAddress,#txtAttorneyEmail_1,#txtAttorneyEmail_2,#txtAttorneyEmail_3,#txtAttorneyEmail_4,#txtAttorneyEmail_5,#txtAttorneyEmail_6,#txtAttorneyEmail_7,#txtAttorneyEmail_8,#txtAttorneyEmail_9,#txtAttorneyEmail_10,#txtAttorneyEmail_11,#txtAttorneyEmail_12,#txtAttorneyEmail_13,#txtAttorneyEmail_14,#txtAttorneyEmail_15,#txtAttorneyEmail_16,#txtAttorneyEmail_17,#txtAttorneyEmail_18,#txtAttorneyEmail_19,#txtAttorneyEmail_20,#txtCardFirstName,#txtCardLastName,#txtAttrBillingAddress,#txtAttrCity,#ddlAttrState,#txtAttrZipCode ').blur(function () { bluer(this); })
451    //inputEvents();
452    //$('#txtZipCode,#txtcardnumber,#txtAttrZipCode').keypress(function (e) {
453    //    return AllowOnlyNumbers(e);
454    //})
455
456    //$('#txtPhone').on('blur', function () {
457    //    phoneBlur(this);
458    //});
459    //$('#txtPhone').on('keyup', function () {
460    //    phoneKeyUp(this);
461    //});
462
463    //$('#txtcardnumber').on('blur', function () {
464    //    onKeyCardNoBlur(this);
465    //});
466
467    //$('#ddlState').change(function () {
468    //    $('#ddlState').parsley().validate();
469    //    DropDownValidate('ddlState');
470    //});
471
472    //$("#ddlState").blur(function () {
473    //    if (!$("#divddlState").find("span:first").hasClass("jcf-drop-active")) {
474    //        $('#ddlState').parsley().validate();
475    //        DropDownValidate('ddlState');
476    //    }
477    //});
478
479    //$('#ddlAttrState').change(function () {
480    //    $('#ddlAttrState').parsley().validate();
481    //    DropDownValidate('ddlAttrState');
482    //});
483
484    //$("#ddlAttrState").blur(function () {
485    //    if (!$("#divddlAttrState").find("span:first").hasClass("jcf-drop-active")) {
486    //        $('#ddlAttrState').parsley().validate();
487    //        DropDownValidate('ddlAttrState');
488    //    }
489    //});
490
491    //$("#ddlMonth").change(function () {
492    //    if (!$("#divddlMonth").find("span:first").hasClass("jcf-drop-active")) {
493    //        $('#ddlMonth').parsley().validate();
494    //        DropDownValidate('ddlMonth');
495    //    }
496    //});
497
498    //$("#ddlMonth").blur(function () {
499    //    if (!$("#divddlMonth").find("span:first").hasClass("jcf-drop-active")) {
500    //        $('#ddlMonth').parsley().validate();
501    //        DropDownValidate('ddlMonth');
502    //    }
503    //});
504
505    //$("#ddlYear").change(function () {
506    //    if (!$("#divddlYear").find("span:first").hasClass("jcf-drop-active")) {
507    //        $('#ddlYear').parsley().validate();
508    //        DropDownValidate('ddlYear');
509    //    }
510    //});
511
512
513    //$("#ddlYear").blur(function () {
514    //    if (!$("#divddlYear").find("span:first").hasClass("jcf-drop-active")) {
515    //        $('#ddlYear').parsley().validate();
516    //        DropDownValidate('ddlYear');
517    //    }
518    //});
519
520    $('#btnattorneyReg').click(function (e) {
521        e.preventDefault();
522        buttonclicked();
523    });
524    document.querySelector('.logoCC').addEventListener('click', () => {
525        clrCtrl();
526    });
527
528    document.querySelector('.SignIn').addEventListener('click', () => {
529        clrCtrl();
530    });
531    function buttonclicked() {
532        if (validateMainForm()) {
533            submit();
534        } else {
535            return false;
536        }
537    }
538    function focusEmptyFiels() {
539        
540
541        var idsInOrder;
542
543        idsInOrder = [
544            "txtFirmName",
545            "txtAttorneyFirstName",
546            "txtAttorneyLastName"
547        ];
548
549
550        var fieldToFocus = null;
551        for (var i = 0; i < idsInOrder.length; i++) {
552            var fieldId = idsInOrder[i];
553            var field = $('#' + fieldId);
554            if (field.length > 0) {               
555                if ($.trim(field.val()) === "") {
556                    console.log("Field found empty: " + fieldId);
557                    fieldToFocus = field;
558                    break;
559                }
560            }
561        }
562
563        if (fieldToFocus !== null) {
564
565            setTimeout(function () {
566                fieldToFocus.focus();
567            }, 100);
568        }
569
570    }
571    function validateMainForm() {
572        $('#certificatesearchform').parsley().validate();
573        if ($('#certificatesearchform').parsley().isValid()) {
574            $('.tooltip-wrapper').tooltip('dispose');
575            return true;
576        }
577        else {
578            $('#certificatesearchform').find('input').each(function () {
579
580                onkeychange(this);
581            });
582            focusEmptyFiels();
583            $('#certificatesearchform').find('select').each(function () {
584
585                if ($(this).hasClass('parsley-error')) {
586                    $(this).addClass('input-error');
587                    $(this).closest('.select--custom').addClass('input-error');
588                    // $('#select--custom').addClass('input-error');
589                    $(this).find('input[type="text"],input[type="tel"],input[type="email"],input[type="password"]').closest('span').css("color", "#e73a29")
590                    //$(".selectric .label").css("color", "#e73a29");
591                    //if ($(this).hasClass('input-error')) {
592                    //    $(".selectric .label").css("color", "black");
593                    //}
594                }
595                if ($(this).hasClass('parsley-success')) {
596                    $(this).removeClass('input-error');
597                    $(this).closest('.select--custom').removeClass('input-error');
598
599                    // $('#select--custom').removeClass('input-error');
600                   // $(".selectric .label").css("color", "black");
601                }
602
603            });
604            //    $('#certificatesearchform').find('input').each(function () {
605            //        if ($(this).hasClass("parsley-error")) {
606            //            $(this).closest('div').addClass('input-error');
607            //            //===== for ie 9 place holsers, messages
608            //            if ($.browser.msie && $.browser.version == 9.0) {
609            //                if (this.value != null && this.value != "") {
610            //                    this.value = this.value;
611            //                }
612            //            };
613            //            //=====                
614            //        }
615            //        else {
616            //            $(this).closest('div').removeClass('input-error');
617            //        }
618            //    })
619            //}
620
621            // if (dropDownScroll('#divddlState', '#ddlState')) { dropDownScroll('#phonediv', '#txtPhone') }
622            $('.tooltip-wrapper').tooltip('show');
623        }
624    
625        //    $('#certificatesearchform').parsley().validate();
626        //    if ($('#certificatesearchform').parsley().isValid()) {
627        //        return true;
628        //}
629        //else {
630        //        $('#certificatesearchform').find('input').each(function () {            
631        //        if ($(this).hasClass("parsley-error")) {
632        //            $(this).closest('div').addClass('input-error');
633        //            //===== for ie 9 place holsers, messages
634        //            if ($.browser.msie && $.browser.version == 9.0) {
635        //                if (this.value != null && this.value != "") {
636        //                    this.value = this.value;
637        //                }
638        //            };
639        //            //=====                
640        //        }
641        //        else {
642        //            $(this).closest('div').removeClass('input-error');                
643        //        }
644        //    })       
645        //}
646    }
647
648
649    //$('#txtEmailAddress').keypress(function (e) {
650    //    if (e.which == 13)
651    //        buttonclicked();
652    //});
653
654    //$('#ddlYear').keydown(function (e) {
655    //    if (e.which == 13)
656    //        buttonclicked();
657    //});
658    $('#txtAttorneyLastName').keypress(function (e) {
659        if (e.which == 13) {
660            $('#btnattorneyReg').click();
661        }        
662    });
663});
664
665
666function FillDetails1() {
667    
668    $.ajax({
669        type: "POST",
670        url: "/WebServices/CourseWServices.asmx/FillDetails1",
671        data: "{}",
672        contentType: "application/json; charset=utf-8",
673        dataType: "json",
674        success: function (data) {
675            var result = jQuery.parseJSON(data.d);
676            var backValue = sessionStorage.getItem('back');
677           
678            if (result != "null") {
679                if (backValue != "null") {
680                    $("#txtFirmName").val(result.attoneyfirmname);
681                    $("#txtAttorneyFirstName").val(result.attoneyfirstname);
682                    $("#txtAttorneyLastName").val(result.attoneylastname);
683                    sessionStorage.setItem('back', null);
684                }
685                $('#btnattorneyReg').prop('disabled', false);
686                $('[data-toggle="tooltip"]').attr('data-title', '');
687                $('#buttonReg').removeAttr('data-title');
688                    if (result.ResponseMsg == "Session Expired.") {
689                        $('#btnattorneyReg').mouseenter(function () {
690                            $('.tooltip-wrapper').tooltip('show');
691                        });
692                    }
693                    else {
694                        if (result.attoneyfirmname != '') {
695                            $('.tooltip-wrapper').tooltip('dispose');
696                        }
697                    }
698
699                    // $("[data-toggle='tooltip']").tooltip('destroy');removeAttr( "title" )
700                }
701                else if (result.ResponseMsg != null) {
702                    $('#message').html(result.ResponseMsg);
703                    $('#messagediv').removeClass('hidden');
704                    showMessage();
705                }
706                else {
707                    //window.location.replace("create-attorney-portal-account-2.aspx");
708                }
709            
710
711            
712        },
713        error: function (r) {
714            window.location.replace("attorneys.aspx");
715        }
716    });
717    return false;
718}
719
720

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.