/********************************************

The Immokalee Foundation
jQuery Optional Form Fields

Version: 1.0
Author: Poccuo (http://www.poccuo.com)        	

*******************************************/

$(document).ready(function(){

	//Optional Form Fields
	
	$("#optionalFormFields").hide();
    
	$("#optionalFormFieldsToggle").click(function(){
		$("#optionalFormFields").fadeIn();
		$("#optionalFormFieldsToggle").hide();
		return false;						      	
	});
	
	
	//Personal Contact Other Option
	
	
	function checkValues() {
		var contact = $("#Personal_Contact").val();

		if (contact == "Other") {
			$("#personalContactOtherOption").html('<label for="Personal_Contact_Other">Please enter your contact&rsquo;s name:</label></label><input title="&nbsp;" type="text" id="Personal_Contact_Other" name="VARCHAR10" value="" size="25" class="required"/>'); 
		} else {
			$("#personalContactOtherOption").html('');
		}

	}

	$("#Personal_Contact").change(checkValues);
	checkValues();
		
});

