// JavaScript Document

// JavaScript Document


   <!--
  	function validateForm(theForm) {
		
		var why = "";
		
		why += checkText(theForm.txtName.value, 'Please enter a your full name.');
		why += checkEmail(theForm.txtEmail.value);
		
		if (theForm.txtNumber)
		why += checkNumber(theForm.txtNumber.value);

		if (theForm.txtMessage)
		why += checkText(theForm.txtMessage.value, 'Please enter a message.');
		
		if (why != "") {
		   alert(why);
		   return false;
		}
		return true;
		}
	
	function checkText(strng1, strng2) {
	var error = "";
	if (strng1 == "") {
	   error = strng2+"\n";
	   }
	return error;
	}
	
	function checkNumber(strng) {
	var error = "";
	var validChars = "0123456789+ ";
    var Char;

    for (i = 0; i < strng.length && error == ""; i++) 
      { 
      Char = strng.charAt(i); 
      if (validChars.indexOf(Char) == -1) 
         {
         error = "Please enter a valid phone number.\n";
         }
      }
	  
	if (strng == "") {
	   error = "Please enter your phone number.\n";
	   }
	   
    return error;
	}
	
	function checkEmail(strng) {
	var error="";
	if (strng == "") {
	   error = "Please enter your email address.\n";
	}
	
		var emailFilter=/^.+@.+\..{2,3}$/;
		if (!(emailFilter.test(strng))) { 
		   error = "Please enter a valid email address.\n";
		}
		else {
	//test email for illegal characters
		   var illegalChars= /[\(\)\<\>\,\;\:\\\"\[\]]/
			 if (strng.match(illegalChars)) {
			  error = "The email address contains illegal characters.\n";
		   }
		}
	return error;    
	}

	--> 