Ok, I have two functions, both add (or are suppossed to add) form fields when called.

The second function does not seem to work. any ideas???

function add_course(){

var Course=document.createElement('input');
Course.type='text';
Course.name='Course';

var newOption0=document.createElement('option');
newOption0.value='Course 1';
newOption0.innerHTML='Course 1';
var newOption1=document.createElement('option');
newOption1.value='Course 2';
newOption1.innerHTML='Course 2';
var newOption2=document.createElement('option');
newOption2.value='Course 3';
newOption2.innerHTML='Course 3';
var newSelect=document.createElement('select');

newSelect.name='myselect';
newSelect.appendChild(newOption0);
newSelect.appendChild(newOption1);
newSelect.appendChild(newOption2);

document.forms.Registration.appendChild(Course);
document.forms.Registration.appendChild(newSelect);
}

function add_students(){

var Student=document.createElement('input');
Student.type='text';
Student.name='Student';
document.forms.Registration.appendChild(Student);
}