<%@ Control Language="c#" AutoEventWireup="True" Codebehind="PublishReview.ascx.cs" Inherits="DreamerShop.UserControl.PublishReview" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<%@ Register TagPrefix="uc1" TagName="LanguagesDeal" Src="../LanguagesManage.ascx" %>
<uc1:LanguagesDeal id="myLanguagesDeal" runat="server" Visible="False"></uc1:LanguagesDeal>
<FORM name="pinglunform"  method="post" style="MARGIN: 0px">
	<TABLE cellSpacing="1" cellPadding="2" width="95%" align="center" bgColor="#cccccc" border="0">
		<TR bgColor="#ffffff">
			<TD width="100%">
				<TABLE cellSpacing="1" cellPadding="2" width="100%" align="center" border="0">
					<TR>
						<TD width="10%"><%=myLanguagesDeal.GetMyString("ReViewUserName")%></TD>
						<TD width="90%"><INPUT class="wenbenkuang"  type="text" maxLength="18" name="ReviewName" onkeypress="return CheckInput()">
							<FONT color="#ff6600"><INPUT type="radio" value="1" name="ReviewGrade"><img src="Images/level.gif" /><INPUT type="radio" value="2" name="ReviewGrade"><img src="Images/level.gif" /><img src="Images/level.gif" />
								<INPUT type="radio" value="3" name="ReviewGrade"><img src="Images/level.gif" /><img src="Images/level.gif" /><img src="Images/level.gif" /> <INPUT type="radio" value="4" name="ReviewGrade"><img src="Images/level.gif" /><img src="Images/level.gif" /><img src="Images/level.gif" /><img src="Images/level.gif" />
								<INPUT type="radio" CHECKED value="5" name="ReviewGrade"><img src="Images/level.gif" /><img src="Images/level.gif" /><img src="Images/level.gif" /><img src="Images/level.gif" /><img src="Images/level.gif" /></FONT>
						</TD>
					</TR>
					<TR>
						<TD vAlign="top">Email<%=myLanguagesDeal.GetMyString("TextColonCharacter")%></TD>
						<TD><input class="wenbenkuang"  type="text"  maxLength="30"  name="ReviewEmail"
								onkeypress="return CheckInput()">
						</TD>
					</TR>
					<TR>
						<TD vAlign="top"><%=myLanguagesDeal.GetMyString("ReViewContent")%></TD>
						<TD><TEXTAREA class="wenbenkuang"  maxLength="300" style="BORDER-RIGHT: #ffffff 1px groove"
								name="ReviewContent" rows="3" cols="70" onkeypress="return CheckInput()"></TEXTAREA>
						</TD>
					</TR>
					<TR>
						<TD></TD>
						<TD><INPUT class="go-wenbenkuang" onclick="return check();" type="submit" value='<%=myLanguagesDeal.GetMyString("ReViewButtonSave")%>' name="submit">
							
						</TD>
					</TR>
				</TABLE>
			</TD>
		</TR>
	</TABLE>
</FORM>
<SCRIPT language="javascript">
	<!--
	function CheckInput(){
		if (event.keyCode == 37 || event.keyCode == 39  || event.keyCode == 60  || event.keyCode == 62 )
			event.returnValue = false;
	}
		function checkspace(checkstr) {
			var str = '';
			for(i = 0; i < checkstr.length; i++) {
				str = str + ' ';
			}
			return (str == checkstr);
		}
	function check()
	{
		if(checkspace(document.pinglunform.ReviewName.value)) {
			document.pinglunform.ReviewName.focus();
			alert('<%=myLanguagesDeal.GetMyString("ReViewInputNameAlert")%>');
			return false;
		}
		
		if(checkspace(document.pinglunform.ReviewContent.value)) {
			document.pinglunform.ReviewContent.focus();
			alert('<%=myLanguagesDeal.GetMyString("ReViewInputContentAlert")%>');
			return false;
		}
		
	}
	//-->
</SCRIPT>