function toggleNote(noteCheckbox)
{
	var elem = document.getElementById('f_Notes');
	
	if ( noteCheckbox.checked ) {
		currentValue = elem.value;;
	
		if (noteCheckbox.name =='deliveryOption'){
		
			var myRegExp1 = /Hold in Goodie Box, Ship with Next Order\n/;
			var matchPos1 = currentValue.search(myRegExp1);
				
			if(matchPos1 != -1){
					currentValue= currentValue.replace(myRegExp1, '');
			}
					
			var myRegExp2 = /Ship immediately\n/;
			var matchPos2 = currentValue.search(myRegExp2);
				
			if(matchPos2 != -1){
				currentValue= currentValue.replace(myRegExp2, '');
			}
		}
		
		if (noteCheckbox.name =='paymentOption'){
		
			var myRegExp1 = /Pay with points\n/;
			var matchPos1 = currentValue.search(myRegExp1);
				
			if(matchPos1 != -1){
					currentValue= currentValue.replace(myRegExp1, '');
			}
					
			var myRegExp2 = /Normal payment\n/;
			var matchPos2 = currentValue.search(myRegExp2);
				
			if(matchPos2 != -1){
				currentValue= currentValue.replace(myRegExp2, '');
			}
		}		
		
		elem.value = noteCheckbox.value + "\n" + currentValue;
	}
	else {
		var test = new RegExp(noteCheckbox.value + "\n");
		elem.value = elem.value.toString().replace(test, '');
	}
}

function justSayNo()
{
	var elements = getElementsByClass('no_option');
	
	for (i = 0, j = 0; i < elements.length; i++) {
		// Only check off things that aren't being hidden by the parent span.
		if ( elements[i].parentNode.parentNode.style.display != 'none' ) {
			elements[i].checked = 'checked';
		}
	}
}