// JavaScript Document
<!--//--><![CDATA[//><!--
startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
window.onload=startList;

//--><!]]>


function eventWin(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=1,resizable=1,width=500,height=600');");
}

function editWin(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=1,resizable=1,width=500,height=600');");
}


function addLinkWin(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=500,height=200');");
}
function popCal(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=200,height=200');");
}


function addurl()
{
OK=1
  var theurl = window.prompt("Enter the full url (e.g., http://google.com):","http://")
  var linktext = window.prompt("Enter a name for the url (e.g., Google Search Engine):","")
//  var upperurl=theurl.toUpperCase()
  var thetext="HTTP://"
    if(theurl =='')
	{
	OK=0
	alert("You must enter a url");
NOTEXT()
	}
	bigurl=theurl.toUpperCase()
	if (bigurl.indexOf(thetext)==-1)
	{
	OK=0
	alert("You must provide a full url (e.g., http://google.com)")
NOTEXT()
	}
    if(linktext =='')
	{
	OK=0
	alert("You must provide a name for the url")
NOTEXT()
	}
    if (OK==1)
	{
document.form0.desc.value += ("<A HREF=" + theurl + " target=_blank>" + linktext + "</A> ")
	}
}
