function mixoptions(){ 
 for (i=1;i<=maxterms;i++){
   // get the id of the current question 
      question='question'+i 
      thequestion=document.getElementById(question) 
   // generate a random number in the range of options from 2 to number of options
      newspot=Math.ceil(Math.random()*(thequestion.length-1))+1 
   // remove correct option, thequestion[1], 
   // from 2nd place in list of options 
      temp=thequestion.removeChild(thequestion[1]); 
   // insert at randomised location, newspot
      thequestion.insertBefore(temp,thequestion[newspot-1])
      }
}
