$(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




Faith for Change Vol2 ($40.00)

Are you waiting for your change to come?  Are you getting in your own way of your expected blessing? 

In volume 2 of Faith for Change Today, Bishop Smith takes you through the life activating steps that will keep your expectations high, while taking an introspective look at yourself. 

This teaching will help you to fall out of love with your feelings and in love with what God says about you and help you to forgive others and most importantly, yourself. 

Get ready to grab a hold of God in a way you never have before as you learn to have Faith for Change Today!

>

 
 
 
PrayerInvite