

	function confirmRemove(url)
	{
		if (confirm('Are you sure you want to remove this item?'))
		{
			window.location = url;
		}
	}


	function popPage(URL)
	{
		window.open(URL, 'page', 'status=no, resizable=yes, scrollbars=yes, width=425, height=475');
	}


	function validateSearch(form)
	{
		if (form.search.value == '') 
		{
			alert ('Please enter some search keywords first');
			return false;
		}
		else {			
			return true;
		}
	}


	function printThis()
	{
		if (window.print) 
		{
			window.print();
		}
	}

	function toggle(x)
	{
		if (document.getElementById)
		{
			if (document.getElementById('a' + x).style.display == '')
			{
				document.getElementById('a' + x).style.display = 'none';
			}
			else {
				document.getElementById('a' + x).style.display = '';
			}
		}
	}


	function closeAll()
	{
		for (var i = 0; i < 50; i++)
		{
			if (document.getElementById('a' + i))
			{
				document.getElementById('a' + i).style.display = "none";		// close each menu loop
			}
		}
	}
