function popUpWin(url, width, height) {
	if(width == null) {
		width = (screen.width * .9 > 1000) ? 1000 : screen.width * .9
	}
	
	if(height == null) {
		height = screen.height * .8
	}
	
	window.open(url,'', 'width=' + width + ',height=' + height + ',toolbar=no,resizable=yes,top=20,left=20,scrollbars=yes')	
}

function disableEnter() {
	document.body.attachEvent("onkeydown", disableEnterEvent)
}

function disableEnterEvent() {
	if (window.event.keyCode == 13) 
	{
	    event.returnValue=false; 
	    event.cancel = true;
	}
}
	
function writeEmail(displayName, userName) {
	document.write("<a href='#' onclick='sendEmail(\"" + userName + "\");return false;' title='Click here to email " + displayName + "'>" + displayName + "</a>")
}

function writeGenericEmail(displayName, userName, domainName) {
	document.write("<a href='#' onclick='sendGenericEmail(\"" + userName + "\",\"" + domainName + "\");return false;' title='Click here to email " + displayName + "'>" + displayName + "</a>")
}

function sendEmail(userName) {
	window.navigate("mailto:" + userName + "@GoEagleOne.com")
}

function sendGenericEmail(userName,domainName) {
	window.navigate("mailto:" + userName + "@" + domainName)
}

function writeTBallEmail(displayText, userName) {
	document.write("<a href='#' onclick='sendTBallEmail(\"" + userName + "\");return false;'>" + displayText + "</a>")
}

function sendTBallEmail(userName) {
	window.navigate("mailto:" + userName + "@woodring.org")
}


handleHoverMenus = function() 
{ 
	var menuTags = document.getElementsByTagName("MENU")

	for (var i=0; i<menuTags.length; i++) 
	{ 
				menuTags[i].onmouseover=function() {	this.className+=" hoverItem"; } 
				menuTags[i].onmouseout=function() { this.className=this.className.replace(new RegExp(" hoverItem\\b"), ""); } 
	}
} 

//if (window.attachEvent) window.attachEvent("onload", handleHoverMenus);