function validate_contact(theForm)
{
	var errMesg = "";
	var diplayMesg = ""
	var Q = ""; // this block determines lifespan of Q
	
	if (isWhitespace(theForm.contactName.value))
	{
		Q += "  Name\n";
	}
	if (isWhitespace(theForm.phone.value))
	{
		Q += "  Telephone\n";
	}
	else if(isNaN(theForm.phone.value))
	{
		Q += "  Telephone No Should be Numeric\n";
	}
	if(isNaN(theForm.fax.value))
	{
		Q += "  Fax No Should be Numeric\n";
	}
	
	if (isWhitespace(theForm.email.value))
	{
		Q += "  Email Address\n";
	}
	else if(echeck(theForm.email.value))
	{
	   errMesg += "Invalid Email Address.\n";
	}	
	else if(!isCharsInBag(theForm.email.value, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@._-"))
	{
	  errMesg += "Email Address contains Invalid Characters.\n";
	}
	//Check for password
	if (isWhitespace(theForm.comment.value))
	{
		Q += "  Suggestion/ Comment/ Inquiry\n";
	}
	if (isWhitespace(theForm.code.value))
	{
		Q += "  Security Code\n";
	}
	
	if ( Q.length > 0 )
	{
		diplayMesg = "Please provide Valid values for\n" + Q ;
		//errMesg += "Please provide Valid values for\n" + Q ;
	
	}

	if (errMesg == "" && diplayMesg == "")
	{
		//theForm.submit();
	}
	
	else
	{
	
			if(diplayMesg!="")
			{
				alert(diplayMesg);
				return false;			
			}
			else
			{
				alert(errMesg);
				return false;
			}	
	}
}