// JavaScript Document
function checkform( form )
{
  // ** START **
  if (trim(form.message.value) == "") {
    alert( "Please put a message in the box to submit." );
    form.message.focus();
    return false ;
  }
  // ** END **
  
}

function trim(str)
{
   return str.replace(/^\s+|\s+$/g,'');
}