<script language="JavaScript">
	var nameString = '{$STRING.givename}';
	var descString = '{$STRING.givedesc}';

	{literal}
	function checkForm(frm) {
		if (frm.severity_name.value == '') {
			alert(nameString);
			frm.severity_name.focus();
			return false;
		}
		if (frm.severity_desc.value == '') {
			alert(descString);
			frm.severity_desc.focus();
			return false;
		}
		return true;
	}
	{/literal}
</script>
<b>{$page_title}&nbsp;</b>
<hr size="1">
<form action="{$smarty.server.PHP_SELF}" method="post" onSubmit="return checkForm(this)">
<input type="hidden" name="severity_id" value="{$severity_id}">
<input type="hidden" name="use_js" value="{$smarty.request.use_js}">
<table border='0'>
{if $error}
  <tr>
		<td colspan="2" class="error">{$error}</td>
  </tr>
{/if}
<tr>
  <td align="right" valign="top">Name:</td>
  <td><input type="text" size="20" maxlength="40" name="severity_name" value="{$severity_name|stripslashes}"></td>
</tr>
<tr>
  <td align="right" valign="top">Description:</td>
  <td><textarea name="severity_desc" cols=20 rows=5 wrap=virtual>{$severity_desc|stripslashes}</textarea></td>
</tr>
<tr>
  <td align="right" valign="top">Sort Order:</td>
  <td><input type="text" size="3" maxlength="3" name="sort_order" value="{$sort_order}"></td>
</tr>
<tr>
  <td align="right" valign="top">Row Color:</td>
  <td><input type="text" size="11" maxlength="10" name="severity_color" value="{$severity_color}"></td>
</tr>

</table>
<br>
<input type='submit' name='submit' value='Submit'>
</form>
