		// Get the value of the Radion Button Selected.
		function getRadio()
		{
			var radioName;
			
			if (document.getElementById('type1').checked)
				radioName = document.getElementById('type1').value;
			else if (document.getElementById('type2').checked)
				radioName = document.getElementById('type2').value;	

			return radioName;
		}
			
		// Most of above taken from Mark P's file: tolTip3.htm
		function formValidate()
		{
			// set "pass" to true, then if any validation fails it will be set to false. At the end of the 
			// function we'll return "pass", and if it's still true the form's action will execute.
			var pass = true;

			/* first check the Type of Video Entry field. It's required:
				YouTube or TeascherTube has been chosen
			*/
			radForm = document.VidEntry.type;
			if (!isRadioNameChecked(radForm))
			{
				document.getElementById("typeEntry").style.background = 'yellow';
				pass = false;
			}
			else
				document.getElementById("typeEntry").style.background = "white";

				
			var typeEntry = getRadio();

			if (typeEntry == "yt")
			{

				/* Check the entry url field. It's required:
					is it a valid YouTube Entry
				*/
				if (isEmpty(document.getElementById("entry_url").value))
				{
					document.getElementById("entry_url").style.background = 'yellow';    // highlight this element
					pass = false;
				}
				else
					document.getElementById("entry_url").style.background = 'white';

//			var YouTubeExp = /http:\/\/www\.youtube\.com\/watch\?v=/;
				var urlYT = document.getElementById("entry_url").value;
//			var resultYT = urlYT.match(YouTubeExp);
//			alert("resultYT: " + resultYT);
				
				if (!isYouTube(urlYT))
				{
					document.getElementById("entry_url").style.background = 'yellow';    // highlight this element
					pass = false;
				}
				else
					document.getElementById("entry_url").style.background = 'white'; 
			} else {
				/* Check the entry url field. It's required:
					is it a valid TeacherTube Entry
				*/
				if (isEmpty(document.getElementById("entry_tt_url").value))
				{
					document.getElementById("entry_tt_url").style.background = 'yellow';    // highlight this element
					pass = false;
				}
				else
					document.getElementById("entry_tt_url").style.background = 'white';

				var urlTT = document.getElementById("entry_tt_url").value;

				if (!isTeacherTube(urlTT))
				{
					document.getElementById("entry_tt_url").style.background = 'yellow';    // highlight this element
					pass = false;
				}
				else
					document.getElementById("entry_tt_url").style.background = 'white'; 
			}
			
			
			/* first check the username field. It's required:
				Check Book Name Section
			*/
			if (isEmpty(document.getElementById("entry_book").value))
			{
				document.getElementById("entry_book").style.background = 'yellow';    // highlight this element
				pass = false;
			}
			else
				document.getElementById("entry_book").style.background = 'white';
				
			if (!isAlphanumeric(document.getElementById("entry_book").value))
			{
				document.getElementById("entry_book").style.background = 'yellow';    // highlight this element
				pass = false;
				//alert("Not Alpha");
			}
			else
				document.getElementById("entry_book").style.background = 'white';


			/* first check the username field. It's required:
				Book Author Section
			*/
			
			if (isEmpty(document.getElementById("entry_author").value))
			{
				document.getElementById("entry_author").style.background = 'yellow';    // highlight this element
				pass = false;
			}
			else
				document.getElementById("entry_author").style.background = 'white';
				
			if (!isAlphanumeric(document.getElementById("entry_author").value))
			{
				document.getElementById("entry_author").style.background = 'yellow';    // highlight this element
				pass = false;
			}
			else
				document.getElementById("entry_author").style.background = 'white';
				
				
				
			/* first check the username field. It's required:
				Check Categor Section
			*/
			if (!isSelectionChosen("entry_category"))
			{
				document.getElementById("entry_category").style.background = 'yellow';
				pass = false;
			}
			else
				document.getElementById("entry_category").style.background = 'white';

			/* first check the username field. It's required:
				Check Birth Month Section
			*/
			if (document.getElementById("entry_category").value == "grp1" || document.getElementById("entry_category").value == "grp2")
			{
				if (!isSelectionChosen("entry_group"))
				{
					document.getElementById("entry_group").style.background = 'yellow'; 
					pass = false;
				}
				else
				{
					document.getElementById("entry_group").style.background = 'white';
				}
			}
			
			valLoop = document.getElementById("entry_group").value;
			
			//alert("valLoop: " + valLoop);
			for (i = 1; i <= valLoop; i++)
			{
				

				/* first check the username field. It's required:
					Check First name Section
				*/
				if (isEmpty(document.getElementById("entry_fname" + i).value))
				{
					document.getElementById("entry_fname" + i).style.background = 'yellow';    // highlight this element
					pass = false;
				}
				else
					document.getElementById("entry_fname" + i).style.background = 'white';
					
				if (!isAlphanumeric(document.getElementById("entry_fname" + i).value))
				{
					document.getElementById("entry_fname" + i).style.background = 'yellow';    // highlight this element
					pass = false;
					//alert("Not Alpha");
				}
				else
					document.getElementById("entry_fname" + i).style.background = 'white';


				/* first check the username field. It's required:
					Check Last Name Section
				*/
				if (isEmpty(document.getElementById("entry_lname" + i).value))
				{
					document.getElementById("entry_lname" + i).style.background = 'yellow';    // highlight this element
					pass = false;
				}
				else
					document.getElementById("entry_lname" + i).style.background = 'white';
					
				if (!isAlphanumeric(document.getElementById("entry_lname" + i).value))
				{
					document.getElementById("entry_lname" + i).style.background = 'yellow';    // highlight this element
					pass = false;
				}
				else
					document.getElementById("entry_lname" + i).style.background = 'white';


				/* first check the username field. It's required:
					Check Grade Section
				*/
				if (!isSelectionChosen("entry_grade" + i))
				{
					document.getElementById("entry_grade" + i).style.background = 'yellow'; 
					pass = false;
				}
				else
					document.getElementById("entry_grade" + i).style.background = 'white';


				/* first check the username field. It's required:
					Check First name Section
				*/
				if (isEmpty(document.getElementById("entry_library" + i).value))
				{
					document.getElementById("entry_library" + i).style.background = 'yellow';    // highlight this element
					pass = false;
				}
				else
					document.getElementById("entry_library" + i).style.background = 'white';

				if (!isAlphanumeric(document.getElementById("entry_library" + i).value))
				{
					document.getElementById("entry_library" + i).style.background = 'yellow';    // highlight this element
					pass = false;
					//alert("Not Alpha");
				}
				else
					document.getElementById("entry_library" + i).style.background = 'white';


				/* first check the username field. It's required:
					Check School Name Section
				*/
				if (isEmpty(document.getElementById("entry_school" + i).value))
				{
					document.getElementById("entry_school" + i).style.background = 'yellow';    // highlight this element
					pass = false;
				}
				else
					document.getElementById("entry_school" + i).style.background = 'white';

				if (!isAlphanumeric(document.getElementById("entry_school" + i).value))
				{
					document.getElementById("entry_school" + i).style.background = 'yellow';    // highlight this element
					pass = false;
				}
				else
					document.getElementById("entry_school" + i).style.background = 'white';


				/* first check the username field. It's required:
					Check City Name Section
				*/
				if (isEmpty(document.getElementById("entry_city" + i).value))
				{
					document.getElementById("entry_city" + i).style.background = 'yellow';    // highlight this element
					pass = false;
				}
				else
					document.getElementById("entry_city" + i).style.background = 'white';

				if (!isAlphanumeric(document.getElementById("entry_city" + i).value))
				{
					document.getElementById("entry_city" + i).style.background = 'yellow';    // highlight this element
					pass = false;
				}
				else
					document.getElementById("entry_city" + i).style.background = 'white';



				/* first check the username field. It's required:
					Check State or Province Section
				*/
				if (!isSelectionChosen("entry_state" + i))
				{
					document.getElementById("entry_state" + i).style.background = 'yellow';    // highlight this element
					pass = false;
				}
				else
					document.getElementById("entry_state" + i).style.background = 'white';


			/* first check the username field. It's required:
				Check Phone AreaCode Section
			*/
			var chkExp = /[0-9]{3}/;
			var areacode = document.getElementById("entry_ac" + i).value;
			
			if (!isNumeric2(areacode))
			{
				document.getElementById("entry_ac" + i).style.background = 'yellow';
				pass = false;
			}
			else
				document.getElementById("entry_ac" + i).style.background = 'white';

			if (chkExp.test(areacode))
				document.getElementById("entry_ac" + i).style.background = 'white';
			else
			{
				document.getElementById("entry_ac" + i).style.background = 'yellow';
				pass = false;
			}
			//alert("Finished Area Code");


			/* first check the username field. It's required:
				Check Phone Prefix Section
			*/
			var prefix = document.getElementById("entry_prefix" + i).value;
			
			if (!isNumeric2(prefix))
			{
				document.getElementById("entry_prefix" + i).style.background = 'yellow';
				pass = false;
			}
			else
				document.getElementById("entry_prefix" + i).style.background = 'white';

			if (chkExp.test(prefix))
				document.getElementById("entry_prefix" + i).style.background = 'white';
			else
			{
				document.getElementById("entry_prefix" + i).style.background = 'yellow';
				pass = false;
			}


			/* first check the username field. It's required:
				Check Phone Last 4 Section
			*/
			var last = document.getElementById("entry_last" + i).value;
			if (!isNumeric2(last))
			{
				document.getElementById("entry_last" + i).style.background = 'yellow';
				pass = false;
			}
			else
				document.getElementById("entry_last" + i).style.background = 'white';

			var lastExp = /[0-9]{4}/;
			
			if (lastExp.test(last))
				document.getElementById("entry_last" + i).style.background = 'white';
			else
			{
				document.getElementById("entry_last" + i).style.background = 'yellow';
				pass = false;
			}


			/* first check the username field. It's required:
				Check Agreement Scetion
			*/
			if (!isCheckboxChecked("entry_agree" + i))
			{
				document.getElementById("agree" + i).style.background = 'yellow';
				pass = false;
			}
			else
				document.getElementById("agree" + i).style.background = 'white';


				/* first check the username field. It's required:
					Check Adult First name Section
				*/
				if (isEmpty(document.getElementById("entry_guard_fname" + i).value))
				{
					document.getElementById("entry_guard_fname" + i).style.background = 'yellow';    // highlight this element
					pass = false;
				}
				else
					document.getElementById("entry_guard_fname" + i).style.background = 'white';

				if (!isAlphanumeric(document.getElementById("entry_guard_fname" + i).value))
				{
					document.getElementById("entry_guard_fname" + i).style.background = 'yellow';    // highlight this element
					pass = false;
					//alert("Not Alpha");
				}
				else
					document.getElementById("entry_guard_fname" + i).style.background = 'white';


				/* first check the username field. It's required:
					Check Adult Last Name Section
				*/
				if (isEmpty(document.getElementById("entry_guard_lname" + i).value))
				{
					document.getElementById("entry_guard_lname" + i).style.background = 'yellow';    // highlight this element
					pass = false;
				}
				else
					document.getElementById("entry_guard_lname" + i).style.background = 'white';
					
				if (!isAlphanumeric(document.getElementById("entry_guard_lname" + i).value))
				{
					document.getElementById("entry_guard_lname" + i).style.background = 'yellow';    // highlight this element
					pass = false;
				}
				else
					document.getElementById("entry_guard_lname" + i).style.background = 'white';


				/* first check the username field. It's required:
					Check Adult E-mail Section
				*/
				if (isEmpty(document.getElementById("entry_guard_email" + i).value))
				{
					document.getElementById("entry_guard_email" + i).style.background = 'yellow';    // highlight this element
					pass = false;
				}
				else
					document.getElementById("entry_guard_email" + i).style.background = 'white';

				if (!validEmail(document.getElementById("entry_guard_email" + i).value))
				{
					document.getElementById("entry_guard_email" + i).style.background = 'yellow';    // highlight this element
					pass = false;
				}
				else
					document.getElementById("entry_guard_email" + i).style.background = 'white';
			}


			if (!pass) alert ("Please correct the highlighted items");

			return pass;
		}