// JavaScript Document

			function ValidateAddTeacherForm()
			{
				var str;
                var where_to= confirm("Do you really want to submit?");
				
				str = document.TeacherForm.Signon_ID.value;
				if (str.length == 0)
				{
					window.alert("Teacher ID is required.");
					document.TeacherForm.Signon_ID.focus();
					return false;
				}
				str = document.TeacherForm.Password.value;
				if (str.length == 0)
				{
					window.alert("Password is required.");
					document.TeacherForm.Password.focus();
					return false;
				}

				str = document.TeacherForm.FirstName.value;
				if (str.length == 0)
				{
					window.alert("First Name is required.");
					document.TeacherForm.FirstName.focus();
					return false;
				}

				str = document.TeacherForm.LastName.value;
				if (str.length == 0)
				{
					window.alert("Last Name is required.");
					document.TeacherForm.LastName.focus();
					return false;
				}

				str = document.TeacherForm.Email.value;
				if (str.length == 0)
				{
					window.alert("Email is required.");
					document.TeacherForm.Email.focus();
					return false;
				}
				
				
 				return where_to;
			}





function ValidateUpdateTeacherForm()
			{
				var str;
				    var where_to= confirm("Do you really want to submit?");
					
				str = document.UpdateTeacherForm.Password.value;
				if (str.length == 0)
				{
					window.alert("Password is required.");
					document.UpdateTeacherForm.Password.focus();
					return false;
				}

				str = document.UpdateTeacherForm.FirstName.value;
				if (str.length == 0)
				{
					window.alert("First Name is required.");
					document.UpdateTeacherForm.FirstName.focus();
					return false;
				}

				str = document.UpdateTeacherForm.LastName.value;
				if (str.length == 0)
				{
					window.alert("Last Name is required.");
					document.UpdateTeacherForm.LastName.focus();
					return false;
				}


				return where_to;
			}
