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

	{literal}
	function checkForm(frm) {
		if (frm.project_name.value == '') {
			alert(nameString);
			frm.project_name.focus();
			return false;
		}
		if (frm.project_desc.value == '') {
			alert(descString);
			frm.project_desc.focus();
			return false;
		}
		return true;
	}
	{/literal}
// -->
</script>
<form action="newdomain.php" method="post" onSubmit="return checkForm(this)">
<input type="hidden" name="id" value="0">
<input type="hidden" name="do" value="domain">
<table border="0">
	<tr>
		<td valign="top" rowspan="2" width="320">
			<table border="0">
				<tr>
					<td>
						<b>{$TITLE.project_properties}</b>
						<hr size="1">
						{if $error}<div class="error">{$error}</div>{/if}
					</td>
				</tr>
				<tr>
        	<td valign="top">
						{$STRING.name} :
						<br>
						<input type="text" size="30" maxlength="30" name="project_name" value="{$project_name|stripslashes}">
					</td>
				</tr>
				<tr>
        	<td valign="top">
						{$STRING.description} :
						<br>
        		<textarea name="project_desc" cols=40 rows=5 wrap=virtual>{$project_desc|stripslashes}</textarea>
					</td>
				</tr>
				<tr>
        	<td valign="top">
						{$STRING.active} :
						<br>
        		<input type="checkbox" name="active" value="1" {if $active}checked{/if}>
					</td>
				</tr>
				<tr>
        	<td valign="top">
						{$STRING.sequence} :
						<br>
			<input type="checkbox" name="sequence" value="1" {if $sequence}checked{/if}>
					</td>
				</tr>
		<tr>
			<td>
							{$STRING.choose_a_parent_project} : 
							<SELECT NAME="list_projects" onChange="">
							<OPTION value='none'>
								&nbsp;
							</OPTION>
							{foreach key=k item=v name=list_projects from=$list_of_project}
								<OPTION value="{$k}">
									{$v}
								</OPTION>
							{/foreach}							
							</SELECT>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<input type='submit' name='submit' value='Submit'>
</form>

