$(document).ready(
  function() {
		var aAction = $('#actToken').val();
		if ( aAction == 'addOpinion' )
		{
			tb_show("","#TB_inline?&height=120&width=440&inlineId=opinionSentPopup",false);
			$('#actToken').val('');
		}
		else if ( aAction == 'activateOpinion')
		{
			tb_show("","#TB_inline?&height=120&width=440&inlineId=opinionActivatePopup",false);
			$('#actToken').val('');
		}
		else if ( aAction == 'errorOpinion' )
		{
			tb_show("","#TB_inline?&height=120&width=440&inlineId=opinionErrorPopup",false);
			$('#actToken').val('');
		}
		
		
		

		/*if (window.location.href.indexOf('add_comment') != -1) {
			//document.getElementById('idDivCommentsResult').style.display='block';
			
		}
		else if (window.location.href.indexOf('commentReported') != -1) {
			//document.getElementById('idDivCommentsReported').style.display='block';
			tb_show("","#TB_inline?&height=120&width=440&inlineId=commentReportedPopup",false);
		}
		else if (window.location.href.indexOf('commentActivated') != -1) {
			//document.getElementById('idDivCommentsActivated').style.display='block';
			tb_show("","#TB_inline?&height=120&width=440&inlineId=commentActivatedPopup",false);
		}
		else if (window.location.href.indexOf('commentDeleted') != -1) {
			tb_show("","#TB_inline?&height=120&width=440&inlineId=commentDeletedPopup",false);
			//document.getElementById('idDivCommentDeleted').style.display='block';
		}*/
		//else {
		//	document.getElementById('idDivCommentsForm').style.display='block';
		//}
							

});
