1
<style type="text/css">
2
<!--a:active { text-decoration: none}
3
A:link {text-decoration: none; color:#006699;}
4
a:visited { text-decoration: none; color:#cc0000;}
5
a:hover {text-decoration:underline; color:#bb0000;}-->
10
<title>MedSun - Add User</title>
11
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
16
if (document.form1.name.value.length == 0)
18
alert("Please enter the user's login name.");
21
if (document.form1.pass.value.length == 0)
23
alert("Please enter the user's password.");
28
function access_change()
30
if (document.getElementById("access").value != "1")
32
document.getElementById("clinicrow").style.display =
34
document.getElementById("clinic").value = 0;
38
document.getElementById("clinicrow").style.display =
40
document.getElementById("clinic").options[0].selected =
43
alert(document.getElementById("clinicrow").style.display);
46
<body bgcolor="#ffffff" topmargin="5" leftmargin="0">
47
<table width="737" border="0" cellspacing="0" cellpadding="0">
48
<tr><td valign="top" colspan="2">
50
method="POST" action="adduser.asp" id="form1" name="form1" onsubmit="return
52
<div style="background:url('images/cback02655.jpg') repeat-y;width:655;">
53
<table border="0" width="665">
54
<tr><td colspan="2" align="center"><img
55
src="dont_find.jpg" WIDTH="280" HEIGHT="40"></td></tr>
56
<tr><td colspan="2"> </td></tr> <tr><td width=230>User
57
Name</td><td><input type="text" id="name" name="name"></td></tr>
58
<tr><td>Password</td><td><input
59
type="password" id="pass" name="pass"></td></tr>
60
<tr><td>Access </td>
62
<select id="access" name="access" onchange="return access_change();">
63
<!--HARDCODING THIS-->
64
<option value="1">Clinical User</option>
65
<option value="2">CODA Analyst</option>
66
<option value="4">CODA Administrator</option>
71
<tr><td>Name</td><td><input
72
type="text" id="realname" name="realname"></td></tr>
73
<tr><td>E-mail</td><td><input
74
type="text" id="email" name="email"></td></tr> <tr><td>Phone
75
Number</td><td><input type="text" id="phone" name="phone"></td></tr> <tr
76
id="clinicrow"><td width=230>User's Clinic</td>
78
<select id="clinic" name="clinic">
79
<option value=23>EDBABO</option><option value=9>Hello2</option><option
80
value=24>HENRYHOUSE</option><option value=35>Local
81
hospital</option><option value=22>SUNPOWER</option><option value=27>Test
82
Clinic 1</option><option value=29>Test Clinic 2</option><option
83
value=30>Test Clinic 3</option><option value=31>Test Clinic
84
4</option><option value=32>Test Clinic 5</option>
89
<tr><td colspan="2"> </td></tr> <tr><td
90
colspan="2" align="center"><input
91
type="image" src="dont_find.jpg" WIDTH="110" HEIGHT="34" border=0></td></tr>
94
</td></tr><tr><td colspan="2">
95
<img SRC="dont_find.jpg" border="0" WIDTH="665" HEIGHT="14">
100
<script>access_change()</script>