jQuery(document).ready(function(){



	if (jQuery("#quote_payment_option option:selected:first").val() == 'M')
		jQuery("#quote_payment_option").parent().parent().next().hide();

	jQuery("#quote_payment_option").change(function () {
		var val = "";
		$("#quote_payment_option option:selected").each(function () {
			val += $(this).val();
		});
		//alert(val);
		if (val == 'M')
		{
			$(this).parent().parent().next().hide();
		}else
		{
			$(this).parent().parent().next().show();
		}
	});
	var spouseGender = jQuery("#quote_spouse_gender option:selected:first").val();
	if ( spouseGender != 'M' &&  spouseGender != 'F' )
		$("#quote_spouse_gender").parent().parent().next().hide();

	jQuery("#quote_spouse_gender").change(function () {
		var val = "";
		$("#quote_spouse_gender option:selected").each(function () {
			val += $(this).val();
		});
		//alert(val);
		if (val == 'M' || val == 'F')
		{
			$(this).parent().parent().next().show();
		}else
		{
			$(this).parent().parent().next().hide();
		}
	});
});