<!--
var Timer = "{--_TIME_VALUE!}";
-function Init()
-{
+function Init() {
var Counter = window.setInterval("StartCounter()", 1000);
}
-function StartCounter()
-{
+function StartCounter() {
+ if (Timer < 1) {
+ return false;
+ }
+
Timer--;
document.confirm.counter.value = Timer;
- if (Timer == 0)
- {
+ if (Timer == 0) {
document.location.href="{!URL!}/mailid_top.php?uid={!_UID_VALUE!}&{!_TYPE_VALUE!}={!_DATA_VALUE!}&mode=confirm&code={--_RAND_VALUE!}";
clearInterval(Counter);
}