function replyToArticle() {
  if ($('new-comment')) {
    Element.update('comment-msg', 'You are adding a new comment');
    new Effect.Highlight('comment-msg', {startcolor: '#001133'});
    $('comment_author').focus();
    $('comment_parent_id').value = '';
    return false;
  } else {
    return true;
	} // end if
} // end function

function replyToComment(num, id, name) {
  Element.update('comment-msg',
    'You are replying to comment #' + num + ' by ' + name +
    ' <a href="#" onclick="replyToArticle();return false;">(reply to article instead)</a>'
  );
  new Effect.Highlight('comment-msg', {startcolor: '#001133'});
  $('comment_author').focus();
  $('comment_parent_id').value = id;
  return false;
} // end function
