1
//JavaScripts to refresh every 30 seconds
2
var sMsg;
3
var limit="0:30"; //min:sec
4
var parselimit=limit.split(":");
5
parselimit=parselimit[0]*60+parselimit[1]*1;
6
7
function beginrefresh()
8
{
9
if (parselimit==1)
10
{
11
window.location.reload();
12
}
13
else
14
{
15
parselimit-=1;
16
curmin=Math.floor(parselimit/60);
17
cursec=parselimit%60;
18
if (curmin!=0)
19
{
20
sMsg="This page will refresh in " +curmin +" minutes and "+cursec +" seconds."
21
}
22
else
23
{
24
sMsg="This page will refresh in " +cursec +" seconds."
25
}
26
window.status=sMsg;
27
setTimeout("beginrefresh()",1000);
28
}
29
}
30
</script>

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

