{if !$myobj->is_ajax}
    <div id="selContactUs">
{/if}
	<div class="clsPopHeading">{$LANG.emailanswers_title} - {$myobj->question_manual}</div>
	<a href="#" id="posAlert"></a>

{if $myobj->isShowPageBlock('form_contactus_show')}
	<form name="form_contactus_show" id="form_contactus_show" method="post" action="{$myobj->getCurrentUrl(true)}" autocomplete="off">
		<table summary="{$LANG.emailanswers_title}" class="clsAskQuestion clsBackgroundfff">
			<tr>
				<td colspan="2">{include file='../general/information.tpl'}</td>
			</tr>
			<tr>
				<td class="{$myobj->getCSSFormLabelCellClass('userename')}"><label for="userename">{$LANG.common_your_name}</label><span class="clsMandatory">*</span>
					{$myobj->ShowHelpTip('forward_friend_name', 'userename')}
				</td>
				<td class="{$myobj->getCSSFormFieldCellClass('userename')}"><span class="clsTextLeft"><span class="clsTextMiddle"><span class="clsTextRight"><input {if $CFG.user.user_id > 0} readonly {/if} type="text" class="clsTextBox" name="userename" id="userename" tabindex="{smartyTabIndex}" value="{$myobj->getFormField('userename')}" /></span></span></span>
					{$myobj->getFormFieldErrorTip('userename')}
				</td>
			</tr>
			<tr>
				<td class="{$myobj->getCSSFormLabelCellClass('to_emails')}"><label for="to_emails">{$LANG.common_to_emails}</label><span class="clsMandatory">*</span>
					{$myobj->ShowHelpTip('forward_friend_emails', 'to_emails')}
				</td>
				<td class="{$myobj->getCSSFormFieldCellClass('to_emails')}">
					<p id="selImportedEmails">
					 {foreach key=inc item=value from=$imported_emails} <span id="{$inc|replace:"@":"AT"|replace:".":"DOT"}"> <a href="javascript:void()" onclick="Element.remove('{$inc|replace:"@":"AT"|replace:".":"DOT"}')">Delete</a> {$value}<br/>
						<input type="hidden" name="email_set[]" value="{$inc}" />
						<input type="hidden" name="email_set_names[]" value="{$value}" />
						</span>
					  {/foreach}
				    </p>
					<textarea name="to_emails" id="to_emails" class="{$myobj->getCSSFormFieldElementClass('to_emails')}" tabindex="{smartyTabIndex}" rows="2" cols="45">{$myobj->getFormField('to_emails')}</textarea>
						{$myobj->getFormFieldElementErrorTip('to_emails')}
					<p><a href="javascript:void(0)" onclick="twcOpenEmailApi('?ask=question&value={$myobj->ques_id}');" >{$LANG.common_short_import_contacts}</a></p>
					<p class="clsEmailNote">{$LANG.common_to_emails_msg}</p>
				</td>
			</tr>
			<tr>
				<td class="{$myobj->getCSSFormLabelCellClass('submit')}"><div id="selProcessingRequest"></div></td>
				<td class="{$myobj->getCSSFormFieldCellClass('submit')}">
                    <div class="clsSubmitLeft">
						<div class="clsSubmitRight">
							<input type="button" class="clsSubmitButton" name="submit_contactus" id="submit_contactus" value="{$LANG.common_submit}" tabindex="{smartyTabIndex}" onClick="processingRequest('submit_contactus','reset', 'selProcessingRequest'); ajaxFormSubmit('form_contactus_show', 'selContactUs');" />
						</div>
					</div>
					<div class="clsCancelLeft">
						<div class="clsCancelRight">
							<input type="button" class="clsSubmitButton" name="reset" id="reset"  tabindex="{smartyTabIndex}" value="{$LANG.common_reset}" onclick="document.form_contactus_show.to_emails.value='';" />
						</div>
					</div>
				</td>
			</tr>
		</table>
	</form>
        {literal}
			<script type="text/javascript">
				//needLiveValidation('to_emails',Array('Presence','Emailgroup'));
			</script>
        {/literal}
{/if}
{if !$myobj->is_ajax}
	</div>
{/if}