I have a page which has radio buttons and the selected value is taken inside a function like
function returnSelect()
{
     window.document.forms[0].choice_processType.value ;
    window.opener.document.forms[0].pevent.value = 'getpNames';
    window.opener.document.forms[0].processName.value='';
    for (var i=0; i < document.forms[0].elements.length; i++)
   {
   if (document.forms[0].elements[i].checked)
      {
      window.opener.document.forms[0].processName.value=document.forms[0].elements[i].value;
      break;
      }
   }
   if(window.opener.document.forms[0].processName.value=='')    {
        window.opener.document.forms[0].pevent.value = '';
   }
    window.opener.document.forms[0].submit();
    closeConn();
}
So here when I use Firebug, window.document.forms[0] does not have either processName or pevent etc. (it is null)
How do I debug this issue?