-<script language="JavaScript" type="text/javascript">
-<!--
-var currCounter = "$content[reload]";
-var maxCounter = "$content[reload]";
-var counter = document.getElementById("surfbar_counter");
-var countDown = null;
-
-function Init() {
- countDown = window.setInterval("StartCounter()", 1000);
- parent.surfbar_url.location.href = "$content[url]";
-}
-
-function Confirm() {
- parent.surfbar_url.location="{!URL!}/surfbar.php?id=$content[id]&check=$content[check]&salt=$content[salt]";
-}
-
-function ReloadThis() {
- this.location.reload();
-}
-
-function StartCounter() {
- if (currCounter < 1) {
- return false;
- }
-
- currCounter--;
- counter.innerHTML = currCounter;
-
- if (currCounter == 0) {
- clearInterval(countDown);
- Confirm();
- window.setTimeout("ReloadThis()", 500);
- }
-}
-
-counter.innerHTML = $content[reload];
-Init();