function go(form) 
{
	location=form.selectmenu.value
}

function bookmark(url, description)
{
	netscape="Click OK and then hit CTRL+D to add a bookmark to this site."

	if (navigator.appName=='Microsoft Internet Explorer')
	{
		window.external.AddFavorite(url, description);
	}
	else if (navigator.appName=='Netscape')
	{
		alert(netscape);
	}
}

function homepage()
{
 	if(document.all)
 	{   
 		document.body.style.behavior='url(#default#homepage)';   
		document.body.setHomePage('http://www.byuwa.org');  
	}  
	else
	{   
		alert("Sorry, your browser doesn't support this feature.");  
	}
}

function mapbar()
{
//Defining Variables
	url = document.mapform.selected.value
	urlindex = document.mapform.selected.selectedIndex
	bigthing = document.mapform.selected.options[urlindex].value
	if (bigthing=="title")
		{
		window.status=navigator.appName + " " + navigator.appVersion;
		}
	else {
		document.location = bigthing;
	}
}



function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function NewWindowb(mypage,myname,w,h,scroll)
{
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,toolbar=1,resizable=1';
	win = window.open(mypage,myname,settings);
	win.creator = self;
}

// Date Display Function
function displayDate()
{
	var this_month = new Array(12);
    this_month[0]  = "January";
    this_month[1]  = "February";
    this_month[2]  = "March";
    this_month[3]  = "April";
    this_month[4]  = "May";
    this_month[5]  = "June";
    this_month[6]  = "July";
    this_month[7]  = "August";
    this_month[8]  = "September";
    this_month[9]  = "October";
    this_month[10] = "November";
    this_month[11] = "December";
    var today = new Date();
    var day   = today.getDate();
    var month = today.getMonth();
    var year  = today.getYear();
    
	if (year < 1900)
	{
         year += 1900;
    }
    return(day+" "+this_month[month]+" " +year);
}
