
<SCRIPT>
			function validate() {
				var alertstr = '';
				// validate Full Name
				if (document.info.fname.value=='')
					(!alertstr)?alertstr ='Please enter:\n- Full Name':alertstr +='\n- Full Name';
				// validate Email Address
				if (!isEmail(document.info.email.value))
					(!alertstr)?alertstr ='Please enter:\n- Valid Email Address':alertstr +='\n- Valid Email Address';
				// validate Phone
				if (!CheckPhoneNumber(document.info.phone.value))
					(!alertstr)?alertstr ='Please enter:\n- Valid Phone Number':alertstr +='\n- Valid Phone Number';
				// show alert if needed
				if (alertstr.length > 0) alert(alertstr); 
				// return results 
				return !(alertstr.length > 0);
			}

			function isEmail(str) {
				// are regular expressions supported?
				var supported = 0;
				if (window.RegExp) {
					var tempStr = "a";
					var tempReg = new RegExp(tempStr);
					if (tempReg.test(tempStr)) supported = 1;
				}
				if (!supported) return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
				var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
				var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
				return (!r1.test(str) && r2.test(str));
			}
			
			function CheckPhoneNumber(TheNumber) {
				var valid = 1
				var GoodChars = "0123456789()-+ "
				var i = 0
				if (TheNumber==""||TheNumber.length<7) {
					// Return false if number is empty
					valid = 0
				}
				for (i =0; i <= TheNumber.length -1; i++) {
					if (GoodChars.indexOf(TheNumber.charAt(i)) == -1) {
				// Note: Remove the comments from the following line to see this
				// for loop in action.
				// alert(TheNumber.charAt(i) + " is no good.")
						valid = 0
					} // End if statement
				} // End for loop
				return valid
			}
		</SCRIPT>