var timer;
var sDate;
function stoptimer()
{
  clearTimeout(timer);
}
function OverColour()
{
return('#FFFF00');
}
function OutColour()
{
return('#e1e1FF');
}
function cursor(interval)
{
  pos=i*8+10
  if (interval=='first')
  {
    i=0
  }
  if (i==0)
  {
    xpos=event.clientX
    ypos=event.clientY
    document.all(txt[i]).style.color="red"
    document.all(txt[i]).style.visibility="visible"
    document.all(txt[i]).style.position="absolute"
    document.all(txt[i]).style.left=xpos+5
    document.all(txt[i]).style.top=ypos+5
  }
  else
  {
    document.all(txt[i]).style.color="red"	
    document.all(txt[i]).style.visibility="visible"
    document.all(txt[i]).style.position="absolute"
    document.all(txt[i]).style.left=xpos+pos
    document.all(txt[i]).style.top=ypos+pos
  }
  if (i==txt.length)
  {
    i=i
  }
  else
  {
    i++
  }
  setTimeout("cursor('next')",10)
}
function blinklink()
{
if (!blink.style.color)
	{
	blink.style.color="yellow"
	}
if (blink.style.color=="yellow")
	{
	blink.style.color="black"
	}
else
	{
	blink.style.color="yellow"
	}
timer=setTimeout("blinklink()",300)
}
function lastModified()
{
  var sDate=new(Date);
  sDate=document.lastModified;
  var sDay=sDate.substr(3,2);
  var sMonth=sDate.substr(0,2);
  var sYear=sDate.substr(6,4);
  var sTime=sDate.substr(11,8);
  var sFormattedDate="";
  var sAppend="th";
  switch(sMonth)
  {
    case "01":
      sMonth="January";
      break;
    case "02":
      sMonth="February";
      break;
    case "03":
      sMonth="March";
      break;
    case "04":
      sMonth="April";
      break;
    case "05":
      sMonth="May";
      break;
    case "06":
      sMonth="June";
      break;
    case "07":
      sMonth="July";
      break;
    case "08":
      sMonth="August";
      break;
    case "09":
      sMonth="September";
      break;
    case "10":
      sMonth="October";
      break;
    case "11":
      sMonth="November";
      break;
    case "12":
      sMonth="December";
      break;
  }
  switch(sDay)
  {
    case '01':
    case '21':
    case '31':
      sAppend="st";
      break;
    case '02':
    case '22':
      sAppend="nd";
      break;
    case '03':
    case '23':
      sAppend="rd";
      break;
    default:
      sAppend="th";
      break;
  }
  if ((sDate.substr(3,1))=='0')
  {
    sDay=sDate.substr(4,1);
  }
  sFormattedDate=sMonth+" "+sDay+sAppend+", "+sYear+" at "+sTime+" hrs.";
  document.write(sFormattedDate)
}
function ShowOrHide()
{
  var iKey=window.event.keyCode;
  if(window.event.altKey)
  {
    if(iKey==48)	// '0'
    {
      if(document.all("counterID").style.visibility=='hidden') 
        document.all("counterID").style.visibility='visible';
      else 
        document.all("counterID").style.visibility='hidden';
    }  
  }
}
