function menuOver(e){
  e.style.backgroundColor='#EFF6FA';
}

function menuOut(e){
  e.style.backgroundColor='#B6D6EB';
}

function openWindow(url,winname,width,height,left,top,scrollbars,resizable){
  if(winname=='')
    winname='newpopup';

  var opt = ''
  opt = opt + 'width=' + width
  opt = opt + ',height=' + height
  opt = opt + ',toolbar=0'
  opt = opt + ',resizable=' + resizable
  opt = opt + ',scrollbars=' + scrollbars
  opt = opt + ',left=' + left
  opt = opt + ',top=' + top

  var oWin = window.open(url,winname,opt);
  oWin.focus();
  return;
}

function surveyChangeNA(isNA, questionId) {
  if (isNA){
    var a = document.getElementsByName(questionId + '-a-surveyTestSubmissionQuestionAnswer');
    var b = document.getElementsByName(questionId + '-b-surveyTestSubmissionQuestionAnswer');
    
    if (a) {
      for (var i=0; i<a.length; i++) {         
         if (a[i].checked) {
            a[i].checked = '';
            break;
         }
      }
    }
    else if (a.checked) {
      a.checked = ''; 
    }

    if (b) {
      for (var i=0; i<b.length; i++) {
         if (b[i].checked) {
            b[i].checked = '';
            break;
         }
      }
    }
    else if (b.checked) {
      b.checked = ''; 
    }

  }
  else {
    document.getElementById(questionId + '-surveyTestSubmissionQuestionAnswer').checked = '';
  }
}