{if $myobj->ajaxCommonVar.action eq 'showOptionToAnswer'}
	{if  !$myobj->showOptionToAnswer.is_member}
		Session Expired. <a href="{$CFG.auth.login_url}'?r">Login to continue..!</a>
	{/if}
    <form name="postans{$myobj->showOptionToAnswer.comment_id}" id="postans{$myobj->showOptionToAnswer.comment_id}" method="post">
     	<div class="clsPostReply">
           <p><textarea name="user_reply" id="user_reply" rows="5"  maxlength="{$CFG.admin.comment.limit}" onClick="removeSpam('validReply{$myobj->showOptionToAnswer.comment_id}');" onFocus="updatelength(this, 'ss{$myobj->showOptionToAnswer.comment_id}');" onKeyUp="updatelength(this, 'ss{$myobj->showOptionToAnswer.comment_id}');"></textarea></p>
           <span id="validReply{$myobj->showOptionToAnswer.comment_id}" class="LV_validation_message LV_invalid"></span>
		   <div id="ss{$myobj->showOptionToAnswer.comment_id}" class="clsZeroColour"> {$LANG.header_remainig} :{$CFG.admin.comment.limit}</div>
        </div>
   		<div class="clsBlogButtons clsReplyBlogs">
            <div class="clsPostCommentLeftBtn">
                <div class="clsPostCommentRightBtn">
           		     <input type="button"  class="clsSubmitButton" name="post_reply" id="post_valuess{$myobj->showOptionToAnswer.comment_id}" onclick="ajaxSubmitForm('{$myobj->showOptionToAnswer.blogComment_url1}{$myobj->showOptionToAnswer.blogComment_pars1}','{$myobj->showOptionToAnswer.blogComment_pars2}', '{$myobj->showOptionToAnswer.selReplyId}', '{$myobj->showOptionToAnswer.comment_id}'); return false;" value="{$LANG.post_reply}" tabindex="{smartyTabIndex}" onClick="return hideAllBlocks();" />
                </div>
            </div>
    		 <div class="clsPostCommentCancelLeftBtn">
                 <div class="clsPostCommentCancelRightBtn">
               		  <input type="button" class="clsCancelButton" name="cancel_reply" id="cancel_reply" onClick="ajaxUpdateDiv('{$myobj->showOptionToAnswer.blogComment_url}', '{$myobj->showOptionToAnswer.blogComment_pars}', '{$myobj->showOptionToAnswer.selReplyId}'); return false;" value="{$LANG.common_cancel}" tabindex="{smartyTabIndex}" />
                 </div>
             </div>
        </div>
	</form>

{/if}
{if $myobj->ajaxCommonVar.action eq 'cancelOptionToAnswer'}
    {if  !$myobj->cancelOptionToAnswer.is_member}
		Session Expired. <a href="{$CFG.auth.login_url}'?r">Login to continue..!</a>
	{/if}
	{if $myobj->hasReply($myobj->cancelOptionToAnswer.comment_id)}
  		{foreach key=i item=val from=$myobj->cancelOptionToAnswer.fetchReply}
                                   <div class="clsBlogReply">
                                       <div class="clsClearfix clsInnerBlogWidth">
                                           <div class="clsUserBlogDetails">
                                               <div class="clsBlogDetails">
                                                   <p>
                                                       <span id="selEditCommentTxt_{$val.record.comment_id}">
                                                           {$val.user_comment}
                                                       </span>
                                                   </p>
                                                     <div class="clsClearfix clsUserSubLinks">
                                                        <div class="clsUserLinkBy clsNoLeftBgPadngMrgn">
                                                                {$LANG.replied_by}
                                                        </div>
                                                       {if  isUserImageAllowed()}
                                                           <div class="clsUserLinkImage">
                                                               {$myobj->displayBlogUserSmallImage($val.userDetails)}
                                                           </div>
                                                       {/if}
                                                        <div class="clsUserLinkName clsNoLeftBgPadngMrgn">
                                                            <a href="{$val.myanswers_url}">
                                                                {$val.strip_name}
                                                            </a>
                                                        </div>
                                                        <div class="clsUserLinkDate">
                                                           {$val.date_added}
                                                        </div>
                                                        {if $val.usr_chk }
                                                             <div class="clsAnsDelete">
                                                                <span class="clsBlogInfoTitle">
                                                                    <a href="{$val.blogcomment_url}" onClick="{$val.onclick_confirm}" class="more">
                                                                        {$LANG.common_delete}
                                                                    </a>
                                                                </span>
                                                              </div>
                                                         {/if}
                                                      </div>
                                               </div>
                                             </div>
                                        </div>
                                      </div>
                                {/foreach}

	{/if}
{/if}

{if $myobj->ajaxCommonVar.action eq 'deleteComments'}
   	{if  !$myobj->deleteComments.is_member}
		Session Expired. <a href="{$CFG.auth.login_url}'?r">Login to continue..!</a>
	{/if}
    {if $myobj->deleteComments.blog_id && $myobj->deleteComments.comment_id && $myobj->deleteComments.main_comment_id}
		<div id="selMsgSuccess">
              	<p>{$LANG.reply_deleted_successfully}</p>
        </div>
        <div id="{$myobj->deleteComments.selViewReplyId}" class="clsViewReplies">
        	<div id="{$value.selReplyId}" class="clsReplies">
            	{if $myobj->hasReply($myobj->deleteComments.main_comment_id)}
     				<div id="{$value.selViewReplyId}" class="clsViewReplies">
                    	{foreach key=i item=val from=$myobj->deleteComments.fetchReply}
                             <div class="clsBlogReply">
                             	<div class="clsClearfix clsInnerBlogWidth">
                                    <div class="clsUserBlogDetails">
                                         <div class="clsBlogDetails">
                                         <p>
                                            <span id="selEditCommentTxt_{$val.record.comment_id}">
                                                {$val.user_comment}
                                            </span>
                                         </p>
                                           <div class="clsClearfix clsUserSubLinks">
                                            <div class="clsUserLinkBy clsNoLeftBgPadngMrgn">
                                               {$LANG.replied_by}
                                            </div>
                                         {if  isUserImageAllowed()}
                                             <div class="clsUserLinkImage">
                                                 {$myobj->displayBlogUserSmallImage($val.userDetails)}
                                             </div>
                                           {/if}
                                           <div class="clsUserLinkName clsNoLeftBgPadngMrgn">
                                                   <a href="{$val.myanswers_url}">
                                                        {$val.strip_name}
                                                   </a>
                                            </div>
                                            <div class="clsUserLinkDate">
                                                {$val.date_added}
                                            </div>
                                            {if $val.usr_chk }
                                                <div class="clsAnsDelete">
                                                    <span class="clsBlogInfoTitle">
                                                       <a href="{$val.blogcomment_url}" onClick="{$val.onclick_confirm}" class="more">
                                                           {$LANG.common_delete}
                                                       </a>
                                                    </span>
                                                 </div>
                                            {/if}
                                        </div>
                                        </div>
                                    </div>
                                    </div>
                        </div>
                    {/foreach}
				  </div>
               {/if}
			 </div>
		  </div>
 		{/if}
{/if}

{if $myobj->ajaxCommonVar.action eq 'viewOptionToAnswer'}
				{if  !isMember()}
					Session Expired. <a href="{$CFG.auth.login_url}'?r">Login to continue..!</a>
				{/if}
		{/if}
{if $myobj->ajaxCommonVar.action eq 'postYourAnswer'}
	 {if $myobj->getFormField('user_reply')}
		{if $myobj->hasReply($myobj->postYourAnswer.comment_id)}
			<div id="selMsgSuccess">
               	<p>{$LANG.reply_added_successfully}</p>
            </div>
			 {literal}
				<script language="javascript" type="text/javascript">
					if($('selMsgSuccess'))
						{
							hideAnimateBlock('selMsgSuccess');
						}
				</script>
			{/literal}
		 	 <div id="{$myobj->postYourAnswer.selViewReplyId}" class="clsViewReplies">

             	 {if $myobj->hasReply($myobj->postYourAnswer.comment_id)}
     <div id="{$value.selViewReplyId}" class="clsViewReplies">

                            	{foreach key=i item=val from=$myobj->postYourAnswer.fetchReply}
                                   <div class="clsBlogReply">
                                       <div class="clsClearfix clsInnerBlogWidth">
                                           <div class="clsUserBlogDetails">
                                               <div class="clsBlogDetails">
                                                   <p>
                                                       <span id="selEditCommentTxt_{$val.record.comment_id}">
                                                           {$val.user_comment}
                                                       </span>
                                                   </p>
                                                     <div class="clsClearfix clsUserSubLinks">
                                                        <div class="clsUserLinkBy clsNoLeftBgPadngMrgn">
                                                                {$LANG.replied_by}
                                                        </div>
                                                           {if  isUserImageAllowed()}
                                                               <div class="clsUserLinkImage">
                                                                  {$myobj->displayBlogUserSmallImage($val.userDetails)}
                                                              </div>
                                                           {/if}
                                                           <div class="clsUserLinkName clsNoLeftBgPadngMrgn">
                                                            <a href="{$val.myanswers_url}">
                                                                {$val.strip_name}
                                                            </a>
                                                           </div>
                                                        <div class="clsUserLinkDate">
                                                           {$val.date_added}
                                                        </div>
                                                        {if $val.usr_chk }
                                                             <div class="clsAnsDelete">
                                                                    <a href="{$val.blogcomment_url}" onClick="{$val.onclick_confirm}" class="more">
                                                                        {$LANG.common_delete}
                                                                    </a>
                                                              </div>
                                                         {/if}
                                                      </div>
                                               </div>
                                             </div>
                                        </div>
                                      </div>
                                {/foreach}

                            </div>
                        {/if}

             </div>
		{/if}
	{/if}
{/if}