
var now = new Date();

var dayNames = new Array("Sun.","Mon.","Tue.","Wed.","Thur.","Fri.","Sat.");
// var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");


var monNames = new Array("January","February","March","April","May","June","July","August","September","October","November","December");

function prnDate()
{ return(dayNames[now.getDay()] + ", " + monNames[now.getMonth()] + " " + now.getDate() +  ", " + now.getFullYear());

// document.write(dayNames[now.getDay()] + ", " + monNames[now.getMonth()] + " " + now.getDate() +  // ", " + now.getFullYear());
// document.write(now.getHours()+":"+now.getMinutes()+":"+now.getSeconds()+"<br>");
}

function prnGreeting()
{ var tmpHour=now.getHours();
  if (tmpHour < 12) { return("Good Morning!"); }
  else if (tmpHour > 18) { return("Good Evening!"); }
       else return("Good Afternoon!");

//  if (tmpHour < 12) { document.write("Good Morning!<br>"); }
//  else if (tmpHour > 18) { document.write("Good Evening!<br>"); }
//       else document.write("Good Afternoon!<br>");
}

function PopNews(target, scroll)
{
	newwin=window.open(target, "news", "toolbar=no,width=500,height=400,resizable=yes, menubar=no,left=50,top=50,location=no,directories=no,copyhistory=no,scrollbars="+scroll);
	window.newwin.focus();
}

function PopCustomWindow(Target, WindowName, WinWidth, WinHeight, Status, Scroll)
{
	NewCustomWin=window.open(Target, WindowName, "toolbar=no,width="+WinWidth+",height="+WinHeight+",resizable=no,menubar=no,left=50,top=50,location=no,directories=no,copyhistory=no,status="+Status+",scrollbars="+Scroll);
	window.NewCustomWin.focus();
}

function prnLastModified()
{
LastModified = document.lastModified         // get string of last modified date
LastModifiedDate = Date.parse(LastModified)  // convert modified string to date
if(LastModifiedDate == 0) {  document.write("Last modified: Unknown") } 
else { document.write("This page was updated on " + LastModified) }
}

function PopOpen(target, WinName, scroll)
{
	window.open(target,WinName, "toolbar=no,width=550,height=250,resizable=yes, menubar=no,left=50,top=50,scrollbars="+scroll);
}

function PopIntro(target, WinName)
{
	window.open(target,WinName, "toolbar=no,width=550,height=400,resizable=yes, menubar=no,left=50,top=50,scrollbars=no");
}


function popServe(target)
{
	window.open(target,"pop10", "toolbar=no,width=400,height=300,resizable=yes,menubar=no,scrollbars=yes,left=150,top=150");
}

function RightMouseClick(e) 
{
if(navigator.appName == 'Netscape' && (e.which!=1))
{ alert("No right mouse click!"); 
  return false;
}  
if(navigator.appName == 'Microsoft Internet Explorer' && (event.button!=1))
{ alert("No right mouse click!"); 
  return false;
}     

return true;
} 

document.onmousedown=RightMouseClick; 
document.onmouseup=RightMouseClick;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=RightMouseClick; 



//detect browser:
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if (browserName == "Netscape" && browserVer >= 3) browserVer = "1";
else if (browserName == "Microsoft Internet Explorer" && browserVer == 4) browserVer = "1";
else browserVer = "2";

//image swapping function:
function hiLite(imgDocID, imgObjName, comment) {
if (browserVer == 1) {
document.images[imgDocID].src = eval(imgObjName + ".src");
window.status = comment; return true;
}}

