/**
	*	Confirm action - Javascript function popup a message box
	* returns true when user clicks ok, false otherwise.
	* @param string [question] the confirmation question you want to ask (default is "Are you sure?"
	* @return bool
	*
	*	@author	Lawrence Walters
	*/
function ELCConfirm(question)
{
	if(question === undefined
		|| question.length == 0)
	{
		return confirm("Are you sure?");
	}
	else
	{
		return confirm(question);
	}
}

/**
	*	ToggleDisplay of an element
	*
	* @param string	id	the id of the element to show or hide
	*/
function ToggleDisplay(id)
{
	var element = document.getElementById(id);
	if(element.style.display == "block")
	{
		element.style.display = "none";
	}
	else
	{
		element.style.display = "block";
	}
}

/**
* open a help popup window
*/
function HelpPopup(url)
{
	newwindow = window.open(url,'elcHelp','height=250,width=250,scrollbars=1,resizable=1');
	if (window.focus) {newwindow.focus()}
}