// JavaScript Document

function val()
{
	var theName = document.forms[0].name.value;
	var theMessage = document.forms[0].message.value;
	
	if(theName.length == 0)
	{
		alert("I think your name contains at least one letter...");
		var ifFalse = 1;
	}
	
	if(theName.length >30)
	{
		alert("Sorry, too long name...");
		var ifFalse = 1;
	}
	
	if(theMessage.length == 0)
	{
		alert("You have to write something in the message box...");
		var ifFalse = 1;
	}
	
	if(ifFalse == 1)
	{
		return false;
	}
}