// set your interval in milliseconds
var reloadInterval = 30000;
// this will run when the document is fully loaded
function init() {
 setTimeout('reload()',reloadInterval);
}
// this reloads the iframe, and triggers the next reload interval
function reload() {
 var iframe = document.getElementById('chName1');
 if (!iframe) return false;
 iframe.src = iframe.src;
 setTimeout('reload()',reloadInterval);
}
// load the init() function when the page is fully loaded
window.onload = init;


//enter refresh time Seconds should range from 0 to 59
var limit="0:10"

 

if (document.images){
var parselimit=limit.split(":")
parselimit=parselimit[0]*60+parselimit[1]*1
}
function beginrefresh(){
if (!document.images)
return
if (parselimit==1)
window.location.reload()
else{
parselimit-=1
curmin=Math.floor(parselimit/60)
cursec=parselimit%60
if (curmin!=0)
curtime=curmin+" minutes and "+cursec+" seconds left until page refresh!"
else
curtime=cursec+" seconds left until page refresh!"
window.status=curtime
setTimeout("beginrefresh()",1000)
}
}

 

window.onload=beginrefresh

