<!-- saved from url=(0022)http://internet.e-mail -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" >
<html lang="en-au">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<style type="text/css" media="screen">
@import url(../styles/ips2.css);
</style>
<style type="text/css" media="screen">
@import url(../styles/unit2.css);
</style>
<link href="../styles/ips2_print.css" media="print" type="text/css" rel="stylesheet" />
<title>Login form</title>
<script type="text/javascript" language="javascript">
function validate()
{
var allTextboxesAreNotEmpty = true;
var textboxes = document.forms["form1"].getElementsByTagName("input");
for(var i=0;i<textboxes.length;i++) {
if(textboxes[i].value.length == 0) {
allTextboxesAreNotEmpty = false;
break;
}
}
var emailIsValid = checkEmail( document.getElementById("email").value );
var isAdult = adulthood( document.getElementById("age").value );
var stateIsSelected = (document.getElementById("state").selectedIndex > 0)
return allTextboxesAreNotEmpty && emailIsValid && isAdult && stateIsSelected;
}
function checkEmail(email)
{
return /^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/.test(email);
}
function adulthood(age)
{
return parseInt(age) >= 18;
}
</script>
</head>
<body>
<noscript>This page is better viewed with JavaScript enabled</noscript>
<a name="a" id="a" class="tocMarker"></a>
<div class="lyrTop" id="lyrTop">
<span class="topNav">
| <a href="#" class="topNav" onClick="printPage();" onKeyPress="return handleEnter(ACTION_PRINT,event);">Print</a>
| <a href="#" class="topNav" onClick="window.close(); return false;" onKeyPress="return handleEnter(ACTION_CLOSE,event);">Close</a> |
</span>
<noscript><span>[Javascript disabled - To close this window, press Ctrl + W (PC), or APPLE + W (Mac)]</span></noscript>
</div>
<form name="form1" action="#" method="get" onSubmit="return validate();">
<div style=" margin-left:100;background-color:#F9FAE7;width:300">
<table>
<tr><td colspan="2"><h1>Flex-IT Registration</h1></td></tr>
<tr><td></td></tr>
<tr><td > First name:</td><td><input type="text" id="firstname" name="firstname" /></td></tr>
<tr><td>Last name: </td><td><input type="text" id="lastname" name="lastname" /></td></tr>
<tr><td>Email: </td><td><input id="email" name="email" size="35" /></td></tr>
<tr><td>Age: </td><td><input id="age" name="age" size="3" maxlength="2"/></td></tr>
<tr><td>State</td><td><select id="state" name="state">
<option value="" selected="selected">Choose a state...</option>
<option value="NSW">NSW</option>
<option value="QLD">QLD</option>
<option value="VIC">VIC</option>
<option value="SA">SA</option>
<option value="WA">WA</option>
<option value="TAS">TAS</option>
<option value="NT">NT</option>
</select></td></tr>
</table>
<tr><td><input type="button" value="Submit" onClick="validate()"/></td></tr>
</div>
</form>
</body>
</html>
|