<!--
function formCheck(formobj){
	// Enter name of mandatory fields
	var fieldRequired = Array("Name", "Month", "Day", "Year", "Age", "Gender", "Status", "Occupation", "Location", "State", "Country", "Hobbies", "Webcam_or_Similar", "Bio", "Access_PW", "Access_PW_Verify", "Personal_PW", "Personal_PW_Verify", "fm_from", "Repeat_Email", "Money", "Google_Services", "Commitment", "Permission", "Fee_Terms", "Other_Terms");
	// Enter field description to appear in the dialog box
	var fieldDescription = Array("Name", "Birth Month", "Birth Day", "Birth Year", "Age", "Gender", "Marital Status", "Occupation", "Hometown", "State or Province", "Country", "Hobbies & Interests", "Enhanced Video Content", "Personal Biography", "Access Password", "Verify Access Password", "Personal Password", "Verify Personal Password", "Email Address", "Verify Email Address", "Entry Fee Decision", "Agree to 'Google Services' Section", "Agree to 'Commitment to the Game' Section", "Agree to 'Game Content & Underage Players' Section", "Agree to 'Entry Fees' Section", "Agree to 'Other Terms & Conditions' Section");
	// dialog message
	var alertMsg = "These fields are required:\n";
	
	var l_Msg = alertMsg.length;
	
	for (var i = 0; i < fieldRequired.length; i++){
		var obj = formobj.elements[fieldRequired[i]];
		if (obj){
			switch(obj.type){
			case "select-one":
				if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].text == ""){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "select-multiple":
				if (obj.selectedIndex == -1){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "text":
			case "textarea":
				if (obj.value == "" || obj.value == null){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			default:
			}
			if (obj.type == undefined){
				var blnchecked = false;
				for (var j = 0; j < obj.length; j++){
					if (obj[j].checked){
						blnchecked = true;
					}
				}
				if (!blnchecked){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
			}
		}
	}

	if (alertMsg.length == l_Msg){
		return true;
	}else{
		alert(alertMsg);
		return false;
	}
}
// -->
