function form_validation ( )
{
    valid = true;

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

    else {

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

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

   }

    return valid;
}
