function check_blank()
{
  var error='';
	if(document.getElementById('anonymous_name').checked == true )
  {
			if (trimAll(document.frm_poll.Name.value) == "")
      {
           error = "Please enter Name as Anonymous Identity. \n";
      }
  }
  if ( trimAll(document.frm_poll.Comment.value) == "")
  {
    error += "Please enter Comment.";
	}
	
	if(error != '')
	{
			alert(error);
			return false;
	}
  else
  {
    return true;
  }
}

function report_message(comment_id)
{
     //alert(document.getElementById('ObjectionArticleID').value);
     document.getElementById('ObjectionCommentID').value = comment_id;
     send=window.open(path+"comment-objection.php?id="+comment_id,"reportmessagewindow","menubar=0,toolbar=0,location=0,scrollbars=yes,directories=0,status=0,copyhistory=0,width=500,height=360");
}

