function validate(form_name){
	var required = new Array('applicant_name', 'applicant_phone', 'applicant_address', 'applicant_city', 'applicant_state', 'applicant_zip');
	var incomplete = new Array();
	
	for (var i=0; i < required.length; i++) {
		if (document.getElementById(required[i]).value == "") {
			if(incomplete.length > 0){
				incomplete[(incomplete.length)] = required[i];
			} else {
				incomplete[0] = required[i];
			}
		}
	}
		
	if(incomplete.length >= 1){
		for(var w = 0; w < incomplete.length; w++){
			var element_name = incomplete[w];
			document.getElementById(element_name).style.backgroundColor = '#FFFDC9';
		}
		alert('Please complete all of the required fields');
		return false;
	} else {
		if (document.getElementById('application_signed').checked == false) {
			alert("You must agree to our Application Agreement before proceeding");
			return false;
		}
		document.getElementById(form_name).submit();	
	}
}