function pf_card_cart_1_occasion_change () {
//	var pfc_occasion = document.getElementById('occasion');
	//var pfc_otheroccasion = document.getElementById('otheroccasion');
	
//	pfc_otheroccasion.disabled = (pfc_occasion[pfc_occasion.selectedIndex].value != 'other');
//	if (!pfc_otheroccasion.disabled) {
//		pfc_otheroccasion.focus();
//	}
	return true;
}

function pf_card_cart_1_validate () {
	var pfc_for = document.getElementById('for');
	var pfc_firstname = document.getElementById('firstname');
	var pfc_wedding1 = document.getElementById('wedding1');
	var pfc_wedding2 = document.getElementById('wedding2');
	var pfc_occasion = document.getElementById('occasion');
	var pfc_otheroccasion = document.getElementById('otheroccasion');
		
	clear_for();
	
	if (pfc_for.value == '') {
		alert('Please enter the person or intention that the Mass is to be celebrated for.');
		pfc_for.focus();
		return false;
	}
	if ((pfc_firstname.value == '') && ((pfc_wedding1.value == '') || (pfc_wedding2.value == ''))) {
		alert('Please enter the name to appear on the Mass Card or\nPlease enter the names to appear on the Wedding or Anniversay Mass Card.');
		pfc_firstname.focus();
		return false;
	}
	if ((pfc_firstname.value != '') && ((pfc_wedding1.value != '') || (pfc_wedding2.value != ''))) {
		alert('Please choose between the Mass Card or the Wedding Anniversay Mass Card.');
		return false;
	}
	if (pfc_occasion[pfc_occasion.selectedIndex].value == '') {
		alert('Please select an occasion for the Personalized Floral Mass Card.');
		return false;
	}
	if ((pfc_occasion[pfc_occasion.selectedIndex].value == 'other') && (pfc_otheroccasion.value == '')) {
		alert('Please type the occasion in the box provided.');
		pfc_otheroccasion.focus();
		return false;
	}
	if (returnRadioValue('pf_card_cart','cardinstruction') == null) {
		alert('Please select a Card Instruction.');
		return false;
	}
	return true;
}

function pf_card_cart_2_validate () {
	var pfc_signinstruction_value = returnRadioValue('pf_card_cart','signinstruction');
	var pfc_sign1 = document.getElementById('sign1');

	if (pfc_signinstruction_value == null) {
		alert('Please select a Signing Instruction.');
		return false;
	}
	if ((pfc_signinstruction_value == 'Y') && (pfc_sign1.value == '')) {
		alert('Please type how we should sign the card beginning on the first line.');
		pfc_sign1.focus();
		return false;
	}
	return true;
}

function pf_card_cart_3_validate () {
	return (validateAddress() && validateReturnAddress('pf_card_cart'));
}
