function javValidate()
		{	
			var strMessage = "";
			var objForm = document.emp;
			var objFirstEmptyField = null;
			//'===================================================='
			//' Validate that the required fields have '
			//'             been entered.  Also set a reference to '
			//'             the first field that is missing - it   '
			//'             will be used to set the focus to the   '
			//'             field.                                 '
			if (objForm.name.value == "") 
			{
				strMessage += "Name\n";	
				if (objFirstEmptyField == null)
					objFirstEmptyField = objForm.name;
			}
			
			if (objForm.email.value == "") 
			{
				strMessage += "Email Address\n";	
				if (objFirstEmptyField == null)
					objFirstEmptyField = objForm.email;
			}
			if (objForm.subs.value == "") 
			{
				strMessage += "Subject\n";	
				if (objFirstEmptyField == null)
					objFirstEmptyField = objForm.subs;
			}
			//'===================================================='
			if (strMessage != "")
			{
				//'========================================================'
				//'Prompt user with a list of missing fields. '
				//'             Then set the focus to the first incomplete '
				//'             field.                                     '
				window.alert("The following required fields are incomplete.\n\n" + strMessage);
				
				objFirstEmptyField.focus();
				//'========================================================'
			}			
			else
			{
				document.emp.action = "distaction.php";
				document.emp.submit();
			}						
		}
