public void GenerateQuiz()
    {
       TitleEntry = TitleEntry_textbox.getText();
       Quiz newQuiz = new Quiz(TitleEntry);
       newQuiz.navigationEnabled = NavigationEnabled_chkbox.isSelected();
       newQuiz.showPracticeQuestion = ShowPracticeQuestion_chkbox.isSelected();
       String enteredTime = TimeAllottedField_text.getText();
       if (enteredTime.equals(""))
       {
           newQuiz.timeLimit = 0;
       }
       else
       {
           newQuiz.timeLimit = Integer.parseInt(enteredTime);
       }
       newQuiz.randomiseQuestions = true;
       newQuiz.timeOutBehaviour = 1;
       newQuiz.quizDBId = DbAccess.CreateQuiz(newQuiz);
       
       List<Question> allValidatedQuestions = DbAccess.getAllQuestions(true);
       
       for (Question q : allValidatedQuestions)
       {
           DbAccess.ToggleQuizQuestionLink(newQuiz.quizDBId, q.dbId, true);
       }
       
       
       
       
        
     
    }