/*! * * js include file for custon SCN jQuery * //*/ (function(a){a.fn.matchHeight=function(b){if("remove"===b){var f=this;this.css("height","");a.each(a.fn.matchHeight._groups,function(g,h){h.elements=h.elements.not(f)});return this}if(1>=this.length){return this}b="undefined"!==typeof b?b:!0;a.fn.matchHeight._groups.push({elements:this,byRow:b});a.fn.matchHeight._apply(this,b);return this};a.fn.matchHeight._apply=function(b,g){var h=a(b),f=[h];g&&(h.css({display:"block","padding-top":"0","padding-bottom":"0","border-top":"0","border-bottom":"0",height:"100px"}),f=c(h),h.css({display:"","padding-top":"","padding-bottom":"","border-top":"","border-bottom":"",height:""}));a.each(f,function(i,l){var k=a(l),j=0;k.each(function(){var m=a(this);m.css({display:"block",height:""});m.outerHeight(!1)>j&&(j=m.outerHeight(!1));m.css({display:""})});k.each(function(){var m=a(this),n=0;"border-box"!==m.css("box-sizing")&&(n+=e(m.css("border-top-width"))+e(m.css("border-bottom-width")),n+=e(m.css("padding-top"))+e(m.css("padding-bottom")));m.css("height",j-n)})});return this};a.fn.matchHeight._applyDataApi=function(){var b={};a("[data-match-height], [data-mh]").each(function(){var f=a(this),g=f.attr("data-match-height");b[g]=g in b?b[g].add(f):f});a.each(b,function(){this.matchHeight(!0)})};a.fn.matchHeight._groups=[];var d=-1;a.fn.matchHeight._update=function(b){if(b&&"resize"===b.type){b=a(window).width();if(b===d){return}d=b}a.each(a.fn.matchHeight._groups,function(){a.fn.matchHeight._apply(this.elements,this.byRow)})};a(a.fn.matchHeight._applyDataApi);a(window).bind("load resize orientationchange",a.fn.matchHeight._update);var c=function(b){var f=null,g=[];a(b).each(function(){var i=a(this),k=i.offset().top-e(i.css("margin-top")),j=0=Math.floor(Math.abs(f-k))?g[g.length-1]=j.add(i):g.push(i);f=k});return g},e=function(b){return parseFloat(b)||0}})(jQuery); function GetURLParameter(sParam) { var sPageURL = window.location.search.substring(1); var sURLVariables = sPageURL.split('&'); for (var i = 0; i < sURLVariables.length; i++) { var sParameterName = sURLVariables[i].split('='); if (sParameterName[0] == sParam) { return sParameterName[1]; } } } function prePopulate() { if (!$('#r\\.s588219').val()) { $('#r\\.s588219').val($('#r\\.s581287').val()); } if (!$('#r\\.s588220').val()) { $('#r\\.s588220').val($('#r\\.s581286').val()); } if (!$('#r\\.s588224').val()) { $('#r\\.s588224').val($('#r\\.s582730').val()); } if (!$('#r\\.a588313\\.city').val()) { $('#r\\.a588313\\.city').val($('#r\\.a582746\\.city').val()); } if (!$('#r\\.a588313\\.province').val()) { $('#r\\.a588313\\.province').val($('#r\\.a582746\\.province').find(":selected").val()).select2().trigger('change'); } if (!$('#r\\.s588225').val()) { $('#r\\.s588225').val($('#r\\.s582117').val()); } if (!$('#r\\.s588318').val()) { $('#r\\.s588318').val($('#r\\.s582747').val()); } if (!$('#r\\.s588226').val()) { $('#r\\.s588226').val($('#r\\.s582731').val()); } if (!$('#r\\.s588511').val()) { $('#r\\.s588511').val($('#r\\.s582748').val()); } } function countChar(val, maxLength) { var len = val.value.length; if (len >= maxLength) { val.value = val.value.substring(0, maxLength); } else { $('#charNum').html("" + len + " characters of maximum " + maxLength + " (" + (maxLength - len) + " characters remaining)"); } }; function ConsultantShowHide() { //alert("ConsultantShowHide executing"); if ($('#r\\.s588218_1').is(':checked')) { //show fields prePopulate(); $('.consultDir').show(); $('#r\\.s588219').prop('disabled', false); $('#r\\.s588220').prop('disabled', false); $('#r\\.s588221').prop('disabled', false); $('#r\\.s588223').prop('disabled', false); $('#r\\.s588224').prop('disabled', false); $('#r\\.s588225').prop('disabled', false); $('#r\\.s588226').prop('disabled', false); $('#r\\.s588269').prop('disabled', false); $('#r\\.s588268').prop('disabled', false); $('#r\\.s588270').prop('disabled', false); $('#r\\.o588271').prop('disabled', false); $('#r\\.o588221_ajax').prop('disabled', false); $('#r\\.o588223_ajax').prop('disabled', false); $('#r\\.a588313\\.city').prop('disabled', false); $('#r\\.a588313\\.province').prop('disabled', false); $('#r\\.a588313\\.country').prop('disabled', false); $('#r\\.o588272_ajax').prop('disabled', false); $('#file-r\\.f588284\\.file').prop('disabled', false); $('#r\\.s588292').prop('disabled', false); } else if ($('#r\\.s588218_0').is(':checked')) { //hide fields $('#r\\.s588219').prop('disabled', true); $('#r\\.s588220').prop('disabled', true); $('#r\\.s588221').prop('disabled', true); $('#r\\.s588223').prop('disabled', true); $('#r\\.s588224').prop('disabled', true); $('#r\\.s588225').prop('disabled', true); $('#r\\.s588226').prop('disabled', true); $('#r\\.s588269').prop('disabled', true); $('#r\\.s588268').prop('disabled', true); $('#r\\.s588270').prop('disabled', true); $('#r\\.o588271').prop('disabled', true); $('#r\\.o588221_ajax').prop('disabled', true); $('#r\\.o588223_ajax').prop('disabled', true); $('#r\\.a588313\\.city').prop('disabled', true); $('#r\\.a588313\\.province').prop('disabled', true); $('#r\\.a588313\\.country').prop('disabled', true); $('#r\\.o588272_ajax').prop('disabled', true); $('#file-r\\.f588284\\.file').prop('disabled', true); $('#r\\.s588292').prop('disabled', true); $('.consultDir').hide(); } else { //hide fields $('#r\\.s588219').prop('disabled', true); $('#r\\.s588220').prop('disabled', true); $('#r\\.s588221').prop('disabled', true); $('#r\\.s588223').prop('disabled', true); $('#r\\.s588224').prop('disabled', true); $('#r\\.s588225').prop('disabled', true); $('#r\\.s588226').prop('disabled', true); $('#r\\.s588269').prop('disabled', true); $('#r\\.s588268').prop('disabled', true); $('#r\\.s588270').prop('disabled', true); $('#r\\.o588271').prop('disabled', true); $('#r\\.o588221_ajax').prop('disabled', true); $('#r\\.o588223_ajax').prop('disabled', true); $('#r\\.a588313\\.city').prop('disabled', true); $('#r\\.a588313\\.province').prop('disabled', true); $('#r\\.a588313\\.country').prop('disabled', true); $('#r\\.o588272_ajax').prop('disabled', true); $('#file-r\\.f588284\\.file').prop('disabled', true); $('#r\\.s588292').prop('disabled', true); $('.consultDir').hide(); } } function loadProfileEdit() { console.log("loadProfileEdit called") $("ul.clientTabs").hide(); ConsultantShowHide(); $('#r\\.s588218_1').change(function () { ConsultantShowHide(); }); $('#r\\.s588218_0').change(function () { ConsultantShowHide(); }); $('.col-md-4').each(function () { $(this).addClass('col-md-5').removeClass('col-md-4'); }); $('.offset-md-4').each(function () { $(this).addClass('offset-md-5').removeClass('offset-md-4'); }); $('.col-md-8').each(function () { $(this).addClass('col-md-5').removeClass('col-md-8'); }); $('.customAddressLabel').each(function () { $(this).hide(); }); $('.card').each(function () { $(this).addClass('border-0'); }); //$('.initialism:first').hide(); $('form#command .card-body:last').css("border-top", "1px solid #cccccc"); /*$('a[href^="#tabsr-s-588293-1"]').click(function () { $('.initialism:last').next('.panel-body').show(); $('.initialism:last').show() }); $('a[href]:not([href^="#tabsr-s-588293-1"])').click(function () { $('.initialism:last').next('.panel-body').hide(); $('.initialism:last').hide() });*/ $("#profileContainer #scn-page-content div.col-md-12:first").wrapAll('
'); $('ul.nav-tabs').attr('id', 'tabs'); $('ul#tabs li a').click(function () { $('#command').attr('action', '/client/client/profileEdit.html?nav=sidebar' + $(this).attr('href')); }); //$('#command').attr('action','/client/client/profileEdit.html?nav=sidebar'); $('#s-588505').addClass("hidden"); var kwData = $('
'); $('#command').submit(function (e) { //e.preventDefault(); var lastName = $('#s-581011 p span').text() kwData.html($('#r\\.s581010').val() + ' | ' + lastName + ' | ' + $('#r\\.s588219').val() + ' | ' + $('#r\\.s588220').val() + ' | ' + $('#r\\.s588292').val()); kwData.contents().filter(function () { return this.nodeType !== 3; }).after(function () { return $(this).text(); }).remove(); //alert(kwData.html()); $('#r\\.s588505').val(kwData.html()); }); if (window.location.hash) { // hash found var hash = window.location.hash.substring(1); //Puts hash in variable, and removes the # character $('a[href$=' + hash + ']').trigger('click'); } else { // No hash found } $('#charNum').parent('label').removeClass('text-justify').removeClass('col-sm-5').addClass('col-sm-12'); $('#r\\.s588292').on("keyup", function () { countChar(this, 1500); }); $('#r\\.s588292').keyup(); $('#r\\.s588292').attr('rows', 20); } function Checkurl(text) { var url1 = /(^|<|\s)(www\..+?\..+?)(\s|>|$)/g, url2 = /(^|<|\s)(((https?|ftp):\/\/|mailto:).+?)(\s|>|$)/g; var html = $.trim(text); if (html) { html = html .replace(url1, '$1$2$3') .replace(url2, '$1$2$5'); } return html; } $( document ).ready(function() { hash = window.location.hash; elements = $('a[href="' + hash + '"]'); if (elements.length === 0) { $("ul.tabs li:first").addClass("active").show(); //Activate first tab $(".tab_content:first").show(); //Show first tab content } else { elements.click(); } var url = location.pathname; if (url.indexOf('profileEdit.html') > -1) { loadProfileEdit(); } if (url.indexOf('registration.html') > -1) { $('#tabsregs0-client-r-s-588293-2, #tabsregs1-client-r-s-588293-2, #tabsregs2-client-r-s-588293-2, #tabsregs3-client-r-s-588293-2, #tabsregs4-client-r-s-588293-2, #tabsregs5-client-r-s-588293-2').addClass("active"); $('ul.nav-tabs').hide(); $('.separator:contains("Registration Profile Details")').each(function () { $(this).hide(); }); } //$('ul.nav-pills li a').addClass("btn").addClass("btn-primary"); $('ul.nav-pills').css("background-color","#e3f2fd") var productId = GetURLParameter("productId"); if (productId) { if (productId == 6557) { //LEARNING MEMBERSHIP FORM $('#s-583210').hide(); $("form#command .card:first").addClass('border-0'); $('#s-582827 .separator').hide(); $('#s-582827 .hint_4').removeClass('hint_4'); $('.subscription-wizard-heading').hide(); $('.subscription-wizard-heading').before('

Joining the SCNetwork With a Learning Membership

'); /*$('a[href^="#tabsr-s-588293-1"]').click(function () { $('.initialism:last').next('.panel-body').show(); $('.initialism:last').show() }); $('a[href]:not([href^="#tabsr-s-588293-1"])').click(function () { $('.initialism:last').next('.panel-body').hide(); $('.initialism:last').hide() });*/ $('[href="#tabssubs0-client-r-s-588293-5"]').closest('li').hide(); $('#scn-end-of-content').html(' '); $('#s--588293').after('

Membership Details

'); } if (productId == 6558) { //CORPORATE SUBSCRIPTION FORM $("form#command .card:first").addClass('border-0'); $('#s-583275 .separator').hide(); $('#s-583275 .hint_4').removeClass('hint_4'); $('.subscription-wizard-heading').hide(); $('.subscription-wizard-heading').before('

Joining the SCNetwork as a Corporate Subscription

'); } } if (url.indexOf('eco-friendly') > -1) { $("body").addClass("eco-friendly"); } //.regFormPanel form.form-horizontal add hidden input if request URL has coupon in it var cid = GetURLParameter("coupon"); if (cid) { $('').insertAfter('input[name="productId"]'); } if (window.location.href.indexOf("site/about/sponsors") > -1) { $('div[rel="companyRoster-78"]').hide(); } $("#1049").next().addClass("dropdown-menu-right"); $('.clickable').click(function () { if ($(this).data("location")) { window.location = $(this).data("location"); } }) var refpid = GetURLParameter("refpid"); if (GetURLParameter("refpid")) { $('#scn-message').load("/client/roster/clientRosterDetails.html?clientId=" + refpid + "&clientRosterId=188 #clientRosterDetails", function () { var FN = GetURLParameter("FN"); if (GetURLParameter("FN")) { //alert(FN); $('#personalization').text(FN + ", "); $('#subs0\\.client\\.r\\.s581010').val(FN); } var LN = GetURLParameter("LN"); if (GetURLParameter("LN")) { $('#subs0\\.client\\.r\\.s581011').val(LN); } var EM = GetURLParameter("EM"); if (GetURLParameter("EM")) { $('#subs0\\.client\\.r\\.s582117').val(EM); } }); } //if ( GetURLParameter("no_header") ) { $('input[name=no_header]').remove(); //}); /*var FN = GetURLParameter("FN"); if( GetURLParameter("FN") ) { //alert(FN); $('#personalization').text(FN); $('#subs0\\.client\\.r\\.s581010').val(FN); } var LN = GetURLParameter("LN"); if( GetURLParameter("LN") ) { $('#subs0\\.client\\.r\\.s581011').val(LN); } var EM = GetURLParameter("EM"); if( GetURLParameter("EM") ) { $('#subs0\\.client\\.r\\.s582117').val(EM); }*/ if ( $('#coupons0').length ) { if (GetURLParameter("coupon")) { $('#coupons0').val(GetURLParameter("coupon")) } } //CONSULTANT SHOW HIDE if ( $('#subs0\\.client\\.\\r\\.o582710').length) { $('#subs0\\.client\\.\\r\\.o582710').on('change', function() { if (this.value == 264039 ) { $('#s-587643').show(); $('#s-582712').hide(); $('#s-582713').hide(); $('#s-582714').hide(); } else { $('#s-587643').hide(); $('#s-582712').show(); $('#s-582713').show(); $('#s-582714').show(); } }); var consultant = $('#subs0\\.client\\.\\r\\.o582710').find(":selected").val(); if (consultant == 264039 ) { $('#s-587643').show(); $('#s-582712').hide(); $('#s-582713').hide(); $('#s-582714').hide(); } else { $('#s-587643').hide(); $('#s-582712').show(); $('#s-582713').show(); $('#s-582714').show(); } } //BILLING ADDRESS SHOWHIDE if( $('#subs0\\.client\\.r\\.s583218_0, #r\\.s583218_0').length) { if ($('#subs0\\.client\\.r\\.s583218_0, #r\\.s583218_0').is(':checked')) { $('div.billinghide').hide(); } else { $('div.billinghide').show(); } } $('#subs0\\.client\\.r\\.s583218_0, #r\\.s583218_0').change(function () { if ($('#subs0\\.client\\.r\\.s583218_0, #r\\.s583218_0').is(':checked')) { $('div.billinghide').hide(); } else { $('div.billinghide').show(); } }); $('#subs0\\.client\\.r\\.s583218_1, #r\\.s583218_1').change(function () { if ($('#subs0\\.client\\.r\\.s583218_1, #r\\.s583218_1').is(':checked')) { $('div.billinghide').show(); } else { $('div.billinghide').hide(); } }); //MEMEBER DIRECTORY SHOW HIDE if ($('#subs0\\.client\\.r\\.s581320_0, #r\\.s581320_0').length) { if ($('#subs0\\.client\\.r\\.s581320_0, #r\\.s581320_0').is(':checked')) { //$('div.memberDirectory').hide(); } else { //$('div.memberDirectory').show(); } } $('#subs0\\.client\\.r\\.s581320_0, #r\\.s581320_0').change(function () { if ($('#subs0\\.client\\.r\\.s581320_0, #r\\.s581320_0').is(':checked')) { //$('div.memberDirectory').hide(); } else { //$('div.memberDirectory').show(); } }); $('#subs0\\.client\\.r\\.s581320_1, #r\\.s581320_1').change(function () { if ($('#subs0\\.client\\.r\\.s581320_1, #r\\.s581320_1').is(':checked')) { //$('div.memberDirectory').show(); } else { //$('div.memberDirectory').hide(); } }); $('#s-584605').hide(); $('#rels0\\.r\\.s584686_1').change(function () { if ($('#rels0\\.r\\.s584686_1').is(':checked')) { $('#s-584605').show(); } else { $('#s-584605').hide(); } }) $('#rels0\\.r\\.s584686_0').change(function () { if ($('#rels0\\.r\\.s584686_0').is(':checked')) { $('#s-584605').hide(); } else { $('#s-584605').show(); } }) //$('input[name ="no_header"]').val("false"); //if (window.location.href.indexOf("viewEvent.html") > -1) { //alert("found viewEvent.html in url"); //$("input:submit").addClass("class","open-fancybox"); //} // script is now loaded and executed. // put your dependent JS here. /* $( "form" ).each(function( index ) { if ($( this ).attr("action").indexOf("/registration.html") > -1){ if ($( this ).attr("action").indexOf("/client/registration.html") > -1){ }else{ $( this ).attr("id","submitForm"); } } }); $("#submitForm").submit(function() { $form = $(this); //alert($( this ).attr("action") + '?' + $("#submitForm").serialize()); $("#scn-message").append( 'Test' ); $("#regButton").fancybox({ 'type':'iframe', iframe : { css : { width : '90%', height : '90%' } }, 'titleShow': 'true', 'titlePosition':'inside', afterClose: function( instance, slide ) { window.location.reload(); } }); $("#regButton").click(); return false; }); $("#regButton").fancybox({ 'type':'iframe', iframe : { css : { width : '90%', height : '90%' } }, 'titleShow': 'true', 'titlePosition':'inside', afterClose: function( instance, slide ) { window.location.reload(); } }); */ /*if (window.matchMedia("(max-width: 767px)").matches) { // The viewport is less than 768 pixels wide $("a.open-fancybox").each(function () { $(this).attr('href', $(this).attr('href').replace('no_header=true', 'no_header=false')); }); } else { // The viewport is at least 768 pixels wide //$("a.cLinkTable").addClass("open-fancybox"); $("a.open-fancybox").each(function () { $(this).attr('href', $(this).attr('href') + '&no_header=true'); }); $("a.open-fancybox").fancybox({ 'type': 'iframe', iframe: { css: { width: '90%', height: '90%' } }, 'titleShow': 'true', 'titlePosition': 'inside', afterClose: function (instance, slide) { window.location.reload(); } }); } */ /* $("a.open-fancybox").fancybox({ 'type':'iframe', iframe : { css : { width : '90%', height : '90%' } }, 'titleShow': 'true', 'titlePosition':'inside', afterClose: function( instance, slide ) { window.location.reload(); } });*/ /*! * * this function forces event names that are long to shrink * */ if ($("#home-page-featured-event-title").text().length > 55) { $("#home-page-featured-event-title").css('font-size', '14px;'); } /*! * * this function forces event registrations into the fancybox * */ /*$("a[href*=viewEvent]").fancybox({ 'type':'iframe', iframe : { css : { width : '90%', height : '90%' } }, afterClose: function( instance, slide ) { window.location.reload(); } }); */ /*! * * overriding in1Touch default panel titles during registration * */ // CHAGE THE PANEL HEADINGS TO MAKE MORE CLEAR TO END USER if ($("div.registration-wizard-heading:first").length) { var myStr = $('div.registration-wizard-heading:first').text(); var msStrIndex = myStr.indexOf('Registration') var subStr = myStr.substring(0, msStrIndex); //$("#scn-message").html("

" + subStr + "
Registration Form

") $("#scn-message").html($.cookie('EventHeader')); $('div.registration-wizard-heading:first').html($('div.registration-wizard-heading:first') .html() .replace(subStr + 'Registration 1 Client Information', 'Registration 1 - You')); $('div.registration-wizard-heading:first').html($('div.registration-wizard-heading:first') .html() .replace(subStr + 'Registration Client Information', 'Registration Name Badge')); $('div.registration-wizard-heading:first').html($('div.registration-wizard-heading:first') .html() .replace(subStr + 'Registration 1 Additional Information', 'Registration 1 - Your Registration Fee Selection')); $('div.registration-wizard-heading:first').html($('div.registration-wizard-heading:first') .html() .replace(subStr + 'Registration Additional Information', 'Registration Fee Selection')); $('div.registration-wizard-heading:first').html($('div.registration-wizard-heading:first') .html() .replace(subStr + 'Registration Invoice To Information', 'Invoice To Details')); } if ($("div.registration-wizard-heading:eq(1)").length) { //$('div.registration-wizard-heading:eq(1)').html($('div.registration-wizard-heading:eq(1)') //.html() //.replace('Client Information', ' - Guest Registration Details')); $('div.registration-wizard-heading:eq(1)').html("Registration 2 - Your Guest"); //$('div.registration-wizard-heading:eq(1)').html($('div.registration-wizard-heading:eq(1)') //.html() //.replace('Additional Information', ': Fee Selection for Guest')); } if ($("div.registration-wizard-heading:eq(2)").length) { //$('div.registration-wizard-heading:eq(2)').html($('div.registration-wizard-heading:eq(2)') //.html() //.replace('Client Information', ' - Guest Registration Details')); //$('div.registration-wizard-heading:eq(2)').html($('div.registration-wizard-heading:eq(2)') //.html() //.replace('Additional Information', ': Fee Selection for Guest')); $('div.registration-wizard-heading:eq(2)').html("Registration 3 - Your Guest"); } if ($("div.registration-wizard-heading:eq(3)").length) { //$('div.registration-wizard-heading:eq(3)').html($('div.registration-wizard-heading:eq(3)') //.html() //.replace('Client Information', ' - Guest Registration Details')); //$('div.registration-wizard-heading:eq(3)').html($('div.registration-wizard-heading:eq(3)') //.html() //.replace('Additional Information', ': Fee Selection for Guest')); $('div.registration-wizard-heading:eq(3)').html("Registration 4 - Your Guest"); } if ($("div.registration-wizard-heading:eq(3)").length) { //$('div.registration-wizard-heading:eq(3)').html($('div.registration-wizard-heading:eq(3)') //.html() //.replace('Client Information', ' - Guest Registration Details')); //$('div.registration-wizard-heading:eq(3)').html($('div.registration-wizard-heading:eq(3)') //.html() //.replace('Additional Information', ': Fee Selection for Guest')); $('div.registration-wizard-heading:eq(4)').html("Registration 5 - Your Guest"); } // CLEAR GUEST REGISTRATIOJ FIELDS var pattern = /[?&]registrationIds/; var URL = location.search; if (pattern.test(URL)) { /*in reg edit mode*/ } else { /* not in reg edit mode */ $('[name^="regs[1].c."]').val(''); $('[name^="regs[2].c."]').val(''); $('[name^="regs[3].c."]').val(''); } /* first name regs0.c.s581010 last name regs0.c.s581011 positon title regs0.c.s581286 organization regs0.c.s581287 email regs0.c.s582117 first name invoiceClientInstance.s583226 last name invoiceClientInstance.s583227 organization name invoiceClientInstance.s583229 email invoiceClientInstance.s583228 localStorage.setItem("bar", foo); var foo = localStorage.getItem("bar"); */ //REGISTRANT NAME if ($('#regs0\\.c\\.s581010').length) { localStorage.setItem("IFN", $('#regs0\\.c\\.s581010').val()); } if ($('#regs0\\.c\\.s581011').length) { localStorage.setItem("ILN", $('#regs0\\.c\\.s581011').val()); } if ($('#regs0\\.c\\.s581287').length) { localStorage.setItem("IORG", $('#regs0\\.c\\.s581287').val()); } if ($('#regs0\\.c\\.s582117').length) { localStorage.setItem("IEMAIL", $('#regs0\\.c\\.s582117').val()); } if ($('#invoiceClientInstance\\.s583226').length) { if (!$('#invoiceClientInstance\\.s583226').val()) { $("#invoiceClientInstance\\.s583226").val(localStorage.getItem("IFN")) } } if ($('#invoiceClientInstance\\.s583227').length) { if (!$('#invoiceClientInstance\\.s583227').val()) { $("#invoiceClientInstance\\.s583227").val(localStorage.getItem("ILN")) } } if ($('#invoiceClientInstance\\.s583229').length) { if (!$('#invoiceClientInstance\\.s583229').val()) { $("#invoiceClientInstance\\.s583229").val(localStorage.getItem("IORG")) } } if ($('#invoiceClientInstance\\.s583228').length) { if (!$('#invoiceClientInstance\\.s583228').val()) { $("#invoiceClientInstance\\.s583228").val(localStorage.getItem("IEMAIL")) } } //CLEAR REG FEES THAT ARE NOT APPLICABLE //var pattern = /[?&]guest=true/; //var URL = location.search; /*if(GetURLParameter("guest") ) { / * in add guest mode* / $('select[name^="regs[0].r"]:not(.input_5) option:eq(1)').prop('hidden', true); $('select[name^="regs[0].r"]:not(.input_5) option:eq(0)').attr('hidden', true); $('select[name^="regs[0].r"]:not(.input_5) option:eq(2)').attr('selected', true); $('#command').attr('action', "/client/registration.html?guest=true") } else { / * not in reg edit mode * / $('select[name^="regs[0].r"]:not(.input_5) option:eq(1)').prop('selected', true); $('select[name^="regs[0].r"]:not(.input_5) option:eq(0)').attr('hidden', true); $('select[name^="regs[0].r"]:not(.input_5) option:eq(2)').attr('hidden', true); } //css=attendanceOption, skip removing options if ( $('select[name^="regs[1].r"] option:eq(2)').length ) { $('select[name^="regs[1].r"] option:eq(0)').attr('hidden', true); $('select[name^="regs[1].r"] option:eq(1)').attr('hidden', true); $('select[name^="regs[1].r"] option:eq(2)').prop('selected', true); } else if ( $('select[name^="regs[1].r"] option:eq(1)').length) { $('select[name^="regs[1].r"] option:eq(0)').attr('hidden', true); $('select[name^="regs[1].r"] option:eq(2)').attr('hidden', true); $('select[name^="regs[1].r"] option:eq(1)').prop('selected', true) } if ( $('select[name^="regs[2].r"] option:eq(2)').length ) { $('select[name^="regs[2].r"] option:eq(0)').attr('hidden', true); $('select[name^="regs[2].r"] option:eq(1)').attr('hidden', true); $('select[name^="regs[2].r"] option:eq(2)').prop('selected', true); } else if ( $('select[name^="regs[2].r"] option:eq(1)').length) { $('select[name^="regs[2].r"] option:eq(0)').attr('hidden', true); $('select[name^="regs[2].r"] option:eq(2)').attr('hidden', true); $('select[name^="regs[2].r"] option:eq(1)').prop('selected', true); } if ( $('select[name^="regs[3].r"] option:eq(2)').length ) { $('select[name^="regs[3].r"] option:eq(0)').attr('hidden', true); $('select[name^="regs[3].r"] option:eq(1)').attr('hidden', true); $('select[name^="regs[3].r"] option:eq(2)').prop('selected', true); } else if ( $('select[name^="regs[3].r"] option:eq(1)').length) { $('select[name^="regs[3].r"] option:eq(0)').attr('hidden', true); $('select[name^="regs[3].r"] option:eq(2)').attr('hidden', true); $('select[name^="regs[3].r"] option:eq(1)').prop('selected', true); } if ( $('select[name^="regs[4].r"] option:eq(2)').length ) { $('select[name^="regs[4].r"] option:eq(0)').attr('hidden', true); $('select[name^="regs[4].r"] option:eq(1)').attr('hidden', true); $('select[name^="regs[4].r"] option:eq(2)').prop('selected', true); } else if ( $('select[name^="regs[4].r"] option:eq(1)').length) { $('select[name^="regs[4].r"] option:eq(0)').attr('hidden', true); $('select[name^="regs[4].r"] option:eq(2)').attr('hidden', true); $('select[name^="regs[4].r"] option:eq(1)').prop('selected', true); }*/ /* $('select[name^="regs[1].r"] option:eq(2)').prop('selected', true); $('select[name^="regs[1].r"] option:eq(0)').attr('hidden', true); $('select[name^="regs[1].r"] option:eq(1)').attr('hidden', true); $('select[name^="regs[2].r"] option:eq(2)').prop('selected', true); $('select[name^="regs[2].r"] option:eq(0)').attr('hidden', true); $('select[name^="regs[2].r"] option:eq(1)').attr('hidden', true); $('select[name^="regs[3].r"] option:eq(2)').prop('selected', true); $('select[name^="regs[3].r"] option:eq(0)').attr('hidden', true); $('select[name^="regs[3].r"] option:eq(1)').attr('hidden', true); $('select[name^="regs[4].r"] option:eq(2)').prop('selected', true); $('select[name^="regs[4].r"] option:eq(0)').attr('hidden', true); $('select[name^="regs[4].r"] option:eq(1)').attr('hidden', true); */ });