se specifichi il name per l' iframe
self.frames['myticket'].document.frmEdit2.mytext.value

se avessi specificato solo l' id
document.getElementById('id_Iframe').contentWindow .document.frmEdit2.mytext.value

ciao