
			/* Check to see if string is empty.  If empty, return true */
			function isEmpty(str)
			{
				if ( (str==null) || (str=="") )
					return true;
				else
					return false;
			}
			
			/* Check if string contains all digits.  If all digits, return true */
			function isAllDigits(string)
			{
				for (var i = 0; i < string.length; i++)
				{
					if ( (string.charAt(i) < '0') || (string.charAt(i) > '9') )
						return false;
				}
				return true;
			}
			
			/* Select contents for field with focus */
			function selectContents(fieldObject)
			{
				fieldObject.select();
			}
			
			
			/* --------------------------------------------------------------------------------- */
			
			/* Validate First Name */
			function validateFName(form)
			{
				fName = form.realname.value;
				
				if (isEmpty(fName))
				{
					alert("Your Name is required.");
					form.realname.focus();
					return false;
				}
				return true;
			}

			
			/* Validate Email */
			function validateEmail(form)
			{
				emaill = form.email.value;
				
				if (isEmpty(emaill))
				{
					alert("Your Email Address is required.");
					form.email.focus();
					return false;
				}
				return true;
			}
			/* Validate entire form */
			function validateAll(form)
			{
				
				if (!validateFName(form))				// First Name
					return false;
				
				if (!validateEmail(form))				// Email
					return false;
				

				return true;


			}

			function validateThis(form)
			{
				if (validateAll(form))
					form.submit();
			}