<div id="selListAll" class="clsAskQuestionPopup">
	{include file='../general/information.tpl'}
	  	<!-- Confirmation Div -->
	  	<div id="selMsgConfirm" class="selMsgConfirm" style="display:none;position:absolute;">
	    	<form name="formConfirm" id="formConfirm" method="post" action="{$myobj->getCurrentUrl()}">
	      		<p id="confirmMessage"></p>
	      		<table summary="{$LANG.container_to_get_confirmation}">
	        		<tr><td>
						<input type="button" class="clsPopSubmitButton" name="confirm_action" id="confirm_action" value="{$LANG.common_yes_option}" tabindex="{smartyTabIndex}" onClick="hideAllBlocks(); doRemoveAction();"/>
	            		&nbsp;
	            		<input type="button" class="clsPopCancelButton" name="cancel" id="cancel" value="{$LANG.common_no_option}" tabindex="{smartyTabIndex}" onClick="return hideAllBlocks();" />
	          		</td></tr>
	      		</table>
	      		<input type="hidden" name="action" />
	    	</form>
	  	</div>
	  	<div id="selDelInfoconfirm" class="clsPopupConfirmation" style="display:none;position:absolute;">
	    	<form name="msgInfoConfirmform" id="msgInfoConfirmform" method="post" action="{$myobj->getCurrentUrl()}">
	      		<p id="msgInfoConfirmText"></p>
	        	<table summary="{$LANG.container_to_get_confirmation}">
		        	<tr><td>
						<input type="button" class="clsPopSubmitButton" name="confirm" id="confirm" onclick="deleteQuestionAttachments('{$myobj->deleteQuestionAttachments_onclick}', '&amp;ajax_page=true&amp;deletemoreattachments=1');chkLimit(); return hideAllBlocks();" value="{$LANG.common_yes_option}" tabindex="{smartyTabIndex}" /> &nbsp;
			            <input type="button" class="clsPopCancelButton" name="no" id="no" value="{$LANG.common_no_option}" tabindex="{smartyTabIndex}" onClick="return hideAllBlocks();" />
						<input type="hidden" name="info_id" id="info_id" />
						<input type="hidden" name="ques_id" id="ques_id" />
						<input type="hidden" name="filename" id="filename" />
						<input type="hidden" name="act" id="act" />
					</td></tr>
	        	</table>
	    	</form>
	  	</div>

  	<div id="selShowQuestions">
		{if $myobj->isShowPageBlock('form_advanced_search')}
			<div class="clsCommonTopAnalystRoundedCorner">
			<div class="clsClearfix">
				<h2 class="clsQuestionHeading">
					{$myobj->search_home}
				</h2>
				<p class="clsEarnPoint">{$LANG.common_enter_search_options}</p>
			</div>
			  <!--rounded corners-->
			       <div class="clsShadedBg">
			  <div class="lbtopanalyst">
			    <div class="rbtopanalyst">
			      <div class="bbtopanalyst">
			        <div class="blctopanalyst">
			          <div class="brctopanalyst">
			            <div class="tbtopanalyst">
			              <div class="tlctopanalyst">
			                <div class="trctopanalyst">

				<form name="formAdvanceSearch" id="formAdvanceSearch" method="post" action="{$myobj->form_advanced_search_arr.form_action}">
			      	<div id="moreSearchOptions">
			        	<table summary="{$LANG.common_displaying_more_search_options}"  class="clsAskQuestion">
			          		<tr>
				            	<td class="{$myobj->getCSSFormLabelCellClass('more_questions')}"><label for="more_questions">{$LANG.question}</label></td>
				            	<td class="{$myobj->getCSSFormFieldCellClass('more_questions')}">{$myobj->getFormFieldErrorTip('more_questions')}
				              		<input type="text" class="clsCommonTextBox" name="more_questions" id="more_questions" value="{$myobj->getFormField('more_questions')}" tabindex="{smartyTabIndex}" />
				            	</td>
			        		</tr>
				        	<tr>
				            	<td class="{$myobj->getCSSFormLabelCellClass('dname')}"><label for="dname">{$LANG.login_user_name}</label></td>
				            	<td class="{$myobj->getCSSFormFieldCellClass('dname')}">{$myobj->getFormFieldErrorTip('dname')}
				              		<p><input type="text" class="clsCommonTextBox" name="dname" id="dname" value="{$myobj->getFormField('dname')}" tabindex="{smartyTabIndex}" /></p>
								</td>
				          	</tr>
				          	<tr>
				            	<td class="{$myobj->getCSSFormLabelCellClass('tags')}"><label for="tags">{$LANG.search_type_tags}</label></td>
				            	<td class="{$myobj->getCSSFormFieldCellClass('tags')}">{$myobj->getFormFieldErrorTip('tags')}
				              		<input type="text" class="clsCommonTextBox" name="tags" id="tags" value="{$myobj->getFormField('tags')}" tabindex="{smartyTabIndex}" />
				            	</td>
				          	</tr>
				          	<tr>
				            	<td class="{$myobj->getCSSFormLabelCellClass('type')}"><label for="type">{$LANG.questions_search_type}</label></td>
				            	<td class="{$myobj->getCSSFormFieldCellClass('type')}">{$myobj->getFormFieldErrorTip('type')}
				              		<select name="type" id="type" tabindex="{smartyTabIndex}">
				                		{$myobj->generalPopulateArray($myobj->form_advanced_search_arr.populateQuestionType, $myobj->getFormField('type'))}
				              		</select>
				            	</td>
				          	</tr>
				          	<tr>
				            	<td class="{$myobj->getCSSFormLabelCellClass('cat_id')}"><label for="cat_id">{$LANG.common_category}</label></td>
				            	<td class="{$myobj->getCSSFormFieldCellClass('cat_id')}">{$myobj->getFormFieldErrorTip('cat_id')}
				              		<select class="clsCommonListBox" name="cat_id" id="cat_id" tabindex="{smartyTabIndex}">
				                		<option value="">{$LANG.common_select_choose}</option>
				                		{$myobj->generalPopulateArray($myobj->populateCategories_arr, $myobj->getFormField('cat_id'))}
				              		</select>
				            	</td>
				        	</tr>
				        	{if chkIsVideoAllowed('question') or chkIsAudioAllowed('question')}
					        	<tr>
				        			<td class="{$myobj->getCSSFormLabelCellClass('video')}"><label for="video">{$LANG.questions_with}</label></td>
				        			<td class="{$myobj->getCSSFormFieldCellClass('video')}">{$myobj->getFormFieldErrorTip('video')}
							          	{if chkIsVideoAllowed('question')}
							              	<input type="checkbox" name="video" id="video" tabindex="{smartyTabIndex}" {$myobj->isCheckedCheckBox('video')} />
							              	<label for="video">{$LANG.video}</label>
							          	{/if}
							          	{if chkIsAudioAllowed('question')}
							              	<input type="checkbox" name="audio" id="audio" tabindex="{smartyTabIndex}" {$myobj->isCheckedCheckBox('audio')} />
							              	<label for="audio">{$LANG.audio}</label>
							          	{/if}
							        </td>
					          	</tr>
				          	{/if}
					        <tr>
					            <td class="{$myobj->getCSSFormLabelCellClass('total_answer_from')}"><label for="total_answer_from">{$LANG.total_answer_between}</label></td>
					            <td class="{$myobj->getCSSFormFieldCellClass('total_answer_from')}">
					                <input type="text" class="clsCommonNumberTextBox" name="total_answer_from" id="total_answer_from" value="{$myobj->getFormField('total_answer_from')}" tabindex="{smartyTabIndex}" />
					                 {$LANG.and}
					                <input type="text" class="clsCommonNumberTextBox" name="total_answer_to" id="total_answer_to" value="{$myobj->getFormField('total_answer_to')}" tabindex="{smartyTabIndex}" />
									{$myobj->getFormFieldElementErrorTip('total_answer_from')}
								</td>
					        </tr>
					        <tr>
								<td class="{$myobj->getCSSFormLabelCellClass('date_limits_to')}"><label for="date_limits_to">{$LANG.date_limits_to}</label></td>
								<td class="{$myobj->getCSSFormFieldCellClass('date_limits_to')}">{$myobj->getFormFieldErrorTip('date_limits_to')}
									<select name="date_limits_to" id="date_limits_to" tabindex="{smartyTabIndex}">
										{$myobj->generalPopulateArray($myobj->searchOption_arr, $myobj->getFormField('date_limits_to'))}
									</select>
								</td>
							</tr>
							<tr>
							<td><!----></td>
							 	<td class="{$myobj->getCSSFormFieldCellClass('submitsearch')}">
					              	<div class="clsSubmitLeft">
										<div class="clsSubmitRight">
					                		<input type="submit" class="clsSubmitButton" name="adv_search" id="adv_search" value="{$LANG.search}" tabindex="{smartyTabIndex}" />
					             		</div>
									</div>
								</td>
							</tr>
			        	</table>
			    	</div>
				</form>
		        			</div>
               			  </div>
            			</div>
          			  </div>
        			</div>
      			  </div>
    			</div>
  			  </div>
			  </div>
  			  <!--end of rounded corners-->
			</div>
		{/if}

		{if $myobj->isShowPageBlock('form_all') OR $myobj->isShowPageBlock('form_recent') OR $myobj->isShowPageBlock('form_popular') OR $myobj->isShowPageBlock('form_open') OR $myobj->isShowPageBlock('form_resolved') OR $myobj->isShowPageBlock('form_answered') OR $myobj->isShowPageBlock('form_unanswered') OR $myobj->isShowPageBlock('form_search_results') OR $myobj->isShowPageBlock('form_best') OR $myobj->isShowPageBlock('form_recently_answered')}
			<div class="clsTopNavigationRightMenu">
			<div class="clsClearfix">
					<h2 class="clsQuestionHeadingForBest">
					{if $myobj->getFormField('view') == 'search'}
						{if $myobj->getFormField('video') eq 1}
							{$myobj->search_home} <span>{$LANG.for_videos_answers}</span>
						{elseif $myobj->getFormField('audio') eq 1}
							{$myobj->search_home} <span>{$LANG.for_audios_answers}</span>
						{else}
							{$myobj->search_home}
						{/if}
					{elseif $myobj->getFormField('cat') != ''}
						{$myobj->dir_title}
					{else}
						{$myobj->title}
					{/if}
				</h2>
				</div>
				  <!--rounded corners-->
				  <div class="lbindex">
				    <div class="rbindex">
				      <div class="bbindex">
				        <div class="blcindex">
				          <div class="brcindex">
				            <div class="tbindex">
				              <div class="tlcindex">
				              	{if !$myobj->isShowPageBlock('form_search_results') AND !$myobj->isShowPageBlock('form_best')}
				                	<div class="trcindex">
				                {else}
				                	<div class="trcindex clsPaddingTop10">
				                {/if}
					<div class="clsClearfix clsQuestionPageBottom">
					<!---->
		        		{if !$myobj->isShowPageBlock('form_search_results') AND !$myobj->isShowPageBlock('form_best')}
		        			{if $myobj->isResultsFound()}
			                	<div class="clsViewBy clsClearfix">
			                 		<div class="clsFloatleft"> <h3>{$LANG.questions_view_by} : </h3></div>
			                  		<ul class="clsFloatleft">
				                    {if $myobj->getFormField('view') == 'unanswered'}
				                      	<li class="{$myobj->dateOrderClass} clsBackgroundNone"><a {$myobj->date_alt} class="{$myobj->clsDate}" href="{$myobj->unanswered_questions_url}">{$LANG.common_date}</a></li>
				                    {else}
				                        <li class="{$myobj->dateOrderClass} clsBackgroundNone"><a {$myobj->date_alt} class="{$myobj->clsDate}" href="{$myobj->unanswered_questions_url}">{$LANG.common_date}</a></li>
				                    {/if}

				                    {if $myobj->getFormField('view') != 'unanswered'}
				                        <li class="{$myobj->ansOrderClass}"><a {$myobj->ans_alt} class="{$myobj->clsAnswer}" href="{$myobj->answered_url}">{$LANG.questions_view_by_answers}</a></li>
				                    {/if}
			                  		</ul>
			                	</div>
		        			{/if}

							{if !$myobj->isShowPageBlock('form_search_results') AND !$myobj->isShowPageBlock('form_best')}
								<div id="selQuickLinks" class="clsQuestionsLink clsFloatright clsQuestionRightlinks">
						            <ul class="clsFloatright">
						                <li class="{$myobj->block_displayQuestionTabs_arr.allQuestionsLI}"><span><a href="{$myobj->block_displayQuestionTabs_arr.all_questions.url}">{$LANG.common_all}</a></span></li>
						                <li class="{$myobj->block_displayQuestionTabs_arr.popularQuestionsLI}"><span><a href="{$myobj->block_displayQuestionTabs_arr.popular_questions.url}">{$LANG.questions_popular}</a></span></li>
						                <li class="{$myobj->block_displayQuestionTabs_arr.openQuestionsLI}"><span><a href="{$myobj->block_displayQuestionTabs_arr.open_questions.url}">{$LANG.common_open}</a></span></li>
						                <li class="{$myobj->block_displayQuestionTabs_arr.resolvedQuestionsLI}"><span><a href="{$myobj->block_displayQuestionTabs_arr.resolved_questions.url}">{$LANG.common_resolved}</a></span></li>
						                <li class="{$myobj->block_displayQuestionTabs_arr.answeredQuestionsLI}"><span><a href="{$myobj->block_displayQuestionTabs_arr.answered_questions.url}">{$LANG.common_answered}</a></span></li>
						                <li class="{$myobj->block_displayQuestionTabs_arr.unansweredQuestionsLI}"><span><a href="{$myobj->block_displayQuestionTabs_arr.unanswered_questions.url}">{$LANG.common_unanswered}</a></span></li>
						            </ul>
						        </div>
					 	   	{/if}
		        		{/if}
					</div>
        		{if $myobj->isResultsFound()}
					{if $CFG.admin.navigation.top}
						 {if $myobj->isPagingRequired()}
						  <div class="clsPaginationForumTop">{include file='../general/pagination.tpl'}</div>
						 {/if}
					{/if}

        			{foreach key=daqkey item=daqvalue from=$myobj->block_displayAllQuestions_arr}
        				{if $myobj->isShowPageBlock('form_best') OR ($myobj->getFormField('opt') == 'bestans')}
			                <div class="clsQuestionsWithBestAnswer">
			            {/if}

			            <div class="{$daqvalue.clsOddOrEvenQuestion} clsUsersQuestion">
			            	<div class="clsUserThumbDetails {$daqvalue.bestAnsClass}">
			            		{if $CFG.admin.questions_module.voting}
									<div class="clsUserThumb clsUserThumbIndex">
								{else}
									<div class="clsUserThumb">
								{/if}
										<div class="clsClearFix">
											<div class="clsUserThumbLeft">
										   		{if $CFG.admin.questions_module.voting}
													<div class="clsVotingCount"><a href="{$daqvalue.answer_members.url}">
														<div class="clsVotingCountInner">
															<p class="clsCont">{$daqvalue.record.votes}</p>
															<p class="clsContText">{if $daqvalue.record.votes eq '1'}{$LANG.vote}{else}{$LANG.helpful}{/if}</p>
														</div></a>
													</div>
												{/if}
											</div>

										</div>
									</div>

                       				<div class="clsUserDetails">
                            			<p class="clsQuestionLink"><a href="{$daqvalue.answer.url}">{$daqvalue.row_question_manual}</a></p>

                            			<div class="clsClearfix clsUserSubLinks">
                            				<div class="clsUserLinkBy clsNoLeftBgPadngMrgn">{$LANG.common_in}&nbsp;</div>
                                			<div class="clsUserCategory clsNoLeftBgPadngMrgn "> {$daqvalue.showCategoryName} </div>
                                			<div class="clsUserLinkBy"> {$LANG.common_question_asked_by} </div>
											<div class="clsUserLinkImage">
											{if isUserImageAllowed()}
													{$myobj->displayProfileImage($daqvalue.record, 'tiny')}
									  		{/if}
											</div>
											<div class="clsUserLinkName clsNoLeftBgPadngMrgn"><a href="{$daqvalue.myanswers.url}">{$daqvalue.row_asked_by_manual}</a></div>
										</div>
                                		<div class="clsClearfix clsUserSubLinks">
                                		{assign var="clsNoLeftBgPadngMrgn" value="clsNoLeftBgPadngMrgn"}
										{if ($CFG.admin.attachments_questions.allowed and $daqvalue.has_attachment) or (chkIsVideoAllowed('question') and $daqvalue.record.video_id) or (chkIsAudioAllowed('question') and $daqvalue.record.audio_id)
											or (chkExternalVideoAllowed('question') and $daqvalue.record.external_video_id) or (chkExternalAudioAllowed('question') and $daqvalue.record.external_audio_id)}
											{assign var="clsNoLeftBgPadngMrgn" value=""}
											<div class="clsUserUploaded clsNoLeftBgPadngMrgn">
				                            	{if ($CFG.admin.attachments_questions.allowed and $daqvalue.has_attachment)}
													<a id="{$daqvalue.img_id}" href="{$daqvalue.attachment_path}" onclick="return displayImageGallery('{$daqvalue.img_id}')">
													<img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusimage.gif" /></a>
													<img src="{$daqvalue.image_large_path}" alt="" style="display: none;" />
												{/if}
												{if chkIsVideoAllowed('question') and $daqvalue.record.video_id}
				                                	<a id="{$daqvalue.ans_view_video.on_click}" href="{$daqvalue.ans_view_video.url}" onClick="{$myobj->getBrowser($daqvalue.ans_view_video.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusvideo.gif" alt="{$LANG.questions_video_available}" title="{$LANG.questions_video_available}" /></a>
				                            	{/if}
				                            	{if chkIsAudioAllowed('question') and $daqvalue.record.audio_id}
				                                	<a id="{$daqvalue.ans_view_audio.on_click}" href="{$daqvalue.ans_view_audio.url}" onClick="{$myobj->getBrowser($daqvalue.ans_view_audio.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusaudio.gif" alt="{$LANG.common_audio_available}" title="{$LANG.common_audio_available}" /></a>
				                            	{/if}
				                            	{if chkExternalVideoAllowed('question') and $daqvalue.record.external_video_id}
				                                	<a id="{$daqvalue.ext_ans_view_video.on_click}" href="{$daqvalue.ext_ans_view_video.url}" onClick="{$myobj->getBrowser($daqvalue.ext_ans_view_video.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-externalvideo.gif" alt="{$LANG.external_video_available}" title="{$LANG.external_video_available}" /></a>
				                            	{/if}
				                            	{if chkExternalAudioAllowed('question') and $daqvalue.record.external_audio_id}
				                                	<a id="{$daqvalue.ext_ans_view_audio.on_click}" href="{$daqvalue.ext_ans_view_audio.url}" onClick="{$myobj->getBrowser($daqvalue.ext_ans_view_audio.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-externalaudio.gif" alt="{$LANG.external_video_available}" title="{$LANG.external_video_available}" /></a>
				                            	{/if}
											</div>
				                        {/if}
										<div class="clsUserLinkViews {$clsNoLeftBgPadngMrgn}"><b> {$daqvalue.record.total_views} </b> {$daqvalue.views_plural} </div>
										<div class="clsUserLinkDate"> {$myobj->getTimeDiffernceFormat($daqvalue.record.date_asked)} </div>

										{if $daqvalue.record.is_open and $daqvalue.record.user_id == $CFG.user.user_id}

										{elseif $daqvalue.record.is_open and !$daqvalue.record.total_answer}
                                    		{if isMember()}
                                        		<div class="clsFirstPerson"><a href="{$daqvalue.answer_members.url}">{$LANG.be_the_first_one}</a></div>
                                    		{else}
                                        		<div class="clsFirstPerson"><a id="{$daqvalue.login_answer.on_click}" href="{$daqvalue.login_answer.url}" onclick="{$myobj->getBrowser($daqvalue.login_answer.on_click)}">{$LANG.be_the_first_one}</a></div>
                                    		{/if}
                                    	{elseif $daqvalue.record.is_open and $daqvalue.record.total_answer}
                                    		{if isMember()}
                                        		<div class="clsShareAnswer"><a href="{$daqvalue.answer_members.url}">{$LANG.common_share_your_answer}</a></div>
                                    		{else}
                                        		<div class="clsShareAnswer"><a id="{$daqvalue.login_answer.on_click}" href="{$daqvalue.login_answer.url}" onclick="{$myobj->getBrowser($daqvalue.login_answer.on_click)}">{$LANG.common_share_your_answer}</a></div>
                                    		{/if}
                                		{/if}
										{if $daqvalue.record.is_open}
											<div class="clsDaysLeft">{$myobj->getTimeToGoFormat($daqvalue.record.date_closed)}</div>
										{else}
											<div class="clsIndexResolved">{$LANG.common_resolved}</div>
										{/if}
										</div>

                          			</div>
										<div class="clsAnswerCount">
											<p><span>{$daqvalue.record.total_answer}</span>{$daqvalue.answer_plural}</p>
										</div>
			            	</div>
       			 		</div>

                		{if $myobj->isShowPageBlock('form_best') OR ($myobj->getFormField('opt') == 'bestans')}
                			{if $daqvalue.getBestAnswerForQuestion_arr}
		                        <div class="clsUserThumbDetails clsBestAnswerAnswer">
								   	{if $CFG.admin.answers_module.voting}
										<div class="clsUserThumb clsUserThumbIndex">
									{else}
										<div class="clsUserThumb">
									{/if}
											<div class="clsClearFix">
												<div class="clsUserThumbLeft">
												   	{if $CFG.admin.answers_module.voting}
														<div class="clsVotingCount"><a href="{$daqvalue.getBestAnswerForQuestion_arr.answer.url}">
															<div class="clsVotingCountInner">
																<p class="clsCont">{$daqvalue.getBestAnswerForQuestion_arr.record.votes}</p>
																<p class="clsContText">{if $daqvalue.getBestAnswerForQuestion_arr.record.votes eq '1'}{$LANG.vote}{else}{$LANG.helpful}{/if}</p>
														  	</div></a>
														 </div>
													{/if}
												</div>
											</div>
										</div>
		                        		<div class="clsUserDetails">
		                            		<div class="clsClearfix clsUserSubLinks">
		                                		<p>{$daqvalue.getBestAnswerForQuestion_arr.row_answer_manual}&nbsp;<span class="clsNoBorder"><a href="{$daqvalue.getBestAnswerForQuestion_arr.answer.url}">{$LANG.common_more}</a></span></p>
		                                		{assign var="clsNoLeftBgPadngMrgn" value="clsNoLeftBgPadngMrgn"}
												{if (chkIsVideoAllowed('answer') and $daqvalue.getBestAnswerForQuestion_arr.record.video_id) or (chkIsAudioAllowed('answer') and $daqvalue.getBestAnswerForQuestion_arr.record.audio_id) or ($daqvalue.getBestAnswerForQuestion_arr.record.source)
													or (chkExternalVideoAllowed('answer') and $daqvalue.getBestAnswerForQuestion_arr.record.external_video_id) or (chkExternalAudioAllowed('answer') and $daqvalue.getBestAnswerForQuestion_arr.record.external_audio_id)}
													{assign var="clsNoLeftBgPadngMrgn" value=""}
													<div class="clsUserUploaded clsNoLeftBgPadngMrgn">
				                                		{if chkIsVideoAllowed('answer') and $daqvalue.getBestAnswerForQuestion_arr.record.video_id}
					                                		<span><a id="{$daqvalue.getBestAnswerForQuestion_arr.ans_view_video.on_click}" href="{$daqvalue.getBestAnswerForQuestion_arr.ans_view_video.url}" onClick="{$myobj->getBrowser($daqvalue.getBestAnswerForQuestion_arr.ans_view_video.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusvideo.gif" alt="{$LANG.questions_video_available}" title="{$LANG.questions_video_available}" /></a></span>
				                                		{/if}
					                                	{if chkIsAudioAllowed('answer') and $daqvalue.getBestAnswerForQuestion_arr.record.audio_id}
					                                		<span><a id="{$daqvalue.getBestAnswerForQuestion_arr.ans_view_audio.on_click}" href="{$daqvalue.getBestAnswerForQuestion_arr.ans_view_audio.url}" onClick="{$myobj->getBrowser($daqvalue.getBestAnswerForQuestion_arr.ans_view_audio.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusaudio.gif" alt="{$LANG.common_audio_available}" title="{$LANG.common_audio_available}" /></a></span>
					                                	{/if}
					                                	{if chkExternalVideoAllowed('answer') and $daqvalue.getBestAnswerForQuestion_arr.record.external_video_id}
					                                		<span><a id="{$daqvalue.getBestAnswerForQuestion_arr.ans_view_externalvideo.on_click}" href="{$daqvalue.getBestAnswerForQuestion_arr.ans_view_externalvideo.url}" onClick="{$myobj->getBrowser($daqvalue.getBestAnswerForQuestion_arr.ans_view_externalvideo.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-externalvideo-qus.gif" alt="{$LANG.common_audio_available}" title="{$LANG.common_audio_available}" /></a></span>
					                                	{/if}
														{if chkExternalAudioAllowed('answer') and $daqvalue.getBestAnswerForQuestion_arr.record.external_audio_id}
					                                		<span><a id="{$daqvalue.getBestAnswerForQuestion_arr.ans_view_externalaudio.on_click}" href="{$daqvalue.getBestAnswerForQuestion_arr.ans_view_externalaudio.url}" onClick="{$myobj->getBrowser($daqvalue.getBestAnswerForQuestion_arr.ans_view_externalaudio.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-externalaudio-qus.gif" alt="{$LANG.common_audio_available}" title="{$LANG.common_audio_available}" /></a></span>
					                                	{/if}
														{if $daqvalue.getBestAnswerForQuestion_arr.record.source}
					                                    	<p>{$LANG.answers_sources}</p>
					                                    	<p>{$daqvalue.getBestAnswerForQuestion_arr.row_answer_manual}</p>
					                                	{/if}
													</div>
												{/if}
		                                		<div class="clsUserLinkBy {$clsNoLeftBgPadngMrgn}">{$LANG.questions_best_answer_by}</div>
		                                		{if $daqvalue.getBestAnswerForQuestion_arr.facebook_user_details}
		                                			<div class="clsUserLinkName clsNoLeftBgPadngMrgn"><a href="{$daqvalue.getBestAnswerForQuestion_arr.facebook_user_details.profile_url}">{$daqvalue.getBestAnswerForQuestion_arr.facebook_user_details.name}</a> </div>
		                                			<div class="clsUserLinkName clsNoLeftBgPadngMrgn"> {$LANG.common_via} <a href="http://www.facebook.com/">{$LANG.common_facebook}</a></div>
		                                		{else}
													<div class="clsUserLinkImage">
														{if isUserImageAllowed()}
															{$myobj->displayProfileImage($daqvalue.getBestAnswerForQuestion_arr.record, 'tiny')}
														{/if}
													</div>
													 <div class="clsUserLinkName clsNoLeftBgPadngMrgn"><a href="{$daqvalue.getBestAnswerForQuestion_arr.myanswers.url}">{$daqvalue.getBestAnswerForQuestion_arr.row_answered_by_manual}</a> </div>
												 {/if}
												 <div class="clsUserLinkDate">{$myobj->getTimeDiffernceFormat($daqvalue.getBestAnswerForQuestion_arr.record.date_answered)}</div>
												</div>
		                            		</div>
		                        		</div>
		                        </div>
		               		{/if}
		                {/if}

		            	{if $myobj->isShowPageBlock('form_best') OR ($myobj->getFormField('opt') == 'bestans')}
		                	</div>
		            	{/if}
        			{/foreach}

        			{if $CFG.admin.navigation.bottom}
            			{include file='../general/pagination.tpl'}
        			{/if}

    			{else}

	            	<div id="selMsgAlert">
	                	{if $myobj->isShowPageBlock('form_users_questions')}
	                    	<p>{$LANG.questions_no_records}</p>
	                	{elseif $myobj->isShowPageBlock('form_search_results')}
	                  		<p>{$myobj->site_name_manual}</p>
	                  		<p class="clsMsgAdditionalText">{$LANG.question_check_your_spelling}</p>
	                  		<p class="clsMsgAdditionalText"><a href="{$myobj->questions_ask_url}">{$LANG.questions_search_ask}</a> {$LANG.question_the_user_off} {$CFG.site.name}</p>
	                	{else}
	                      	<p>{$LANG.questions_no_records}</p>
	                	{/if}
	            	</div>
	        	{/if}
			</div>
				              </div>
				            </div>
				          </div>
				        </div>
				      </div>
				    </div>
				  </div>
				  </div>
				  <!--end of rounded corners-->
				</div>
		{/if}
	</div>

	{if $myobj->isShowPageBlock('form_add')}
	    {literal}
			<script language="javascript" type="text/javascript">
				var videoPreviewUrl = {/literal}'{$myobj->form_add.askQuestions_arr.video_default_preview_url}'{literal};
				var audioPreviewUrl = {/literal}'{$myobj->form_add.askQuestions_arr.audio_default_preview_url}'{literal};
				var video_not_encoded_info = {/literal}'{$myobj->form_add.askQuestions_arr.video_not_encoded_info}'{literal};
				var externalVideoPreviewUrl = {/literal}'{$myobj->form_add.askQuestions_arr.external_video_preview_url}'{literal};
				var audio_not_encoded_info = {/literal}'{$myobj->form_add.askQuestions_arr.audio_not_encoded_info}'{literal};
				var externalAudioPreviewUrl = {/literal}'{$myobj->form_add.askQuestions_arr.external_audio_preview_url}'{literal};
	        </script>
		{/literal}

		{if !$myobj->getFormField('cid') }
	        {if chkIsPaymentAllowed('payment_questions') and chkIsPaymentAlertMessageAllowed()}
	            <ul class="clsQuistionHind">
	            	{if $myobj->form_add.askQuestions_arr.total_notify eq $CFG.plan.unlimited_text && $myobj->form_add.askQuestions_arr.today_notify eq $CFG.plan.unlimited_text}
						<li> <p>{$LANG.notify_unlimited}</p></li>
					{elseif $myobj->form_add.askQuestions_arr.total_notify eq $CFG.plan.unlimited_text}
						<li> <p>{$LANG.notify_unlimited}</p></li>
						<li> <p>{$myobj->form_add.askQuestions_arr.today_notify}</p></li>
					{else}
			            <li> <p>{$myobj->form_add.askQuestions_arr.total_notify}</p></li>
			            <li> <p>{$myobj->form_add.askQuestions_arr.today_notify}</p></li>
		            {/if}
	            </ul>
	        {/if}
        {/if}
		<div class="clsClearfix">
				<h2 class="clsQuestionHeading">
					{$myobj->title}
				</h2>
		{if $myobj->CFG.admin.question.point_notification && $myobj->CFG.admin.ask_answers.allowed && !$myobj->getFormField('qid')}
				<p class="clsEarnPoint">{$myobj->form_add.askQuestions_arr.earn_points_details_info}</p>
			{else}
				<p class="">&nbsp;</p>
			{/if}
		</div>
		</div>
 		<div class="clsCommonTopAnalystRoundedCorner">
		  <!--rounded corners-->
		  <div class="clsShadedBg">
		  <div class="lbtopanalyst">
		    <div class="rbtopanalyst">
		      <div class="bbtopanalyst">
		        <div class="blctopanalyst">
		          <div class="brctopanalyst">
		            <div class="tbtopanalyst">
		              <div class="tlctopanalyst">
		                <div class="trctopanalyst">


				<form name="selFormAskQuestion" id="selFormAskQuestion" method="post" action="{$myobj->form_add.askQuestions_arr.form_action_url}" autocomplete="off" enctype="multipart/form-data">
      				{$myobj->populateHidden($myobj->form_add.askQuestions_arr.populateHidden_arr)}
      				<table class="clsAskQuestion" summary="{$LANG.questions_port_your}">
					<tr>
						<td colspan="2">
							<div class="AskQuestionSubHead">{$LANG.question_basic_info}</div>
						</td>
					</tr>

		        	<tr>
			          	<td class="{$myobj->getCSSFormLabelCellClass('question')}">
			              	{if $myobj->getFormField('qid')}
			                	{$LANG.questions_your_question}
			              	{else}
			                	<label for="question">{$LANG.questions_enter_question}</label>&nbsp;<span class="clsMandatory">*</span>&nbsp;
			              	{/if}
			              	{$myobj->ShowHelpTip('question')}
			          	</td>
			          	<td class="{$myobj->getCSSFormFieldCellClass('question')}">
			            	{if $myobj->getFormField('qid')}
				             	<input type="hidden" class="clsTextBox" name="question" id="question" tabindex="{smartyTabIndex}" value="{$myobj->getFormField('question')}" />
			    	         	<strong>{$myobj->form_add.askQuestions_arr.question_manual}</strong>
			            	{else}
	                            {if $CFG.admin.question_suggest.allowed}
	                                 <input type="text" class="clsTextBox {$myobj->getCSSFormFieldElementClass('question')}" name="question" id="question" maxlength="{$CFG.admin.question.limit}" tabindex="{smartyTabIndex}" value="{$myobj->getFormField('question')}" onkeypress="init();" onkeyup = "handleKeyUp(event); updatelength(this, 'ssa');" onclick="updatelength(this, 'ssa');" onblur="hideSuggestionsAfterSometime();"/>
	                                 <div id="scroll">
	                                	<div id="suggest"></div>
	                                 </div>
	                            {else}
	                                 <input type="text" class="clsTextBox {$myobj->getCSSFormFieldElementClass('question')}" name="question" id="question" maxlength="{$CFG.admin.question.limit}" tabindex="{smartyTabIndex}" onclick="updatelength(this, 'ssa');" onKeyUp="updatelength(this, 'ssa');" value="{$myobj->getFormField('question')}" />
	                            {/if}
            				{/if}
          					{$myobj->getFormFieldElementErrorTip('question')}
					   		<div id="ssa" class="clsZeroColour"><span> {$LANG.header_remainig} :</span> <span class="clsCharacterLimit">{literal}<script language="javascript" type="text/javascript">var c = ques_max_len - document.getElementById('question').value.length;document.write(c);</script>{/literal}</span></div>
          				</td>
        			</tr>
						<tr>
	   					<td class="{$myobj->getCSSFormLabelCellClass('descriptions')}"><label for="descriptions">{$LANG.common_details}</label>{if $CFG.admin.description.mandatory}&nbsp;<span class="clsMandatory">*</span>&nbsp;{/if}
	   						{$myobj->ShowHelpTip('question_descriptions', 'descriptions')}
	   					</td>
	   					<td class="{$myobj->getCSSFormFieldCellClass('descriptions')}">
			   				{if $CFG.admin.question_suggest.allowed && $myobj->getFormField('cid') ==''}
			            		<textarea class="{$myobj->getCSSFormFieldElementClass('descriptions')}" name="descriptions" id="descriptions" cols="22" rows="5" maxlength="{$CFG.admin.description.limit}" tabindex="{smartyTabIndex}" onclick="updatelength(this);"  onKeyUp="updatelength(this);">{$myobj->form_add.askQuestions_arr.descriptions_manual}</textarea>
			          		{else}
			                	<textarea class="{$myobj->getCSSFormFieldElementClass('descriptions')}" name="descriptions" id="descriptions" cols="23" rows="5" maxlength="{$CFG.admin.description.limit}" tabindex="{smartyTabIndex}" onclick="updatelength(this);" onKeyUp="updatelength(this);">{$myobj->form_add.askQuestions_arr.descriptions_manual}</textarea>
					  		{/if}
			             	{$myobj->getFormFieldElementErrorTip('descriptions')}
					   		<div id="ss" class="clsZeroColour"><span> {$LANG.header_remainig} :</span> <span class="clsCharacterLimit">{literal}<script language="javascript" type="text/javascript">var c = ques_des_max_len - document.getElementById('descriptions').value.length;document.write(c);</script>{/literal}</span></div>
			          	</td>
			        </tr>
					</table>

					{if $CFG.admin.attachments_questions.allowed or chkIsVideoAllowed('question') or chkIsAudioAllowed('question') or chkExternalVideoAllowed('question') or chkExternalAudioAllowed('question')}
				   	<table class="clsAskQuestion clsAskQuestionUpload" summary="{$LANG.questions_port_your}">
						<tr>
							<td colspan="3">
								<div class="AskQuestionSubHead">{$LANG.common_attachments}</div>
							</td>
						</tr>
        				<!-- add documents block1 -->
						<tr>
							{if $CFG.admin.attachments_questions.allowed && $CFG.admin.attachments_allowed.count > 0}
					          	<td id="tdID" class="{$myobj->getCSSFormFieldCellClass('attachments')} clsQuestionImage">
									<div class="clsImageUpload clsClearfix">
										<div class="clsImageContainer" id="image_uploads">
											<a href="javascript:void(0);">	<span id="spanButtonPlaceholder"></span> </a>
										</div>
										<div class="clsImageDetails">
											<p>{$myobj->form_add.askQuestions_arr.attachment_allowed_tip_manual}</p>
											<p>{$myobj->form_add.askQuestions_arr.attachment_format_tip_manual} | {$myobj->form_add.askQuestions_arr.attachment_size_tip_manual}</p>
										</div>
									</div>
								</td>
					        {/if}
	   						<!-- ends add attachment block1 -->

			        		{if chkIsVideoAllowed('question') || chkExternalVideoAllowed('question')}
			        		<td class="{$myobj->getCSSFormFieldCellClass('question_video')} clsQuestionVideo">
			        			{if chkIsVideoAllowed('question')}
									<div class="clsVideoUpload clsClearfix" id="video_first" {$myobj->form_add.askQuestions_arr.style_add_video}>
										<div class="clsVideoContainer">
										<a id="video_add" href="{$myobj->form_add.askQuestions_arr.video_upload_url}" onClick="{$myobj->getBrowser('video_add')}"></a>
				        				{$myobj->getFormFieldErrorTip('question_video')}
										</div>
										<div class="clsVideoDetails">
											<a href="{$myobj->form_add.askQuestions_arr.video_upload_url}" onClick="{$myobj->getBrowser('video_add')}">
												<p>{$LANG.common_record_video}</p>
												<p>{$LANG.common_using_webcams}</p>
											</a>
										</div>
									</div>
									<div class="clsAudioUpload clsClearfix" id="video_secnd" {if $myobj->form_add.askQuestions_arr.style_add_video==''} style="display:none;" {/if}>

										<div class="clsAudioDetails clsAudioOptions">
											<div >
												<p class="clsAVDelete"><a {$myobj->form_add.askQuestions_arr.style_delete_video} id="video_delete" href="{$myobj->getCurrentUrl()}" onClick="return confrimRemove('video', 'video_delete', '{$LANG.are_you_sure_to_delete}');">{$LANG.delete_video}</a></p>
												<p class="clsAVPreview"><a {$myobj->form_add.askQuestions_arr.style_preview_video} id="video_preview" href="{$myobj->form_add.askQuestions_arr.video_preview_url}" onClick="{$myobj->getBrowser('video_preview')}">{$LANG.preview_video}</a></p>
											</div>
										</div>
									</div>
								{/if}
								{if chkExternalVideoAllowed('question')}
									<div class="clsExternalUploadBox">
										<div class="clsVideoUpload clsClearfix" id="external_video_add1" {$myobj->form_add.askQuestions_arr.style_add_external_video}>
											<div class="clsExternalVideoContainer">
												<a {$myobj->form_add.askQuestions_arr.style_add_external_video} id="external_video_add" href="{$myobj->form_add.askQuestions_arr.external_video_upload_url}" onClick="{$myobj->getBrowser('external_video_add')}">{$LANG.add_external_video}</a>
					        					{$myobj->getFormFieldErrorTip('audio')}
											</div>

										</div>
										<div class="clsAudioUpload clsClearfix" id="external_video_add2" {if $myobj->form_add.askQuestions_arr.style_add_external_video==''} style="display:none;" {/if}>
											<div class="clsAudioDetails clsAudioOptions">
												<div >
													<p class="clsAVDelete"><a {$myobj->form_add.askQuestions_arr.style_delete_external_video} id="external_video_delete" href="{$myobj->getCurrentUrl()}" onClick="return confrimRemove('external_video', 'external_video_delete','{$LANG.are_you_sure_to_delete}');">{$LANG.delete_external_video}</a></p>
													<p class="clsAVPreview"><a {$myobj->form_add.askQuestions_arr.style_preview_external_video} id="external_video_preview" href="{$myobj->form_add.askQuestions_arr.external_video_preview_url}" onClick="{$myobj->getBrowser('external_video_preview')}">{$LANG.preview_external_video}</a></p>
												</div>
											</div>
										</div>
									</div>
								{/if}
			        		</td>
						    {/if}
			        		{if chkIsAudioAllowed('question') || chkExternalAudioAllowed('question')}
			        		<td class="{$myobj->getCSSFormFieldCellClass('audio')}">
			        			{if chkIsAudioAllowed('question')}
									<div class="clsAudioUpload clsClearfix" id="audio_first" {$myobj->form_add.askQuestions_arr.style_add_audio}>
										<div class="clsAudioContainer">
											<a id="audio_add" href="{$myobj->form_add.askQuestions_arr.audio_upload_url}" onClick="{$myobj->getBrowser('audio_add')}"></a>
				        					{$myobj->getFormFieldErrorTip('audio')}
										</div>
										<div class="clsAudioDetails">
											<div>
												<a href="{$myobj->form_add.askQuestions_arr.audio_upload_url}" onClick="{$myobj->getBrowser('audio_add')}">
													<p>{$LANG.common_record_audio}</p>
													<p>{$LANG.common_using_recorder}</p>
												</a>
											</div>
										</div>
									</div>
									<div class="clsAudioUpload clsClearfix" id="audio_secnd" {if $myobj->form_add.askQuestions_arr.style_add_audio==''} style="display:none;" {/if}>
										<div class="clsAudioDetails clsAudioOptions">
											<div >
												<p class="clsAVDelete"><a {$myobj->form_add.askQuestions_arr.style_delete_audio} id="audio_delete" href="{$myobj->getCurrentUrl()}" onClick="return confrimRemove('audio', 'audio_delete', '{$LANG.are_you_sure_to_delete}');">{$LANG.delete_audio}</a></p>
												<p class="clsAVPreview"><a {$myobj->form_add.askQuestions_arr.style_preview_audio} id="audio_preview" href="{$myobj->form_add.askQuestions_arr.audio_preview_url}"  onClick="{$myobj->getBrowser('audio_preview')}">{$LANG.preview_audio}</a></p>
											</div>
										</div>
									</div>
								{/if}
								{if chkExternalAudioAllowed('question')}
									<div class="clsExternalUploadBox">
										<div class="clsAudioUpload clsClearfix" id="external_audio_add1" {$myobj->form_add.askQuestions_arr.style_add_external_audio}>
											<div class="clsExternalAudioContainer">
												<a id="external_audio_add" href="{$myobj->form_add.askQuestions_arr.external_audio_upload_url}" onClick="{$myobj->getBrowser('external_audio_add')}">{$LANG.add_external_audio}</a>
					        					{$myobj->getFormFieldErrorTip('audio')}
											</div>
										</div>
										<div class="clsAudioUpload clsClearfix" id="external_audio_add2" {if $myobj->form_add.askQuestions_arr.style_add_external_audio==''} style="display:none;" {/if}>
											<div class="clsAudioDetails clsAudioOptions">
												<div >
													<p class="clsAVDelete"><a {$myobj->form_add.askQuestions_arr.style_delete_external_audio} id="external_audio_delete" href="{$myobj->getCurrentUrl()}" onClick="return confrimRemove('external_audio', 'external_audio_delete', '{$LANG.are_you_sure_to_delete}');">{$LANG.delete_external_audio}</a></p>
													<p class="clsAVPreview"><a {$myobj->form_add.askQuestions_arr.style_preview_external_audio} id="external_audio_preview" href="{$myobj->form_add.askQuestions_arr.external_audio_preview_url}"  onClick="{$myobj->form_add.askQuestions_arr.external_audio_onclick}">{$LANG.preview_external_audio}</a></p>
												</div>
											</div>
										</div>
									</div>
								{/if}
							</td>
							{/if}
			        	</tr>
			        	<tr>
				        	{if $CFG.admin.attachments_questions.allowed && $CFG.admin.attachments_allowed.count > 0}
					          	<td id="tdID" class="{$myobj->getCSSFormFieldCellClass('attachments')}" colspan="3">
					          	<div id="thumbnails" class="clsClearfix" {if $myobj->getFormField('qid') && $myobj->answer_attachment_count gt 0} style="display:block;" {else} style="display:none;" {/if}>
									<p class="clsImageArrow"><!----></p>
					          		<p id="brsBtn"></p>
		          					{if $myobj->getFormField('qid')}
		          							{foreach key=gAkey item=gAvalue from=$myobj->form_add.askQuestions_arr.getAttachments_arr}

											<div class="clsAskUploadImg" id="attach_{$gAvalue.record.attachment_id}">
											<span class="clsRemoveImg"><a href="#" id="{$gAvalue.anchor}" onClick="return Confirmation('selDelInfoconfirm', 'msgInfoConfirmform', Array('act','info_id', 'ques_id', 'filename', 'msgInfoConfirmText'), Array('deletemoreattachments','{$gAvalue.record.attachment_id}','{$myobj->getFormField('qid')}', '{$gAvalue.attachment_file_name}', '{$LANG.confirm_remove_info_message}'), Array('value','value','value', 'value','innerHTML'));"></a></span>
												<div class="clsImageAlignDiv">
												<p>
													<a id="{$gAvalue.img_id}" href="{$gAvalue.attachment_path}" onclick="return displayImageGallery('{$gAvalue.img_id}')"><img src="{$gAvalue.attachment.url_thumb}"  alt="{$gAvalue.record.attachment_name}" /></a>
		                    					</p>
											</div>
											<img src="{$gAvalue.image_large_path}" alt="" style="display: none;" />
											</div>

											{/foreach}
		    	  					{/if}
		          					{$myobj->getFormFieldErrorTip('attachments')}
									<div id="content">
										<div id="divFileProgressContainer" class="clsThumbMsgDisplay" style="display:none;"></div>
										<div id="hiddenvals"></div>
										<div id="hiddenoriginalvals"></div>
									</div>
								</div>
								</td>
				        	{/if}
			        	</tr>
			       </table>
			       {/if}

				 <table class="clsAskQuestion" summary="{$LANG.questions_port_your}">
					 <tr>
						<td colspan="3">
							<div class="AskQuestionSubHead">{$LANG.question_more_info}</div>
						</td>
					</tr>
			        <tr id="selCategoryBlock">
			        	<td class="{$myobj->getCSSFormLabelCellClass('category')}"><label for="category">{$LANG.common_category}</label>{if $CFG.admin.category.mandatory}&nbsp;<span class="clsMandatory">*</span>{/if}
			        		{$myobj->ShowHelpTip('question_category', 'category')}
			        	</td>
			        	<td class="{$myobj->getCSSFormFieldCellClass('category')}">
			        		<div id="selGeneralCategory">
			        			<select name="category" id="category" class="{$myobj->getCSSFormFieldElementClass('category')}" tabindex="{smartyTabIndex}" onchange="addNewStatusMessage(this); call_ajax_populate_sub_categories('{$CFG.site.url}{$CFG.admin.index.anova_module}/questions_ajax.php', 'new=1&amp;t={smartyTabIndex}','subCatDiv');">
					        		<option value="" selected>{$LANG.common_select_choose}</option>
					        		{$myobj->generalPopulateArray($myobj->populateCategories_arr, $myobj->getFormField('category'))}
					        		{if $CFG.admin.question.category_create}
					                	<optgroup label="{$LANG.account_profile_status_new_optgroup}">
					               			<option value="add">{$LANG.account_profile_status_custom_add}</option>
					             		</optgroup>
									{/if}
            					</select>{$myobj->getFormFieldElementErrorTip('category', 'select')}
			        		</div>
			        		<input type="hidden" name="new_status_hidden" id="new_status_hidden" />
			        	</td>
			        </tr>
			        <tr>
			        	<td class="{$myobj->getCSSFormLabelCellClass('sub_category')}"><label for="sub_category">{$LANG.questions_select_sub_category}</label>
			        		{$myobj->ShowHelpTip('question_subcategory', 'sub_category')}
			        	</td>
			        	<td id="subCatDiv" class="{$myobj->getCSSFormFieldCellClass('sub_category')}">{$myobj->getFormFieldErrorTip('sub_category')}
			        		<div id="selGeneralCategory">
					        	<select name="sub_category" id="sub_category" tabindex="{smartyTabIndex}" onchange="addNewSubStatusMessage(this);">
		                   			<option value="">{$LANG.common_select_choose}</option>
									{if $myobj->getFormField('category')}
			                    		{$myobj->generalPopulateArray($myobj->populateSubCategories_arr, $myobj->getFormField('sub_category'))}
		                    		{/if}
		                		</select>
		            		</div>
		            		<input type="hidden" name="new_substatus_hidden" id="new_substatus_hidden" />
			        		<input type="hidden" name="option_length" id="option_length" value="{$myobj->populateSubCategoriesCount($myobj->getFormField('category'), $myobj->getFormField('sub_category'))}" />
			        	</td>
			        </tr>
			        <tr>
			        	<td class="{$myobj->getCSSFormLabelCellClass('tags')}"><label for="tags">{$LANG.search_type_tags}</label>
			        		{$myobj->ShowHelpTip('question_tag', 'tags')}
			        	</td>
			        	<td class="{$myobj->getCSSFormFieldCellClass('tags')}">
			        		<input type="text" class="clsTextBox" name="tags" id="tags" maxlength="60" tabindex="{smartyTabIndex}" value="{$myobj->getFormField('tags')}" />
			        		{$myobj->getFormFieldErrorTip('tags')}
			        		<p class="clsZeroColour">{$LANG.questions_subscribe_keywords_info}&nbsp;{$LANG.common_tag_size}&nbsp;{$LANG.questions_subscribe_keywords_invalid}</p>
			        	</td>
			        </tr>
			        {if $CFG.admin.answer_publish_option.allowed and (!$CFG.admin.question_auto_publish.allowed)}
			        	<tr>
			        		<td class="{$myobj->getCSSFormLabelCellClass('publish')}"><label for="publish">{$LANG.question_publish_allanswers}</label>
			        			{$myobj->ShowHelpTip('publish')}
			        		</td>
			        		<td class="{$myobj->getCSSFormFieldCellClass('publish')}">
					        	<input type="radio" name="publish" id="status_yes" value="Yes"{$myobj->isCheckedRadio('publish', 'Yes')}  /><label for="status_yes">{$LANG.common_yes_option}</label>
					        	<input type="radio" name="publish" id="status_no" value="No"{$myobj->isCheckedRadio('publish', 'No')}  /><label for="status_no">{$LANG.common_no_option}</label>
					        	{$myobj->getFormFieldErrorTip('publish')}
					        	<p class="clsZeroColour">{$LANG.common_msg_answer_publish_help}</p>
					        </td>
					    </tr>
			        {/if}
			        <tr>
						<td><!--empty--></td>
			        	<td class="{$myobj->getCSSFormFieldCellClass('submit')}">
					        	{if $myobj->getFormField('qid')}
					        	<div class="clsSubmitLeft">
									<div class="clsSubmitRight">
										<input type="submit" class="clsSubmitButton clsMediumSubmitButton" name="update_question" id="submit" tabindex="{smartyTabIndex}" value="{$LANG.questions_update_button}" />
									</div>
								</div>
		            			<input type="hidden" name="qid" id="qid" value="{$myobj->getFormField('qid')}" />
					        {else}
							<div class="clsSubmitLeft">
									<div class="clsSubmitRight">
					        	<input type="submit" class="clsSubmitButton clsMediumSubmitButton" name="submit" id="submit" tabindex="{smartyTabIndex}" value="{$LANG.ask_a_question}" />
								</div>
								</div>
					        {/if}

							<div class="clsCancelLeft">
								<div class="clsCancelRight">
									<input type="submit" class="clsCancelButton" name="cancel" id="cancel" tabindex="{smartyTabIndex}" value="{$LANG.common_cancel}" />
								</div>
							</div>
					    </td>
					</tr>
					</table>
				</form>
        	    		</div>
              		  </div>
            		</div>
          		  </div>
        		</div>
      		  </div>
    		</div>
  		  </div>
		  </div>
  		  <!--end of rounded corners-->
	{/if}
</div>
{if $myobj->isShowPageBlock('form_add') and $CFG.admin.attachments_questions.allowed}
	{literal}
	<script language="javascript" type="text/javascript">
		function chkLimit()
			{
				var uploaded_images = document.getElementById("thumbnails");
				if(uploaded_images == null)
					var d = 0;
				else
					{
						items_uploaded = uploaded_images.getElementsByTagName("img");
						var d  =  items_uploaded.length/2;
					}
				if(d >= file_upload_limit)
					{
						document.getElementById("image_uploads").style.display = "none";
					}
				else
					{
						document.getElementById("image_uploads").style.display = "";
					}
			}
		chkLimit();
	</script>
	{/literal}
{/if}