
function checkInfo()
{
  // Check name
  /*var sValue;
  sValue = document.freeload.name.value;
  if ( sValue == "" ) 
  {
    alert( 'The field "name" is mandatory.' );
    return false;
  }*/
  
  // Validate email
  sValue = document.form_getinfo.email.value;
  if ( ! validateEmail( sValue ) )
  {
    alert( 'Not a valid e-mail' );
    return false;
  }

  // All checks OK
  return true;
}

function validateEmail( sEmail )
{
  var nAt;
  nAt = sEmail.indexOf( '@' );
  if ( nAt == -1 )
  {
    return false;
  }
	
  sEmail = sEmail.substr( nAt, sEmail.length() );
  nAt = sEmail.indexOf( '.' );
  if ( nAt == -1 )
  {
    return false;
  }

  return true;
}
