function validateEmail(email) {
		if (email.value.search("(.*)@(.*)")==-1) {
			alert('Please enter a valid email address.');
			email.focus();
			return false;
		}
		return checkForm(document.messageform);
	}
	function checkForm(frm) {
		if (frm.subject.value=="") {
			alert('Please enter a message subject.');
			document.messageform.subject.focus();
			return false;
		}
		if (frm.body.value=="") {
			alert('Please enter some message text before sending.');
			document.messageform.body.focus();
			return false;
		}
		return true;
	}

   function Validate(theForm) {
	if (theForm.MSSGClear.value.length > 150) {
	 alert("Please reduce the message by " + (theForm.MSSGClear.value.length - 150) + " characters.");
	 theForm.MSSGClear.focus();
	 return (false);
	} else {
		theForm.MSSG.value = theForm.MSSGClear.value + "\n" + theForm.ip.value + "\n" + theForm.dns.value;
	}
   }

   function checkLength() {
	var TotalLength
	TotalLength = document.Terminal.MSSGClear.value.length;
	document.Terminal.currentLength.value = TotalLength;
   }

   if( (navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4) ) {
	document.captureEvents( Event.KEYUP )
	document.onkeyup = checkLength;
   }

   if( (navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4) ) {
	document.onkeyup = checkLength;
   }