function ValidateData(theForm)
{
	if (theForm.ContactDate.value != "")
	{
		return false;
	}
	
	if (theForm.FirstName.value == "")
	{
		alert('Please, enter your First Name.');
		theForm.FirstName.focus();
		return false;
	}
	
	if (theForm.LastName.value == "")
	{
		alert('Please, enter your Last Name.');
		theForm.LastName.focus();
		return false;
	}	
	
	if (theForm.Address.value == "")
	{
		alert('Please, enter your Address.');
		theForm.Address.focus();
		return false;
	}
	
	if (theForm.Email.value == "")
	{
		alert('Please, enter your email.');
		theForm.Email.focus();
		return false;
	}
	else
	{
		if(!ValidateEmail(theForm.Email.value))
		{
			alert("Please check the email address");
			theForm.Email.focus();
			return false;
		}
	}
	
	if (theForm.Phone.value == "")
	{
		alert('Please, enter your phone.');
		theForm.Phone.focus();
		return false;
	}
	else
	{
		if(!ValidatePhone(theForm.Phone.value))
		{
			alert("Please, enter a valid phone number.");
			theForm.Phone.focus();
			return false;
		}
	}
	
	if (valor != "0")
	{
		if (valor == "Other")
		{
			if (theForm.Other.value == "")
			{
				alert('Please, enter your How did you hear about us?');
				theForm.Other.focus();
				return false;
			}
		}
	}	

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

function ValidateEmail(valor) 
{
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(valor))
		return true;
	else
		return false;
}

function ValidatePhone(incoming)
{
	var ValidChars = "0123456789.()- ";
	var IsCorrect=true;
	var Char;

	for (cont = 0; cont < incoming.length && IsCorrect == true; cont++) 
	{ 
		Char = incoming.charAt(cont); 
		if (ValidChars.indexOf(Char) == -1) 
			return false;
	}
	return true;
}
