// JavaScript Document

function CheckForm( theform )
{
	var bMissingFields = false;
	var strFields = "";
	
	if( theform.name.value == '' ){
		bMissingFields = true;
		strFields += "Name\n";
	}
	if( theform.email.value == '' ){
		bMissingFields = true;
		strFields += "Email address\n";
	}
		if( theform.body.value == '' ){
		bMissingFields = true;
		strFields += "Message\n";
	}
	
		
	if( bMissingFields ) {
		alert( "Please provide the following field(s):\n" + strFields );
		return false;
	}
	
	return true;
}