<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Parents Join</title>
<meta http-equiv="Content-Language" content="en">
<link rel=stylesheet href="/includes/css/style.css" type="text/css">
<script language="javascript" type="text/JavaScript" src=/includes/asp/formlib.js></script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function confirmDelete()	{
	if (confirm("Are you sure that you want to permanently delete the selected record?"))
		return true ;
	else
		return false ;
}
//-->
</script>


<script language="Javascript">
<!--
function checkData ()
{
	if(document.forms[0].firstname.value.length < 2)
		{
		alert("Please enter a First Name.");
		document.getElementById("firstname").focus();
		return(false);
		}
	if(document.forms[0].lastname.value.length < 2)
		{
		alert("Please enter a Last Name.");
		document.getElementById("lastname").focus();
		return(false);
		}
	if (document.forms[0].address1.value=="")
		{
		alert("Please enter a  Address.");
		document.getElementById("address1").focus();
		return(false);
		}
	if (document.forms[0].city.value=="")
		{
		alert("Please enter a City.");
		document.getElementById("city").focus();
		return(false);
		}
	if(document.forms[0].state.value=="")
		{
		alert("Please Select Any State.");
		document.getElementById("state").focus();
		return(false);
		}

	if(document.forms[0].zip.value.length< 5)
		{
		alert("Please enter your correct Zip Code.");	
		document.getElementById("zip").focus();
		return(false);
		}
	//if(document.forms[0].zip.value.length==5)
	else
		{
		var value = document.forms[0].zip.value;
		for(var i=0;i < value.length; ++i)
			{
			var new_char = value.charAt(i); //cycle through characters
			if((new_char < "0") || (new_char > "9"))
				{
				alert('Please enter only numbers for the Zip Code.') 
				document.getElementById("zip").focus();
				return(false);
				}
			}
		}

	if (document.forms[0].phone.value.length!=10)
		{
		alert("Please enter a valid phone number with area code first.");
		document.getElementById("phone").focus();
		return(false);
		}
	//if(document.forms[0].phone.value.length==10)
	else
		{
		var value = document.forms[0].phone.value;
		for(var i=0;i < value.length; ++i)
			{
			var new_char = value.charAt(i); //cycle through characters
			if((new_char < "0") || (new_char > "9"))
				{
				alert('Please enter only numbers for the Phone Number.') 
				document.getElementById("phone").focus();
				return(false);
				}
			}
		}

	if (document.forms[0].email.value=="")
		{
		alert("Please enter an Email address.");
		document.getElementById("email").focus();
		return(false);
		}
	if (document.forms[0].email.value.length >0)
		{
		i=document.forms[0].email.value.indexOf("@")
		j=document.forms[0].email.value.indexOf(".",i)
		k=document.forms[0].email.value.indexOf(",")
		kk=document.forms[0].email.value.indexOf(" ")
		jj=document.forms[0].email.value.lastIndexOf(".")+1
		len=document.forms[0].email.value.length

		if ((i>0) && (j>(1+1)) && (k==-1) && (kk==-1) && (len-jj >=2) && (len-jj<=3))
			{
			}
		else
			{
			alert("Please enter an exact email address.\n" + document.forms[0].email.value + " is invalid.")
			document.getElementById("email").focus();
			return(false);
			}
		} 

	if (document.forms[0].terms.checked=="")
		{
		alert("The Agree to Term checkbox must be checked.");
		return(false);
		}
	 
	if (document.forms[0].username.value=="")
		{
		alert("Please enter a username.");
		document.getElementById("username").focus();
		return(false);
		}
	if (document.forms[0].userpassword.value!=document.forms[0].cfmuserpassword.value){
		alert("The Confirm Password field does not match the Login Password field.");
		return(false);
		}
	if (6>document.forms[0].userpassword.value.length){
		alert("Please enter a password with at least 6 letters.");
		document.getElementById("userpassword").focus();
		return(false);
		}
   return(true);
}

//-->
</script>
</head>
<body>
	<table class="main" cellspacing="0">
		<CAPTION></CAPTION>
		<COLGROUP>
			<col width=5 style="background-color:#7097B4" valign="top">
			<col width=152 style="background-color:#E3EBF0" valign="top" class="leftmenutable">
			<col width=900 style="background-color:#FFFFFF" valign="top">
			<col width=auto style="background-color:#FFFFFF" valign="top">
			<col width=5 style="background-color:#7097B4" valign="top">
		</COLGROUP>
		<THEAD>
		<tr>
			<th colspan="5"> 
				<div style="text-align: right">
					<img src="/images/title.gif" width="269" height="80" alt="ACEwise" style="float: left ">
					<img src="/images/logo.gif" width="145" height="80" alt="ASE"></div>
			</th>
		</tr>
		<TBODY>
		<tr>
			<td>&nbsp;</td>
			<td>
				<!-- START LEFT MENU -->
<div id="ddblueblockmenu">
	<div class="menutitle">Main</div>
	<ul>
		<li><a href="/default.asp">Home</a></li>
		<li><a href="/public/aboutus.asp">About Us</a></li>

		<li><a href="/parent/">Parents</a></li>

		<li><a href="/public/contact.asp">Contact Us</a></li>
	</ul>
</div>
				<!-- END LEFT MENU -->
			</td>
			<td>
				<table class="content">
					<COLGROUP>
						<col width="100%" style="text-align: center">
					</COLGROUP>
					<THEAD>
					<tr><th style="height: 20px; ">Create Parent Profile:<br>
						<span style="color:black"><b>(<span style="color:red">*</span>=required field)</b></span>
						<span class="errorMessage"></span>
						</th>
					</tr>
					<TBODY>
					<tr>
						<td>
							<form method=post name="form1" id="form1" action=process_join.asp onSubmit="return checkData();">
							<input type="hidden" name="action" value="add">
							<fieldset>
								<legend>Personal Information</legend>
								<label for="firstname"><span style="color: red">*</span>First Name: </label>
									<input type=text id=firstname name=firstname size=20 maxLength=20 value=""><br>
								<label for="nastname"><span style="color: red">*</span>Last Name: </label>
									<input type=text id=lastname name=lastname size=20 maxLength=20 value=""><br>
								<label for="Address1"><span style="color: red">*</span>Address: </label>
									<input type=text id=address1 name=address1 size=50 maxLength=50 value=""><br>
								<label for="Address2"> </label>
									<input type=text id=address2 name=address2 size=50 maxLength=50 value=""><br>
								<label for="City"><span style="color: red">*</span>City: </label>
									<input type=text id=city name=city size=20 maxLength=20 value=""><br>
								<label for="State"><span style="color: red">*</span>State: </label>
									<select id="state" name="state" size="1">
										<option value="">Choose a State</option>
										<option value="AL">Alabama</option>
										<option value="AK">Alaska</option>
										<option value="AZ">Arizona</option>
										<option value="AR">Arkansas</option>
										<option value="CA" selected>California</option>
										<option value="CO">Colorado</option>
										<option value="CT">Connecticut</option>
										<option value="DE">Delaware</option>
										<option value="DC">District of Columbia</option>
										<option value="FL">Florida</option>
										<option value="GA">Georgia</option>
										<option value="HI">Hawaii</option>
										<option value="ID">Idaho</option>
										<option value="IL">Illinois</option>
										<option value="IN">Indiana</option>
										<option value="IA">Iowa</option>
										<option value="KS">Kansas</option>
										<option value="KY">Kentucky</option>
										<option value="LA">Lousiana</option>
										<option value="ME">Maine</option>
										<option value="MD">Maryland</option>
										<option value="MA">Massachusetts</option>
										<option value="MI">Michigan</option>
										<option value="MN">Minnesota</option>
										<option value="MS">Misissippi</option>
										<option value="MO">Missouri</option>
										<option value="MT">Montana</option>
										<option value="NE">Nebraska</option>
										<option value="NV">Nevada</option>
										<option value="NH">New Hamshire</option>
										<option value="NJ">New Jersey</option>
										<option value="NM">New Mexico</option>
										<option value="NY">New York</option>
										<option value="NC">North Carolina</option>
										<option value="ND">North Dakota</option>
										<option value="OH">Ohio</option>
										<option value="OK">Oklahoma</option>
										<option value="OR">Oregon</option>
										<option value="PA">Pennsylvania</option>
										<option value="RI">Rhode Island</option>
										<option value="SC">South Carolina</option>
										<option value="SD">South Dakota</option>
										<option value="TN">Tennessee</option>
										<option value="TX">Texas</option>
										<option value="UT">Utah</option>
										<option value="VT">Vermont</option>
										<option value="VA">Virginia</option>
										<option value="WA">Washington</option>
										<option value="WV">West Virginia</option>
										<option value="WI">Wisconsin</option>
										<option value="WY">Wyoming</option>
									</select>
									<br>
								<label for="Zip"><span style="color: red">*</span>Zip: </label>
									<input type=text id=zip name=zip size=10 maxLength=10 value=""><br>
								<label for="phone"><span style="color: red">*</span>Home Phone Number: </label>
									<input type=text id=phone name=phone size=10 maxLength=10 value=""><br>
										<span class="SUBTEXT" style="float: left; padding-left: 5px; padding-top: 10px;">(No Dashes or Brackets)</span><br>
								<label for="WorkPhoneNum"><!--<span style="color: red"></span>-->Work Phone Number: </label>
									<input type=text id=workphonenum name=workphonenum size=10 maxLength=10 value=""><br>
										<span class="SUBTEXT" style="float: left; padding-left: 5px; padding-top: 10px;">(No Dashes or Brackets)</span>
								<label for="workext" style="width: 50px">Extn: </label>
									<input type=text id=workext name=workext size=8 maxLength=10 value=""><br>
								<label for="Fax">Fax: </label>
									<input type=text id=fax name=fax size=10 maxLength=10 value=""><br>
										<span class="SUBTEXT" style="float: left; padding-left: 5px; padding-top: 10px;">(No Dashes or Brackets)</span><br>
								<label for="email"><span style="color: red">*</span>Email: </label>
									<input type=text id=email name=email size=20 maxLength=50 value=""><br>

								<label for="txtTerms">Terms &amp; Conditions </label>
								<label for="lnkTerms" id="labelright">Please take a moment to read over our Terms &amp; Conditions.  <a href="javascript:void(0)" onclick="window.open ('../pp_terms.asp','terms','menubar=0,resizable=0,scrollbars=1,width=600,height=400')">Click here</a> to open.</label><br>
								<label for="terms"><span style="color: red">*</span>Agree to Terms? </label>
									<input type="checkbox" id="terms" name="terms" class="boxes"><br>
							</fieldset>
							<fieldset>
								<legend>Login Information</legend>
								<label for="username"><span style="color: red">*</span>Username: </label>
									<input type=text id=username name=username size=20 maxLength=20 value=""><br>
								<label for="userpassword"><span style="color: red">*</span>Password: </label>
									<input type=password id=userpassword name=userpassword size=20 maxLength=20 value=""><br>
								<label for="cfmuserpassword"><span style="color: red">*</span>Confirm Password: </label>
									<input type=password id=cfmuserpassword name=cfmuserpassword size=20 maxLength=20 value=""><br>
								<label for="submit"></label>
									<input id="submit" type="submit" value="Submit"><input type="reset" id="reset" value="Reset">
							</fieldset>
							</form>			
						</td>
					</tr>
				</table>
			</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
		</tr>
		<!-- START FOOTER -->  		<tr><th style="background: #7097B4;"></th>
			<th colspan="3" style="background: #E3EBF0; text-align:center; border-top: 2px white solid; text-align:center; border-bottom: 5px #7097B4 solid">
  			&copy; Copyright Irvine Public Schools Foundation, 2007<br>Powered by the 
			<a href="http://www.unteam.com/">UNTeam</a></th>
  			<th style="background: #7097B4;"></th></tr>
		<!-- END FOOTER -->
	</table>
</body>
</html>
