$(document).ready(function(){ $('#countriesList').change(function(){ var thisval = $.trim( $(this).val() ); country_id = $.trim( thisval.split("|")[0] ); country_abbreviation = $.trim( thisval.split("|")[1] ); $('input[name="Country"]').val(country_abbreviation); $.ajax({ url: 'ajax/statesList.cfm', data: 'country_id=' + country_id, type: 'POST', success: function(response){ $('select[name="State"]').find('option').remove(); $('select[name="State"]').append(response); } }); }); $('#scountriesList').change(function(){ var thisval = $.trim( $(this).val() ); country_id = $.trim( thisval.split("|")[0] ); country_abbreviation = $.trim( thisval.split("|")[1] ); $('input[name="sCountry"]').val(country_abbreviation); $.ajax({ url: 'ajax/statesList.cfm', data: 'country_id=' + country_id + '&addEmptyValue=1', type: 'POST', success: function(response){ $('select[name="sState"]').find('option').remove(); $('select[name="sState"]').append(response); } }); }); $('#checkout').click(function(e){ e.preventDefault(); var msg = ''; var patternMail = new RegExp("^([a-zA-Z0-9_\.\-])+\@([a-zA-Z0-9_\.\-])+[\.]([a-zA-Z0-9]{2,4})$"); var intro = 'Please review the following:\n\n'; var First_Name = $.trim( $('#First_Name').val() ); var Last_Name = $.trim( $('#Last_Name').val() ); var Email = $.trim( $('#Email').val() ); EmailLCase = Email.toLowerCase(); var EmailCheck = $.trim( $('#EmailCheck').val() ); EmailCheckLCase = EmailCheck.toLowerCase(); var Password = $.trim( $('#Password').val() ); var PasswordCheck = $.trim( $('#PasswordCheck').val() ); var Address = $.trim( $('#Address').val() ); var City = $.trim( $('#City').val() ); var State = $.trim( $('select[name="State"]').val() ); var Zip = $.trim( $('#Zip').val() ); //Start check if( First_Name.length == 0 ){ msg = msg + '-' + $.trim( $('#first_name_required').val() ) + '\n'; } if( Last_Name.length == 0 ){ msg = msg + '-' + $.trim( $('#last_name_required').val() ) + '\n'; } if( Email.length == 0 ){ msg = msg + '-' + $.trim( $('#email_required').val() ) + '\n'; } if( EmailCheck.length == 0 ){ msg = msg + '-' + $.trim( $('#emailcheck_required').val() ) + '\n'; } if( Password.length == 0 ){ msg = msg + '-' + $.trim( $('#password_required').val() ) + '\n'; } if( PasswordCheck.length == 0 ){ msg = msg + '-' + $.trim( $('#passwordcheck_required').val() ) + '\n'; } if( Address.length == 0 ){ msg = msg + '-' + $.trim( $('#address_required').val() ) + '\n'; } if( City.length == 0 ){ msg = msg + '-' + $.trim( $('#city_required').val() ) + '\n'; } if( State.length == 0 ){ msg = msg + '-' + $.trim( $('#state_required').val() ) + '\n'; } if( Zip.length == 0 ){ msg = msg + '-' + $.trim( $('#zip_required').val() ) + '\n'; } if( msg.length > 0 ){ msg = intro + msg; alert( msg ); } else{ if( !patternMail.test(Email) ){ msg = msg + '-Please enter a valid Email.\n'; } if( msg.length > 0 ){ msg = intro + msg; alert( msg ); } else{ if( EmailLCase != EmailCheckLCase ){ msg = msg + '-The 2 Emails must match.\n'; } if( Password != PasswordCheck ){ msg = msg + '-The 2 Passwords must match.\n'; } if( msg.length > 0 ){ msg = intro + msg; alert( msg ); } else{ $('#frm').submit(); } } } }); $('#countriesListCC').change(function(){ var thisval = $.trim( $(this).val() ); country_id = $.trim( thisval.split("|")[0] ); country_abbreviation = $.trim( thisval.split("|")[1] ); $('input[name="cust_ccCountry"]').val(country_abbreviation); $.ajax({ url: 'ajax/statesList.cfm', data: 'country_id=' + country_id, type: 'POST', success: function(response){ $('select[name="cust_ccState"]').find('option').remove(); $('select[name="cust_ccState"]').append(response); } }); }); $('#countriesShippingList').change(function(){ var thisval = $.trim( $(this).val() ); country_id = $.trim( thisval.split("|")[0] ); country_abbreviation = $.trim( thisval.split("|")[1] ); $('input[name="sCountry"]').val(country_abbreviation); $.ajax({ url: 'ajax/statesList.cfm', data: 'country_id=' + country_id + '&addEmptyValue=1' + '&valueEmptyValue=' + '&textEmptyValue=', type: 'POST', success: function(response){ $('select[name="sState"]').find('option').remove(); $('select[name="sState"]').append(response); } }); }); });
 

BMBC




Six Ingredients In Prayer ($20.00)

 (2-Disc Series)

Are you wondering why it seems your prayers are delayed or unanswered?

Bishop Smith simplifies the process of getting your mind, heart, and speech to align with God's Word resulting in your prayers being answered.

Each relationship in your life is enlightened and exposed to release you to pray without ceasing.  This is the series to own to pray through to your destiny.


>

 
 
 
PrayerInvite