I am finding the window this way
var d2 = window.parent.document.all;
and referring to the control this way
For some reason the above returns undefined. The control definitely exists and I have definitely spelt it correctly (I copied and pasted the name). I also can't access any other controls. The control is a text box and is not in a container control of any kind.