I am using the following code to auto refresh my website page after a specific time interval. However, users sometimes are in the process of answering a forum discussion or have already entered some answer on the page but because of the refresh that gets lost. How to I avoid this from happening?

I want the page to refresh after the time limit set by me if the visitor has not or is not entering any reply.

```
<script>
<!--

var limit="2:14"

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 -->
     window.status = " Welcome To MySite"
     setTimeout("beginrefresh()",1000)
    }
}

window.onload=beginrefresh
//-->
</script>

```