function emailValidation(str)
	{
		var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
		if (filter.test(str))
			return true;
		else
		{
			alert("Please enter a valid email address!");
			return false;
		}
	}
	
	function validateSendMailForm()
	{
		if(document.getElementById('name').value.trim().length > 0){
			if(document.getElementById('phone').value.trim().length > 0){
				if(document.getElementById('question').value.trim().length > 0){
					return emailValidation(document.getElementById('email').value);
				}
				alert('Please enter a valid question.');
				return false;
			}
			alert('Please enter a valid phone.');
			return false;
		}
		alert('Please enter a valid name.');
		return false;
	}
	
	String.prototype.trim = function() { 
                // Strip leading and trailing white-space 
                return this.replace(/^\s*|\s*$/g, ""); 
        } 

