// JavaScript Document
<!------------------------------------------------------------------------->
function checkForm(form) 
{
	for (var i = 0; i < form.elements.length; i++) 
	{
		if (form.elements[i].value == "") 
		{
			alert("Llene todos los campos");
			return false;
		}
	}
		window.alert("Su mensaje se ha enviado");
		return true;
}

<!------------------------------------------------------------------------->