
// utilities javascript

var message="Sorry, no unauthorized copying!";

function write_date()
{
  var thetime=new Date();
  var thisdow=thetime.getDay();
  var thismonth=thetime.getMonth();
  var ntoday=thetime.getDate();
  var thisyear=thetime.getYear();
  var AorP=" ";
  var monthname= new Array(12);
  
  monthname[0]="January"; 
  monthname[1]="February"; 
  monthname[2]="March"; 
  monthname[3]="April"; 
  monthname[4]="May";
  monthname[5]="June"; 
  monthname[6]="July"; 
  monthname[7]="August"; 
  monthname[8]="September";
  monthname[9]="October"; 
  monthname[10]="November"; 
  monthname[11]="December"; 

  if (thisdow==0) wday="Sunday";
  if (thisdow==1) wday="Monday";
  if (thisdow==2) wday="Tuesday";
  if (thisdow==3) wday="Wednesday";
  if (thisdow==4) wday="Thursday";
  if (thisdow==5) wday="Friday";
  if (thisdow==6) wday="Saturday";

  var thismonthname = monthname[thismonth];
  thismonth += 1;
  
  if (thisyear<=99) thisyear= "19"+thisyear;
  
  if ((thisyear>99) && (thisyear<2000)) thisyear+=1900;

 document.write("<b>"+wday+", "+ thismonthname +" "+ntoday+", "+thisyear+'</b>');
}

if (document.images)
{ 
  var bullet1_off = new Image();
  bullet1_off.src = "images/blank.jpg";
  var bullet2_off = new Image();
  bullet2_off.src = "images/blank.jpg";
  var bullet1_over = new Image();
  bullet1_over.src = "images/newfish-left.jpg";
  var bullet2_over = new Image();
  bullet2_over.src = "images/newfish-right.jpg";
}
function showBullets (n)
{
  var n;
  // alert ('In showBullets');
  if (document.images)
  {
    document["bullet"+n+"a"].src = bullet1_over.src;
    document["bullet"+n+"b"].src = bullet2_over.src;
  }
}
function hideBullets (n)
{
  var n;
  // alert ('In hideBullets');
  if (document.images)
  {
    document["bullet"+n+"a"].src = bullet1_off.src;
    document["bullet"+n+"b"].src = bullet2_off.src;
  }
}
function setMainFrame(page)
{
  // alert('in goHome');
  parent.mainframe.location=page;
}
function topOfPage ()
{
  window.location.href='#top';
}

// end of utilities

