$(document).ready(function(){
	$('#State').after('<label for="not-from-US"><input type="checkbox" name="not-from-US" id="not-from-US" style="margin-left:10px;"/> Not from the U.S.A.</label>');
	
	$('#State').change(function(){
		if ($(this).val() == "None") {
			$('#not-from-US').attr('checked','checked');
		} else {
			$('#not-from-US').removeAttr('checked');
		}
	});
	
	$('#not-from-US').change(function(){
		if ($(this).attr('checked')) {
			$('#State').parents('tr').after('<tr id="country-section"><td class="form-label">Country:</td><td><input type="text" name="country" id="country" size="14" class="validate[required]"/><label style="margin:0 5px 0 5px;">Province:</label><input type="text" name="Province" size="12" id="province" /></td></tr>');
			$('#State').val("None").attr('disabled','disabled');
		} else {
			$('#country-section').remove();
			$('#State').val("None").removeAttr('disabled');
		}
	});
});

