function validateForm(event)
{	
	var nombre = $('nombre').value;
	var apellidos = $('apellidos').value;
	var empresa = $('empresa').value;
	var telefono = $('telefono').value;
	var email = $('email').value;
	var asunto = $('comentarios').value;
	
	var error = false;
	var errorText = '';
	
	if ('' == nombre)
	{	
		error = true;
		errorText = errorText + '\nEl campo nombre es obligatorio.';
	}
	
	if ('' == apellidos)
	{	
		error = true;
		errorText = errorText + '\nEl campo apellidos es obligatorio.';
	}	
	
	
	if ('' == empresa)
	{	
		error = true;
		errorText = errorText + '\nEl campo empresa es obligatorio.';
	}		
	/*
	if ('' == telefono)
	{	
		error = true;
		errorText = errorText + '\nEl campo teléfono es obligatorio.';
	}
	*/
	if ('' == email)
	{	
		error = true;
		errorText = errorText + '\nEl campo email es obligatorio.';
	}

	if ('' == asunto)
	{	
		error = true;
		errorText = errorText + '\nEl campo comentarios es obligatorio.';
	}		

	if (error)
	{
		alert('Debe rellenar todos los campos del formulario.' + errorText);
		Event.stop(event);
		return false;
	}
	else	
	{
		return true;
	}
}

Event.observe(window, 'load', function() {	
	Event.observe('contactoForm', 'submit', validateForm);
});