<!-- 
function formCheck(formobj) { 

var fieldRequired = Array(
"fullname",
"email",
"Sex",
"Age",
"Weight",
"Height",
"FrameSize",
"Lifestyle",
"ResultsWanted",
"WorkoutNow",
"WorkoutFrequency",
"WorkoutWeights",
"WorkoutAerobic",
"ExerciseTime",
"TrainingPrefs",
"WorkoutLocation",
"EquipmentHome",
"EquipmentGym",
"Activities",
"ProgramGoals",
"FoodsPerDay",
"MealsPerDay",
"MealsPerWeekIn",
"MealsPerWeekOut",
"FoodsEatOut",
"HeartProblems",
"BloodPressure",
"HistoryStrokeHeart",
"HistoryChestPain",
"HistoryDizzySpells",
"Surgery6Months",
"MedicalConditions",
"InjuriesPain",
"InjuriesPainDescription",
"Medications",
"MedicationsDescription",
"Treatments",
"TreatmentsDescription",
"DailyStress",
"IdealWeightGoal",
"IdealWeightEver",
"IdealWeightWhen",
"SpecialDiet",
"SpecialDietType",
"SpecialDietOther",
"SleepPerNight",
"Excuses",
"ExcusesExplained"); 

var fieldDescription = Array(
"Your Name",
"Your Email",
"Your Sex",
"Your Age",
"Your Weight",
"Your Height",
"Your Frame Size",
"Your Lifestyle",
"Your Fitness Goals",
"Do_You_Workout_Now",
"How_Often_Currently_Works_Out",
"About_Current_Weight_Workout",
"About_Current_Aerobic_Workout",
"Exercise_Time_of_Day",
"Training_Interests_Are",
"Currently_Works_Out_At",
"Equipment_Used_At_Home",
"Equipment_Used_At_Gym",
"Activities_Enjoyed_Are",
"Goals_Wanted_From_Program",
"Typical_24hr_Food_Intake",
"Meals_Eaten_In_A_Typical_Day",
"Eat_In_Meals_Per_Week",
"Eat_Out_Meals_Per_Week",
"Typical_Eat_Out_Foods_Consumed",
"Has_Heart_Problems",
"Has_High_Blood_Pressure",
"Stroke_Or_Heart_Attack_History",
"History_of_Chest_Pain",
"History_of_Dizzy_Spells",
"Surgery_In_Last_Six_Months",
"Medical_Conditions",
"Injuries_or_Pain",
"Explanation_of_Injuries_or_Pain",
"Taking_Medications",
"Description_of_Medications_Taken",
"Current_Treatments",
"Explanation_of_Current_Treatments",
"Daily_Stress_Rating",
"Ideal_Weight",
"Ever_Reached_Ideal_Weight",
"When_Reached_Ideal_Weight",
"Special_Diet",
"Special_Diet_Type",
"Other_Special_Diet",
"Sleep_Per_Night",
"Reasons_For_Not_Exercising",
"Reasons_Explained"); 

var alertMsg = "Please enter the following information:\r"; 
        
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": 
			    if (obj.value == "" || obj.value == null){ 
			        alertMsg += " - " + fieldDescription[i] + "\n"; 
			    }
				break;
			case "textarea": 
			    if (obj.value == "" || obj.value == null ){ 
			        alertMsg += " - " + fieldDescription[i] + "\n"; 
			    } 
			    break; 
			default: 
			    if (obj.value == "" || obj.value == null){ 
			        alertMsg += " - " + fieldDescription[i] + "\n"; 
			    }
				break;
			}
		}
} 
       
if (alertMsg.length !== l_Msg) 
{ 
       alert(alertMsg); 
       return false; 
} 
else 
{ 
return true; 
} 
} 

-->
