<%--
   asp code Generated by Basic Processor
   Original Page Name: C:\gmTestBed\FMStocks\src\FMSWeb\ASP\_NewAccount.asp
--%>

<%@ Page language="C#" explicit="true" CodeBehind="_NewAccount.aspx.cs" Inherits="FMSWeb.__NewAccount" %>

<%
   HttpContext.Current.Response.Buffer = true;
%>

<html>
<head>
<% _t_head1.Author_Markup(); %>

	<title>New Account</title>

<%
   _t_head1.g_bUseMenu = false;
   // Set default prompt for users coming to the page for the first time.
   MainPrompt = FMSWeb._strings.NEWACCOUNT_DEFAULT_PROMPT;
   ProcessPage();
%>
	<script language="JAVASCRIPT">
	<!--
	// Check the form for any empty fields before submitting it
	function OnCreateAccountClicked()
	{
		// If all the field values are filled in, post the form back to the page for processing
		var f = document.frmAccount;
		if (f.Email.value == "" || f.LastName.value == "" || f.FirstName.value == "" || f.Password.value == "")
			alert("Please fill out entire form.");
		else
		{
			f.CreateAccount.value = "Yes";
			f.submit();
		}
	}
	//-->
	</script>
</head>
<body>
<% _t_begin1.Author_Markup(); %>

	<%=MainPrompt%>
	<form name="frmAccount" method="post">
	<input type="hidden" name="CreateAccount" id="CreateAccount" value="1">
	<table cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td>First name
		<td><input id="FirstName" name="FirstName" maxlength="30" size="30" value="<%=FirstName%>">
	<tr>
		<td>Last name
		<td><input id="LastName" name="LastName" maxlength="30" size="30" value="<%=LastName%>">
	<tr>
		<td>Password
		<td><input id="Password" name="Password" type="password" maxlength="30" size="30" value="<%=Password%>">
	<tr>
		<td>Email
		<td><input id="Email" name="Email" maxlength="50" size="40" value="<%=Email%>">
        <tr>
          <td>
          <td><br>
            <table border="0" cellpadding="0" cellspacing="0">
 				<tr>
					<td>
					<td><br>
						<input onclick="OnCreateAccountClicked()" type="button" value="Create Account" id="button1" name="button1">
						&nbsp;&nbsp
						<input onclick="frmAccount.reset()" type="button" value="Cancel" id="button1" name="button1">
				</tr>
			</table></td></tr></table>
	</form>
	<a href="default.aspx">Back to login page</a>
<% _t_end1.Author_Markup(); %>

</body>
</html>
