<div class="BodyContainer">

	<script language="JavaScript" type="text/javascript">

		var checkLink = 0;

		function ConfirmCancel()
		{
			if(confirm('%%LNG_CancelEditComment%%'))
			{
				document.location.href='index.php?ToDo=viewComments';
			}
			else
			{
				return false;
			}
		}

		function CheckEditCommentForm()
		{
			// Make sure that all of the form variables, etc are valid
			var f = document.frmComment;

			if(f.comment.value.length == 0) {
				alert('%%LNG_NoComment%%');
				f.comment.focus();
				f.comment.select();
				return false;
			}

			// Everything is OK, return true
			return true;
		}
	</script>

	<form action="index.php?ToDo=saveUpdatedComment" onSubmit="return CheckEditCommentForm();" name="frmComment" method="post">
	<input type="hidden" name="commentid" value="%%GLOBAL_CommentId%%">
	<table class="OuterPanel" cellspacing="0" cellpadding="0" border="0">
	  <tr>
		<td class="Heading1" id="tdHeading">%%LNG_EditCommentTitle%%</td>
		</tr>
		<tr>
		<td class="Intro">
			<div>%%LNG_EditCommentIntro%%</div>
			<div><input type="submit" name="SaveButton1" value="%%LNG_Update%%" class="FormButton">&nbsp; <input type="button" name="CancelButton1" value="%%LNG_Cancel%%" class="FormButton" onClick="ConfirmCancel()"></div>
		</td>
	  </tr>
		<tr>
			<td>
			  <table class="Panel">
				<tr>
				  <td class="Heading2" colspan=2>%%LNG_CommentDetails%%</td>
				</tr>
					<tr>
						<td class="FieldLabel">
							&nbsp;&nbsp;&nbsp;%%LNG_CommentFromName%%:
						</td>
						<td>
							<input type="text" name="fromname" class="Field300" value="%%GLOBAL_Name%%">
							<img onMouseOut="HideHelp(this)" onMouseOver="ShowHelp(this, '%%LNG_CommentFromName%%', '%%LNG_CommentFromNameHelp%%')" src="images/help.gif" width="24" height="16" border="0">
						</td>
					</tr>
					<tr>
						<td class="FieldLabel">
							&nbsp;&nbsp;&nbsp;%%LNG_CommentFromEmail%%:
						</td>
						<td>
							<input type="text" name="fromemail" class="Field300" value="%%GLOBAL_Email%%">
							<img onMouseOut="HideHelp(this)" onMouseOver="ShowHelp(this, '%%LNG_CommentFromEmail%%', '%%LNG_CommentFromEmailHelp%%')" src="images/help.gif" width="24" height="16" border="0">
						</td>
					</tr>
					<tr>
						<td class="FieldLabel">
							&nbsp;&nbsp;&nbsp;%%LNG_CommentStatus%%:
						</td>
						<td>
							<select name="status" id="status" class="Field300">
							%%GLOBAL_StatusOptions%%
							</select>
							<img onMouseOut="HideHelp(this)" onMouseOver="ShowHelp(this, '%%LNG_CommentStatus%%', '%%LNG_CommentStatusHelp%%')" src="images/help.gif" width="24" height="16" border="0">
						</td>
					</tr>
					<tr>
						<td class="FieldLabel">
							<span class="Required">*</span>&nbsp;%%LNG_CommentDetails%%:
						</td>
						<td>
							<textarea name="comment" rows="5" class="Field300">%%GLOBAL_Comment%%</textarea>
						</td>
					</tr>
					<tr>
						<td class="Gap" colspan="2">&nbsp;</td>
					</tr>
					<tr class="ClearGap">
						<td class="Gap">&nbsp;</td>
						<td class="Gap">
						<br />
						<div><input type="submit" name="SaveButton1" value="%%LNG_Update%%" class="FormButton">&nbsp; <input type="button" name="CancelButton1" value="%%LNG_Cancel%%" class="FormButton" onClick="ConfirmCancel()"></div>
						</td>
					</tr>
			 </table>
			</td>
		</tr>
	</table>
	</form>

</div>