Hello. First I`m sorry for my English.

I looked everywhere but not find an answer. I want to do "loop-timer" - when the timer finishes called another timer.

e.g.:
first round - 5min.
pause between rounds - 1min.
Second round - again 5 minutes, etc.
For example in
HTML Code:
<div id="countbox1"></div>
first show first timer and then show the second timer.
I do not understand much JavaScript. So if you can help me. I have the following code:


Code:
<?php
    $delay = time() + 5; //for test
    $Y = date('Y', $delay);
    $m = "0" . (date('m', $delay) - 1) . "";
    $d = date('d', $delay);
    $H = date('H', $delay);
    $i = date('i', $delay);
    $s = date('s', $delay);
    $time = $Y . ',' . $m . ',' . $d . ',' . $H . ',' . $i . ',' . $s;
    ?>
    <script >
      dateFuture1 = new Date(<?php echo $time; ?>);
      function GetCount(ddate, iid) {
        dateNow = new Date();
        amount = ddate.getTime() - dateNow.getTime();
        delete dateNow;
        if (amount <= 0) {

          //timer is finish

        }

        else {
          days = 0;
          hours = 0;
          mins = 0;
          secs = 0;
          out = "";

          amount = Math.floor(amount / 1000);

          days = Math.floor(amount / 86400);
          amount = amount % 86400;

          hours = Math.floor(amount / 3600);
          amount = amount % 3600;

          mins = Math.floor(amount / 60);
          amount = amount % 60;

          secs = Math.floor(amount);

          if (days != 0) {
            out += days + " " + ((days == 1) ? "day" : "days") + ", ";
          }
          if (hours != 0) {
            out += hours + " " + ((hours == 1) ? "hour" : "hours") + ", ";
          }
          if (mins <= 9) {
            out += "0" + mins + " " + ((mins == 1) ? "" : "") + " : ";
          }
          if (mins > 9) {
            out += mins + " " + ((mins == 1) ? "" : "") + " : ";
          }
          if (secs <= 9) {
            out += "0" + secs + " " + ((secs == 1) ? "" : "") + ", ";
          }
          if (secs > 9) {
            out += secs + " " + ((secs == 1) ? "" : "") + ", ";
          }
          out = out.substr(0, out.length - 2);
          document.getElementById(iid).innerHTML = out;
          setTimeout(function() {
            GetCount(ddate, iid)
          }, 1000);
        }
      }
      window.onload = function() {
        GetCount(dateFuture1, "countbox1");
      };
    </script>

    <div id="countbox1"></div>
Someone give me an example?