// JavaScript Document
function contactus(theForm)
				{
				
				  if (theForm.Name.value == "")
				  {
				    alert("Please enter your Name.");
				    theForm.Name.focus();
				    return (false);
				  }
				  
				  if (theForm.Email_Address.value == "")
				  {
				    alert("Please enter your Email Address.");
				    theForm.Email_Address.focus();
				    return (false);
				  }
				  
			var checkEmail = "@.";
			var checkStr = theForm.Email_Address.value;
			var EmailValid = false;
			var EmailAt = false;
			var EmailPeriod = false;
			for (i = 0;  i < checkStr.length;  i++)
			{
			ch = checkStr.charAt(i);
			for (j = 0;  j < checkEmail.length;  j++)
			{
			if (ch == checkEmail.charAt(j) && ch == "@")
			EmailAt = true;
			if (ch == checkEmail.charAt(j) && ch == ".")
			EmailPeriod = true;
		  if (EmailAt && EmailPeriod)
		break;
	  if (j == checkEmail.length)
		break;
		}

		if (EmailAt && EmailPeriod)
		{
		EmailValid = true
		break;
		}
		}
		if (!EmailValid)
		{
		alert("Please enter Valid Email Address");
		theForm.Email_Address.focus();
		return (false);
		}

				  if (theForm.Telephone.value == "")
				  {
				    alert("Please enter your Telephone.");
				    theForm.Telephone.focus();
				    return (false);
				  }
				  
				  var checkOK = "0123456789.+-() ";
				  var checkStr = theForm.Telephone.value;
				  var allValid = true;
				  var allNum = "";
				  for (i = 0;  i < checkStr.length;  i++)
				  {
				    ch = checkStr.charAt(i);
				    for (j = 0;  j < checkOK.length;  j++)
				      if (ch == checkOK.charAt(j))
				        break;
				    if (j == checkOK.length)
				    {
				      allValid = false;
				      break;
				    }
				    if (ch != ",")
				      allNum += ch;
				  }

				  if (!allValid)
				  {
				    alert("Please enter a valid Telephone wihout space or special characters.");

				    theForm.Telephone.focus();

				    return (false);

				  }

				  if (theForm.Message.value == "")
				  {
				    alert("Please enter your Message.");
				    theForm.Message.focus();
				    return (false);
				  }
				  }