// JavaScript Document
<!--
	function IsNumeric(strString)
   //  check for valid numeric strings	
   {
   var strValidChars = "0123456789.-";
   var strChar;
   var blnResult = true;

   if (strString.length == 0) return false;

   //  test strString consists of valid characters listed above
   for (i = 0; i < strString.length && blnResult == true; i++)
      {
      strChar = strString.charAt(i);
      if (strValidChars.indexOf(strChar) == -1)
         {
         blnResult = false;
         }
      }
   return blnResult;
   }


	function checkform()
	{
		var emailFilter=/^.+@.+\..{2,3,4,6}$/;
		error= "";		
		if(document.getElementById('fname').value=="")
			error = "Name is required.";
		if(document.getElementById('email').value=="")
			error = error+"\nEmail is required.";	
		if(document.getElementById('email').value!=""){
		if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.getElementById('email').value) == false)
			error = error+"\nYour email address must be valid. Example: yourname@aol.com";							
		}
		if(document.getElementById('phone').value=="")
			error = error+"\nPhone is required.";	
		if(error == "")
			return true;
		else
			{
				alert(error);
				return false;
			}	
			return false;
	}

-->

