<html>
<head>
<script language="javascript">
var myWindow;
function christDoes(){
mydWindow=open("myWindow.html", "myWind");
addButton();
deleteButton();
cancelButton()
}
function addButton() {
if(subject.value.length>0){
var i=subject.value.length;
var subjects=new Array(i);
for(var k=0; k<subjects; k++){
myWindow.second.document.write("<b>" +subjects[k].toUpperCase() +"</b><input type='text' name='subjects[k].toLowerCase()' value=''>" +"<br>");
}
}
}

function deleteButton(){
if(subject.value.length>0){
subject.value="";
}
}

function cancelButton(){
if(subject.value.length>0 && url.value.length>0){
subject.value="";
url.value="";
}
}

</script>
</head>
<body><CENTER>
<big><b>SCHOOL LOGO HERE</b><INPUT TYPE="FILE" NAME="url" size=30><p>
<B>ENTER YOUR SUBJECT</B><INPUT TYPE="TEXT" NAME="subject" VALUE="">
<INPUT TYPE="BUTTON" NAME="add" VALUE="ADD" onClick="addButton()">
<INPUT TYPE="BUTTON" NAME="delete" VALUE="DELETE" onClick="deleteButton()"><br>
<INPUT TYPE="BUTTON" NAME="ok" VALUE="OK" onClick="christDoes()">
<INPUT TYPE="BUTTON" NAME="RESET" VALUE="CANCEL" onClick="cancelButton()">
<CENTER>
</body>
</html>
+++++++++++++++++++first window++++++++++++++++++++++++
<html>
<head>
<title>StarMoon Technologies</title>
</head>
<frameset rows="50%, 50%">
<frame name="second" src="secondWindow.html">
<frame name="edit" src="done2.html">
<noframes>
<body>
</body>
</noframes>
</frameset>
</html>
+++++++++++++++++++++++second window+++++++++++++++++++
<html>
<head>
<script language="javascript">
</script>
</head>
<body><center>
<TABLE align=center>
<TR>
<TD><H4><B><I><U><FONT COLOR=MAROON>STUDENT DATA / INFORMATION </U><H4></TD>
<TR>
<TD>NAME <INPUT TYPE="TEXT" NAME="yourname" SIZE=17></TD>
<TD>SURNAME <INPUT TYPE="TEXT" NAME="surname"></TD>
<TR>
<TD>SEX: MALE<INPUT TYPE="radio" NAME="boy" VALUE="" CHECKED></TD>

<TD>FEMALE<INPUT TYPE="radio" NAME="boy" VALUE=""></TD>
<TR>
<TD>AGE <INPUT TYPE="TEXT" NAME="age"></TD>
<TD>PHONE NUMBER <INPUT TYPE="TEXT" NAME="phone" SIZE=12></TD>
<TR>
<TD>CLASS <INPUT TYPE="TEXT" NAME="school" SIZE=17></TD>
<TD>E-MAIL <INPUT TYPE="TEXT" NAME="email"SIZE=23></TD>
<TR>
<TD>ADDRESS <INPUT TYPE="TEXT" NAME="address" SIZE=13></TD>
<TD>TEACHER <INPUT TYPE="TEXT" NAME="teacher"></TD><BR>

<CENTER>
<TABLE>
<TR>
<TD><H4><B><I><FONT COLOR=MAROON><U>SUBJECT AND SCORE </U><H4></TD>
</body>
</html>
++++++++++++++++++++third window+++++++++++++++++++++++++
please this is what i want to do . when i input in the textbox: 'YOUR SUBECT HERE' and click the addButton it adds the string and a textbox on the third window as many time as i input in it