I would change the passText function to:
Code:
function passText(Name, Value)
{
top.frames['right'].document.yourform[Name].value = Value;
}
then change your button to:
Code:
<INPUT onclick="parent.passAll(this.form);" type=button value=Add!>
and finally add the passAll function to the page with passText function:
Code:
function passAll(Form)
{
passText("email", Form.user.value);
passText("teacher", Form.user1.value);
passText("user", Form.user2.value);
}
Note I renamed the textbox called 'name' to 'teacher'. This is because the expression 'yourform.name' is ambiguous, does it mean the name of the form or the element called 'name'? This can cause problems.
--
Joe