// JavaScript Document

function selectLink(form) {
var formindex=form.selectMonth.selectedIndex;
window.location=form.selectMonth.options[formindex].value;
}

function selectCat(form) {
var formindex=form.selectCategory.selectedIndex;
window.location=form.selectCategory.options[formindex].value;
}

function colorTheDay(yy, mm, dd, tColor, nColor) {
  with (new Date()) { yr=getFullYear(); mo=getMonth()+1 ; dy=getDate() }
  document.write("<TD WIDTH=14% VALIGN=TOP HEIGHT=64")
  if (yy == yr && mm == mo && dd == dy) {
    if (tColor != "0") {
      document.write(" BGCOLOR=")
      document.write(tColor)
    } 
  } else {
    if (nColor != "0") {
      document.write(" BGCOLOR=");
      document.write(nColor)
    }
  }
  document.write(">")
}

var newWind = null;

function popup(url,x,y)
{
if (parseInt(navigator.appVersion)>=4) {
if (navigator.appName=="Netscape") {x += 16; y += 16}
else {x += 20; y += 30}
var winpar = "width=" + x + ",height=" + y;
var leftPos = Math.floor((screen.width - x)/2) - 6; 
var topPos = Math.floor((screen.height - y)/2) - 15; 
if (leftPos < 0) leftPos = 0;
if (topPos < 0) topPos = 0;
winpar += ",scrollbars=yes,toolbar=no,status=yes,location=no,menubar=no,resizable=yes,left=" + leftPos + ",top=" + topPos
if (newWind && !newWind.closed) {
	newWind.close()
	newWind = window.open(url, "new_window", winpar)
}
else {newWind = window.open(url, "new_window", winpar)}
}
else {window.location = url}
}