function DescriptionWindow (id) {

	var window_specs = "location=no, scrollbars=yes, menubars=no, toolbars=no, resizable=yes, left=0px, top=0px, width=350 height=380";
	
	var url = "http://www.seedsofchangedenton.org/EventDescriptionWindow.php5?ID=" + id; 
	
	popup_window = window.open(url, "UTACanterburyEvents", window_specs);
	popup_window.focus();

	}
	
	function NeedWindow (id) {

	var window_specs = "location=no, scrollbars=yes, menubars=no, toolbars=no, resizable=yes, left=0px, top=0px, width=350 height=380";
	
	var url = "http://www.seedsofchangedenton.org/NeedDescriptionWindow.php5?ID=" + id; 
	
	popup_window = window.open(url, "UTACanterburyEvents", window_specs);
	popup_window.focus();

	}

	function DescriptionWindow2(myURL) {

	var window_specs = "location=no, scrollbars=yes, menubars=no, toolbars=no, resizable=yes, left=0px, top=0px, width=350 height=380";
	
	var url = "http://www.seedsofchangedenton.org/" + myURL; 
	
	popup_window = window.open(url, "UTACanterburyEvents", window_specs);
	popup_window.focus();

	}

	function checkDelete(gotoThisPage){
	
		var answer = confirm("Are you sure you want to delete this need?  Please only delete this need if it has been met or if you posted this need and no longer have this need.  Do you still want to delete this need?")
		if (answer){
			
			window.location.href = gotoThisPage;
		}
		else{
			
		}

	}

	
	// Copyright 2006-2007 javascript-array.com

var timeout	= 500;
var closetimer	= 0;
var ddmenuitem	= 0;

// open hidden layer
function mopen(id)
{	
	// cancel close timer
	mcancelclosetime();

	// close old layer
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';

	// get new layer and show it
	ddmenuitem = document.getElementById(id);
	ddmenuitem.style.visibility = 'visible';

}
// close showed layer
function mclose()
{
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
}

// go close timer
function mclosetime()
{
	closetimer = window.setTimeout(mclose, timeout);
}

// cancel close timer
function mcancelclosetime()
{
	if(closetimer)
	{
		window.clearTimeout(closetimer);
		closetimer = null;
	}
}

// close layer when click-out
document.onclick = mclose;