//javascript


function submitForm(n)
{ 
  document.form1.SELECTED.value=n
  document.form1.submit();
}



function checkForm()
{ 
  if (document.feedback.comments.value=="") {return false}
  return true     
}



function preload(turn)  //pre-load pictures depending what turn it is
{
  if (turn<=10) {
    var preload=new Image()
    var riceImg="images/rice"+(turn*10)+".gif"
	preload.src=riceImg
  }

  if (turn==1) {
    var preload1=new Image()
    preload1.src="images/contentSecBcgr.gif"
    var preload2=new Image()
    preload2.src="images/bowl.jpg"
  }

  if (turn==11) {
    var preload3=new Image()
    preload3.src="images/iconsHundred.gif"
    var preload4=new Image()
    preload4.src="images/iconsThousand.gif"
  }

}

   var temp="";
   var temp2=""
   var clicktemp="";
   function showmenu(film){
     if(temp!=""){
       var style2= document.getElementById(temp).style;
       style2.display="";
     }
     var whichLayer=film;
     var style2 = document.getElementById(whichLayer).style;
     style2.display="block";
     temp=whichLayer;
   }
 
   function showmenu2(film){
     if(temp2!=""){
       var style2= document.getElementById(temp2).style;
       style2.display="";
     }
     var whichLayer=film;
     var style2 = document.getElementById(whichLayer).style;
     style2.display="block";
     if (whichLayer!=clicktemp) {
       temp2=whichLayer;
     }
   }
 
   function block(film){
     if (film!=""){
      var whichLayer=film;
       var style3 = document.getElementById(whichLayer).style;
       style3.display="";
     }
   }
 
   function muisuit(film){
   if ((clicktemp!=film) && (film!="")){
   var whichLayer=film;
     var style3 = document.getElementById(whichLayer).style;
     style3.display="";
     }
   }
	

