<!-- 
// function.js  these are the JavaScript Functions

// Browser detect script...
// return br which holds the variable of browser type
// check this variable to see what browser you have..

function browserdetect() {
 bName = navigator.appName;
 bVer  = parseInt(navigator.appVersion);
 if (bName == "Netscape" && bVer >= 4) br = "n4";
 else if (bName == "Netscape" && bVer == 3) br = "n3";
 else if (bName == "Netscape" && bVer == 2) br = "n2";
 else if (bName == "Microsoft Internet Explorer" &&
    bVer >= 4) br = "e4";
 else if (bName == "Microsoft Internet Explorer")
     br = "e3";
 else br = "n2";
return br;
}

// if you use the next line it will jump to that page.
// window.location.href="cat5.htm";

// Will display a page in the single frame...
// This is for use of Dynamic HTML IE 4.....
// Also frames work with Navigator 2.0 or higher & IE 3.0 up..
// NOTE Remove comments below to show how to goto another page...
/* if (br == "e4"){
 document.write('<FRAMESET ROWS = "100%,*" FRAMEBORDER=NO BORDER=0');
 document.write('MARGINHEIGHT=5 MARGINWIDHT=5>');
 document.write('<FRAME SRC="about.htm" SCROLLING=AUTO>');
 document.write('</FRAMESET>/');
 document.write('error spot');
} */
// This for every other browser ....
/* else {
 document.write('<FRAMESET ROWS = "100%,*" FRAMEBORDER=NO BORDER=0');
 document.write('MARGINHEIGHT=5 MARGINWIDHT=5>');
 document.write('<FRAME SRC="balun.htm" SCROLLING=AUTO>');
 document.write('</FRAMESET>/');
 document.write('error spot');
} */

// use this to make array so compatible with N2

function makeArray(len) {
  for (var i=0; i < len; i++) this[i] = null;
  this.length=len;
} 

//... displaythedate function...
/* simply include the function call on the html line 
   that you want the date displayed on. 
   used the makeArray function call */

function displaythedate() {
 // Array of day names
var dayNames = new makeArray(7);
 dayNames[0] = "Sunday";
 dayNames[1] = "Monday";
 dayNames[2] = "Tuesday";
 dayNames[3] = "Wednesday";
 dayNames[4] = "Thursday";
 dayNames[5] = "Friday";
 dayNames[6] = "Saturday";

 // Array of month Names
 var monthNames = new makeArray(12);
 monthNames[0] = "January";
 monthNames[1] = "February";
 monthNames[2] = "March";
 monthNames[3] = "April";
 monthNames[4] = "May";
 monthNames[5] = "June";
 monthNames[6] = "July";
 monthNames[7] = "August";
 monthNames[8] = "September";
 monthNames[9] = "October";
 monthNames[10] = "November";
 monthNames[11] = "December";

 var now = new Date();
 var day = now.getDay();
 var month = now.getMonth();
 var year = now.getYear();
 var date = now.getDate();
 // if (year < 2000)    // Y2K Fix
 // year = year + 1900;
 // This writes the line in you html document.
document.write("<center>" + dayNames[day] + ", " + monthNames[month] + " " +  date + ", " + year + "</center>");

// document.write("<center>" + dayNames[day] + ", " + monthNames[month] + " " + date + ", " + year + "</center>");
}

//   -->
