function form_validation ( )
{
    valid = true;

    if ( (document.email2friend.to.value == "") && (document.email2friend.from.value == "") )
    {
        alert ( "Please fill in the 'Email this article to:' and 'Your email address:' boxes." );
        valid = false;
    }

    else {

    if ( document.email2friend.to.value == "" )
    {
        alert ( "Please fill in the 'Email this article to:' box." );
        valid = false;
    }

    if ( document.email2friend.from.value == "" )
    {
        alert ( "Please fill in the 'Your email address:' box." );
        valid = false;
    }

   }

    return valid;
}
