	// Checks that a form is completed before allowing it to be submitted.
	function checkComplete() {  
		var alert_message = ""; // string to hold error messages

		//----------------------------------------------------------------
		var actionsChecked = 0;
		if (window.document.sms.sms.checked == true) { actionsChecked = actionsChecked + 1; }
		for (i = 0; i < window.document.sms.sms.length; i++) {
			if (window.document.sms.sms[i].checked == true) {
				actionsChecked = actionsChecked + 1;
			}
		}
		if (actionsChecked == 0) {
			alert_message = alert_message + "   A Session in the future\n";
		}
		
		// Check for a Numeric value
		if (isEmpty(window.document.sms.smsNumber.value)) {
			alert_message = alert_message + "   Your Mobile Number\n";
		}
		
		// Selection drop-down list - select something except the first value [0] "select an option please:"
		if (window.document.sms.smsHoursPrior.selectedIndex == 0) {
			alert_message = alert_message + "   Time prior to session for Reminder\n";
		}
		
		//----------------------------------------------------------------
		// Pop up alert message and don't submit form if error occured
		if (alert_message) { // if there was error, alert_message will not be empty
			alert ("Your reminder details are incomplete.\n" +
				   "You must supply the following:\n" +
					alert_message);
			return false;
		} else { // no alert_message, so proceed
			return true;
		}
	}
	
	// Returns "true" if "strValue" is empty, "false" otherwise.
	// Note - "strValue" containing only whitespace is considered empty.
	//
	// Created (16 Oct 2000) Raymond Woo

	function isEmpty (strValue) {
		return (! strValue.replace (/^(\s*)/, "", strValue));
	}

	
