<script language="javascript" type="text/javascript">
<!-- //
{include file="$incpath/other/validate_js.tpl"}
{literal}

$(document).ready(function() {
	var validator = $("#editform").validate(
	{ 
		rules: 
		{ 
			Name_1: {required: true,minLength: 5},
			Text_1: {required: true,minLength: 5}
		},
		messages: 
		{
			//Name_1:{remote: jQuery.format("{/literal}{#Validate_usedvalue#}{literal}")}
		},
			
		submitHandler: function() 
		{ 
			document.forms['editform'].submit();
		},
		
		success: function(label) 
		{
			label.html("&nbsp;").addClass("checked");
		}
	});
});

// -->
</script>   
{/literal}

<div class="popbox">
<div class="header">
{if $smarty.request.edit=='1'}
{#Forums_Help_edithelp_i#} {$smarty.request.n|koobispecialchars}
{else}
{#Forums_Help_addhelp_i#}
 {$smarty.request.n|koobispecialchars}
{/if}
</div>
<div id="content_popup">
<form autocomplete="off" method="post" action="" name="editform" id="editform">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
  <tr>
    <td colspan="2" class="headers">{#Forums_Help_q#}</td>
    </tr>
  <tr>
    <td width="170" class="row_left">{$language_long_1}</td>
    <td class="row_right"><input name="Name_1" type="text" class="input" size="30" value="{$res->Name_1|koobispecialchars}"></td>
  </tr>
  <tr>
    <td class="row_left">{$language_long_2}</td>
    <td class="row_right"><input name="Name_2" type="text" class="input" size="30" value="{$res->Name_2|koobispecialchars}"></td>
  </tr>
  <tr>
    <td class="row_left">{$language_long_3}</td>
    <td class="row_right"><input name="Name_3" type="text" class="input" size="30" value="{$res->Name_3|koobispecialchars}"></td>
  </tr>
  <tr>
    <td colspan="2" class="headers">{#Forums_Help_a#}</td>
    </tr>
  <tr>
    <td class="row_left">{$language_long_1}</td>
    <td class="row_right">{$Text_1}</td>
  </tr>
  <tr>
    <td class="row_left">{$language_long_2}</td>
    <td class="row_right">{$Text_2}</td>
  </tr>
  <tr>
    <td class="row_left">{$language_long_3}</td>
    <td class="row_right">{$Text_3}</td>
  </tr>
</table>
<input class="button big" type="submit" id="s" value="{#Global_save#}">
<input class="button big" type="button" onclick="window.close();" value="{#Global_close#}">
<input type="hidden" name="save" value="1" />
</form>
</div>
</div>