function hover () {
    if (!document.getElementById("question")) return false;
    if (!document.getElementById) return false;
    var items = document.getElementById("answer");
    var li = items.getElementsByTagName("li");
    var input = items.getElementsByTagName("input");
    for (var i=0 ; i<li.length -1 ; i++) {  
            li[i].onmouseover = function () {
                  this.style.backgroundColor = "#ECF1F4";
                  this.style.cursor = "pointer";
             }
            li[i].onmouseout = function () {
                  this.style.backgroundColor = "transparent";
            }
      }
    if (!li[0]) return false; {
            li[0].onclick=function() {
            input[0].checked=true;
          }
    }
    if (!li[1]) return false; {
            li[1].onclick=function() {
            input[1].checked=true;
          }
    }
    if (!li[2]) return false; {
            li[2].onclick=function() {
            input[2].checked=true;
          }
    }
    if (!li[3]) return false; {
            li[3].onclick=function() {
            input[3].checked=true;
          }
    }
    if (!li[4]) return false; {
            li[4].onclick=function() {
            input[4].checked=true;
          }
    }
    if (!li[5]) return false; {
            li[5].onclick=function() {
            input[5].checked=true;
          }
    }
    if (!li[6]) return false; {
            li[6].onclick=function() {
            input[6].checked=true;
          }
    }
    if (!li[7]) return false; {
            li[7].onclick=function() {
            input[7].checked=true;
          }
    }
    if (!li[8]) return false; {
            li[8].onclick=function() {
            input[8].checked=true;
          }
    }
    if (!li[9]) return false; {
            li[9].onclick=function() {
            input[9].checked=true;
          }
    }
  }
addLoadEvent(hover);