
function radioFunctionUB()
{
  for ( var i=0; i < document.form.length; i++ )
  {
    var lType = "radio";
    if ( document.form[i].type == lType )
    { 
      //alert( 'document.form.length '+document.form.length+' '+document.form[i].type+' '+document.form[i].name );
      document.form[i+1].value = "N";      
      if ( document.form[i].checked )
      {
        document.form[i+1].value = "Y";
        //alert('checked');
      }
      else
      {
        document.form[i+1].value = "N";
        //alert('not checked');
      }
    }
  }
}




function getSelectRadio( inInputFieldName, inNumElm )
{
  var lFieldName    = inInputFieldName;
  var lFieldNameObj = null;
  lFieldNameObjTrg = document.getElementById(lFieldName);
  for ( var i=0; i < inNumElm; i++ )
  {
    lFieldNameObjSrc = document.getElementById(lFieldName+''+i);
    if ( lFieldNameObjSrc.checked )
    {
      if ( lFieldNameObjTrg ) lFieldNameObjTrg.value = lFieldNameObjSrc.value;
      break;
    }
  }
  //alert( lFieldNameObjTrg.value );
}

