function clearForms()
{
 var i;
 for (i = 0; (i < document.forms.length); i++) {
   document.forms[i].reset();
 }
}

function ShowMenu(num, menu, max)
{
     //starting at one, loop through until the number chosen by the user
     for(i = 1; i <= num; i++){
             //add number onto end of menu
             var menu2 = menu + i;
             //change visibility to block, or 'visible'
             document.getElementById(menu2).style.display = 'block';
     }
     //make a number one more than the number inputed
     var num2 = num;
     num2++;
     //hide it if the viewer selects a number lower
     //this will hide every number between the selected number and the maximum
     //ex.  if 3 is selected, hide the <div> cells for 4, 5, and 6
     //loop until max is reached
     while(num2 <= max){
             var menu3 = menu + num2;
             //hide 
             document.getElementById(menu3).style.display = 'none';
             //add one to loop
             num2=num2+1;
     }
}
