function ValidateForm()
{
    var errors = '';
    var stmp = '';
    
    // full name
    if (trim(document.getElementById("txtFullName").value) == "")
    {
        errors = 'Full Name is required';
        stmp = ",\n";
    }            
     
	// email
	if (trim(document.getElementById("txtEmail").value) == "")
	{
	errors = errors + stmp + 'Email is required';
	stmp = ",\n";
	}
	else if (echeck(trim(document.getElementById("txtEmail").value)) == false)
	{
	errors = errors + stmp + 'Email is invalid';
	stmp = ",\n";
	}
	else if (trim(document.getElementById("txtEmail").value) != trim(document.getElementById("txtEmailConfirm").value))
	{
	errors = errors + stmp + 'Email and Email Confirmation must match';
	stmp = ",\n";
	}	 
     
    // comment
    if (trim(document.getElementById("txtComment").value) == "")
    {
        errors = errors + stmp + 'A Question or Comment is required';
        stmp = ",\n";
    }    
    
	if (errors != "")
	{
	alert("Please correct the following errors on your application: \n\n" + errors);
	return false;
	}
	else
	{
	 return true;
	}

}
