
var view=0;
var start=0;
var end=30;

function refreshview(){

if (view==0){
bylatest('himan',0,30)
}

if (view==1){
byclicks('himan')
}

if (view==2){
bygrouped('himan')
}

}

function startcounter(){
secs = 300;
checktime();
}

function checktime()
{
    if (secs==0)
    {
     if (view==0){
		bylatest('himan',0,30)
		startcounter()
	}

	if (view==1){
		byclicks('himan')
		startcounter()
	}

	if (view==2){
		bygrouped('himan')
		startcounter()
	}  
	   
    }
    else
    {
        self.status = secs
        secs = secs - 1
        timerRunning = true
        timerID = self.setTimeout("checktime()", 1000)
    }
}

function next(){
start++;	
end++;
if (end > 60){
	end=60;
	start--;}
if (start < 0){
	start=0;
	end--;}	
bylatest('himan',start,end)
}

function previous(){
start--;	
end--;
if (end > 60){
	end=60;
	start++;}
if (start<0){
	start=0;
	end++;}	
bylatest('himan',start,end)
}

function clipboard(){
  if( -1 != navigator.userAgent.
      indexOf ("MSIE") )
  {
var x = document.getElementById('linktext').value
window.clipboardData.setData('Text',x)
  }else{
  
  document.getElementById('linktext').focus();
  document.getElementById('linktext').select()

} }

	