<div class="portletBody">
	<h3>
		$tlang.getString("newcat.crenewcat3")
	</h3>
	#if ($alertMessage)<div class="alertMessage">Alert: $validator.escapeHtml($alertMessage)</div><div class="clear"></div>#end
	<script type="text/javascript">
			focus_path = [ "newcategory" ];
			if (parent) if (parent.parent) parent.parent.window.scrollTo(0,400);
	</script>
	<p class="instruction">
		$tlang.getString("newcat.comthefor")               
	</p>
	#set ($count=0)
	#foreach ($c in $categories)
		#set ($count=$count +1)
	#end
	<form action="#toolForm($action)" method="post">
		<input type="hidden" name="channelId" value="$channel.getId()" />
		<input type="hidden" name="from" value="normalView" />
		
			#if ($count>0)
				<h4>
					$tlang.getString("newcat.exicat")
				</h4>
					<ul>
							#foreach ($c in $categories)
								<li>$validator.escapeHtml($c)</li>
							#end
					</ul>		
			#end
			<p class="shorttext">
				<span class="reqStar">*</span>
				<label for="newcategory">$tlang.getString("newcat.crenewcat2")</label>
				<input type="text" name="newcategory" id="newcategory" value="$!newcategory" />
				## (gilver) - hidden dummy field to get around IE's incomplete implementation of:
				##	http://www.w3.org/MarkUp/html-spec/html-spec_8.html#SEC8.2
				<input type="text" name="x" id="x" value="" style="visibility:hidden;display:none" />
			</p>	
		<p class="act">
			<input type="submit" accesskey="s" class="active"  name="eventSubmit_doNew_category" value="$tlang.getString("newcat.crecat")" />
			<input type="submit" accesskey="x"  name="eventSubmit_doCancel_new_category" value="$tlang.getString("gen.can")" />
		</p>
	</form>
</div>

