function validateMemorySplitMattress(f) {
	// If halves should be joined and both halves are the same, warn customer.
	// The selections.
	if ((f.firmness_left.selectedIndex == f.firmness_right.selectedIndex) && (f.split_style.selectedIndex == 0)) {
		// Alert and stop form from submitting.
		var button_clicked = confirm("Please note: you chose to have the halves of this mattress BONDED,\nbut you also chose the same firmness for both halves. This is in effect\na regular memory foam mattress (not a split mattress).\n\nClick \"Cancel\" to change your selections, or click \"OK\" to proceed.");
		return button_clicked;
	}
	// Values are okay.
	return true;
}

