<%@ language="JScript"   %>
<%@ import namespace="jsNetProgQOD" %>
<HTML>
	<script language="JScript" runat="server">


  public function Submit_Click(sender:Object, E:EventArgs) : void
  {
	var reWs=/^\s+$/;	
	if(!reWs.test(newQuote))
		oldQuote.Text=String(newQuote.Text);
	newQuote.Text= new QuoteOfTheDay().getQuote();
	
  }

  public function Page_load(sender:Object, E:EventArgs) : void
  {	
	newQuote.Enabled=false;
  }





	</script>
	<HEAD>
		<meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
		<meta name="vs_targetSchema" content="Internet Explorer 5.0">
		<Title>QoD - ASP.NET - test</Title>
	</HEAD>
	<body style="font-size:12;font-family:arial,verdana,sans-serif;">
		<form action="qod.aspx" method="post" runat="server">
			<TABLE cellSpacing="1" cellPadding="1" width="70%" align="center" border="0">
				<TR>
					<TD>
						Cytat bieżący
					</TD>
					<TD>
						<TABLE cellSpacing="1" cellPadding="10" align="center" border="0">
							<TR>
								<TD align="middle">
									<asp:textbox id="newQuote" runat="server" TextMode="MultiLine" Rows="5" />
								</TD>
							</TR>
							<TR>
								<TD align="middle">
									<input type="submit" id="GetQuote" value="Pobierz cytat" OnServerClick="Submit_Click" runat="server">
								</TD>
							</TR>
						</TABLE>
					</TD>
				</TR>
				<TR>
					<TD>
						Cytat poprzedni
					</TD>
					<TD align="middle">
						<asp:textbox id="oldQuote" runat="server" TextMode="MultiLine" Rows="5" />
					</TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>
