function Step3()
{
   var Html='';

   if(RunAndReturn({'mode':'pre_step3'})===false)
   {
      return;  //stop execution
   }
   SystemQuestion = RunAndReturn({'mode':'make_question_list'});

   if(SystemQuestion.ArrayOperation.length==0)
   {
      alert('Merci de selectionner au moins une question');
      return '';
   }
   
   KeyAsPopup();

   //initparseInt(ialize system parameter
   SystemRound=-1;         //index -1 of array of question
   SystemGameWin=0;        //we start, game not won yet
   //SystemQuestionActive=0; //block answer button
   SystemCurrentQuestion='';
   $('#box-win').hide();   //hide box win if shown (previous win)

  

   
 
   //initialize round and game_win for a new gam
   //$('#system_round').attr('value',-1); //to replace by call to var directly?
   //$('#system_game_win').attr('value',0); //to replace by call to var directly?

   //insert boxes for operation string and timer to header

   AnswerBox = '<div id="box-string-operation">&nbsp;</div><div id="box-timer"><div id="bar-timer"></div></div>';
   AnswerBox += '<br style="clear:both;">';   
   
   
   
   $('#header').html(AnswerBox);
   Run({'mode':'configure_step3'});//resize the timer after it is shown  
   //insert player boxes   
   $('#body').html(AllPlayerFormToHtml());
   //insert button

   if(SystemGameMode=='single')
   {
      LabelMode = MessageDictionnary('Entrainement');
   }else
   {   
      LabelMode = MessageDictionnary('Match');
   }

   FooterMenu({'mode':'play'});

   //block answer button
   //$('#system_active_question').attr('value',0);

}
/*
  * Start game, phase 3:
  *  Initialise single of multi player
  *  and start game
  */
Start game, phase 3:
Initialise single of multi player
and start game
Start game phase 3 : Initialise single of multi player and start game
function Step3()
{
   var Html='';
   if(RunAndReturn({'mode':'pre_step3'})===false)
   {
      return;  
   }
   SystemQuestion = RunAndReturn({'mode':'make_question_list'});
   if(SystemQuestion.ArrayOperation.length==0)
   {
      alert('Merci de selectionner au moins une question');
      return '';
   }
   KeyAsPopup();
   SystemRound=-1;         
   SystemGameWin=0;        
   SystemCurrentQuestion='';
   $('#box-win').hide();   
   AnswerBox = '<div id="box-string-operation">&nbsp;</div><div id="box-timer"><div id="bar-timer"></div></div>';
   AnswerBox += '<br style="clear:both;">';   
   $('#header').html(AnswerBox);
   Run({'mode':'configure_step3'});
   $('#body').html(AllPlayerFormToHtml());
   if(SystemGameMode=='single')
   {
      LabelMode = MessageDictionnary('Entrainement');
   }else
   {   
      LabelMode = MessageDictionnary('Match');
   }
   FooterMenu({'mode':'play'});
}
function Step3 ( ) { var Html = '' ; if ( RunAndReturn ( { 'mode' : 'pre_step3' } ) === false ) { return ; } SystemQuestion = RunAndReturn ( { 'mode' : 'make_question_list' } ) ; if ( SystemQuestion . ArrayOperation . length == 0 ) { alert ( 'Merci de selectionner au moins une question' ) ; return '' ; } KeyAsPopup ( ) ; SystemRound = - 1 ; SystemGameWin = 0 ; SystemCurrentQuestion = '' ; $ ( '#box-win' ) . hide ( ) ; AnswerBox = '<div id="box-string-operation">&nbsp;</div><div id="box-timer"><div id="bar-timer"></div></div>' ; AnswerBox += '<br style="clear:both;">' ; $ ( '#header' ) . html ( AnswerBox ) ; Run ( { 'mode' : 'configure_step3' } ) ; $ ( '#body' ) . html ( AllPlayerFormToHtml ( ) ) ; if ( SystemGameMode == 'single' ) { LabelMode = MessageDictionnary ( 'Entrainement' ) ; } else { LabelMode = MessageDictionnary ( 'Match' ) ; } FooterMenu ( { 'mode' : 'play' } ) ; }
Start game, phase 3:
  Initialise single of multi player
  and start game
Start game phase 3 : Initialise single of multi player and start game
//stop execution //initparseInt(ialize system parameter //index -1 of array of question //we start, game not won yet //SystemQuestionActive=0; //block answer button //hide box win if shown (previous win) //initialize round and game_win for a new gam //$('#system_round').attr('value',-1); //to replace by call to var directly? //$('#system_game_win').attr('value',0); //to replace by call to var directly? //insert boxes for operation string and timer to header //resize the timer after it is shown   //insert player boxes    //insert button //block answer button //$('#system_active_question').attr('value',0);