﻿var interval=self.setInterval("OnLineUsers()",60000);
var st=0;
function OnLineUsers(){
    //document.getElementById("M_imageCounter").src="Counter/imageCounter.aspx?"+GetCurTime();
    st++;
    if(st>9){interval=window.clearInterval(interval);}
    //document.getElementById('imgS').src="Counter/OnLineimagecounter.aspx?"+GetCurTime();
}
function GetCurTime(){
    var curDateTime = new Date()
    var curHour=curDateTime.getHours()
    var curMin=curDateTime.getMinutes()
    var curSec=curDateTime.getSeconds()
    var curTime=((curHour<10)?"0":"")+curHour+((curMin<10)?"0":"")+curMin+((curSec<10)?"0":"")+curSec;
    return curTime;
}

