$('body').ready(function(){

	$('#security_code').keyup(formatSecurityCode);

});


var formatSecurityCode = function() {
	var oldCode = $('#security_code').val();
	var newCode = oldCode.toLowerCase();
	newCode = newCode.replace(/ /g, '')
	$('#security_code').val(newCode);
}