﻿var t;
        function timedCount() {

             //alert(p + " & " + document.location.href)

            if (document.location.href != p && can_move == 1) {
                //alert(p + " & " + document.location.href + " Can move = " + can_move)
                timer_is_on = 1;
                window.location.reload()
            }
            else {
                timer_is_on = 0;
            }
            if (!timer_is_on) {
                t = setTimeout("timedCount()", 2000);
            }
            
        }

        function doTimer() {
            if (!timer_is_on) {
                timer_is_on = 1;
                timedCount();
            }
        }


