var timer = 60, timer_id;

function Refresh_Timer()
{ 
   timer = 60;
}	
function CountdownTime()
{ 
   if (timer == 0)
   {
      //window.location='about:blank';
      reloadPage();
      Refresh_Timer();
   }
   else
      timer--;
}
function reloadPage()
{
   window.location.reload();
}	
function lineX()
{
   var ranLineX = Math.floor(Math.random()*120);
   return ranLineX;
}

function lineY()
{    	
   var ranLineY = Math.floor(Math.random()*60);
   return ranLineY;
}

function randomColor() 
{
   var r = ('0' + Math.floor(Math.random() * 256).toString(16)).substr(-2), // red
       g = ('0' + Math.floor(Math.random() * 256).toString(16)).substr(-2), // green
       b = ('0' + Math.floor(Math.random() * 256).toString(16)).substr(-2); // blue
       return '#' + r + g + b;
}
	
function randomTextColor() 
{
   var result="";
   var ColorCode = new Array('#D10000','#800000',
                             '#A86E00','#805300',
                             '#FF3B3B','#FF0000',
                             '#00A800','#008000',
                             '#404040','#FF00FF',
                             '#0000D1','#000080',
                             '#7900D1','#4A0080',
                             '#A800A8','#800080',
                             '#303030','#000000');
   var index = Math.floor(Math.random() * 18);
   result = ColorCode[index];
   return result;
}
