function optionValue(e) {   // parse value of element's selected option   return parseInt(e.options[e.selectedIndex].value);}function calculate() {   var s = 0;   var pass = 65;   var fail = 0;   var A_ = 91;   var B = 80;   var boost = .05;   with (document.criteria) {      s += (success.checked) ? pass : fail;      s += optionValue(framerate);      var c = optionValue(complexity);      var f = optionValue(filesize);      s += c / f;      s += optionValue(effort);      s += optionValue(novelty);      s += optionValue(awe);      if (s > B) {          var max = 100 - A_;          var amount = Math.min((100 - s), max) / max;          s *= 1 + (boost * amount);      }      score.value = Math.round(s);   }}