--- patched/quiz.module	2009-06-09 16:37:41.000000000 -0400
+++ quiz.module	2009-06-09 16:38:44.000000000 -0400
@@ -1187,12 +1187,13 @@
         // empty the quiz questions
         // We're at the end of the quiz, so set a flag saying so.
         $quiz_end = TRUE;
+        drupal_set_message(t('You have run out of time.'));
       }
       else {
         // There is still time left, so let's go ahead and insert the countdown javascript.
         if (function_exists('jquery_countdown_add') && variable_get('quiz_has_timer', 1)) {
           jquery_countdown_add('.countdown', array('until' => $time, 'onExpiry' => 'finished'));
-          drupal_add_js('function finished() { alert("time up!"); window.location = window.location.href; }', 'inline');
+          drupal_add_js('function finished() { window.location = window.location.href; }', 'inline');
           //window.location.reload() method doesn't works here.
         }
       }
