puoi anche sostituire la chiamata alla textbox con

opener.document.nomeform.nomecampo.value = id;