$(document).ready(function() {
	$('.clearMe').clearField();	
	
	$("#about_company").jqm({trigger: 'a#about_company_link'});
	
	$("#rate_details a.edit").click(function(){
		$("#rate_details .text_mask").hide();
		$("#rate_details .text_input").show();
		$("#sub_index #rate_details .edit").hide();
	});
	
	$("#start_form #zip").change(function(){
		var getZip = $(this).val();
		
		$("#sub_index #zip_val").text(getZip);
		$("#sub_index #zip").val(getZip);
	});
	
	$("#start_form #curr_amount_owner").change(function(){
		var getCurrAmountOwner = $(this).val();
		
		$("#sub_index #curr_amount_val").text(getCurrAmountOwner);
		$("#sub_index #curr_amount_owner").val(getCurrAmountOwner);
	});
	
	$("#start_form #year_built").change(function(){
		var getYearBuilt = $(this).val();
		
		$("#sub_index #year_built_val").text(getYearBuilt);
		$("#sub_index #year_built").val(getYearBuilt);
	});
	
	$("#start_form input:radio[name=occupied]").change(function(){
		var getOccupied = $(this).val();
		
		$("#sub_index #occupied_val").text(getOccupied);
		$("#sub_index select[name=occupied]").val(getOccupied);
	});
	
	$("#start_form input:radio[name=construction_type]").change(function(){
		var getConstructionType = $(this).val();
		
		$("#sub_index #construction_type_val").text(getConstructionType);
		$("#sub_index select[name=construction_type]").val(getConstructionType);
	});
	
	$("#start_form input:radio[name=roof_2001]").change(function(){
		var getRoof2001 = $(this).val();
		
		$("#sub_index #roof_2001_val").text(getRoof2001);
		$("#sub_index select[name=roof_2001]").val(getRoof2001);
	});
	
	$("#start_form input:radio[name=repl_cost]").change(function(){
		var getReplCost = $(this).val();
		
		$("#sub_index #repl_cost_val").text(getReplCost);
		$("#sub_index select[name=repl_cost]").val(getReplCost);
	});
	
});
