/*
12/20/2005 - moved to an external file - misc.js
5/24/2005 - trap "enter" JS "donated" by LC's PapayaPolls.com 

*/
function confirmD(vMessage) {
	vBool = confirm(vMessage);
	return(vBool);
}
/* used on inv_detail */
function newin1(url) {
	newWindow = window.open(url,"NewWindow","toolbar=no,width=450,height=520,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no" );
}
/* for expand/hide of some text --- for hover over inventory and other(?) 2/23/2006 */
function toggleSub(detail, image){
	if (document.getElementById(detail).style.display == 'block')  {
		// don't close anymore 4/4/2006
		//document.getElementById(detail).style.display = 'none';
		//document.getElementById(image).src = '/img/down.png';
	} else  {
		// show
		document.getElementById(detail).style.display = 'block';
		document.getElementById(image).src = '/img/up.png';
	}
}

/* for expand/hide of some text --- for hover over inventory and other(?) 2/23/2006 */
function toggleHoverShow(detail, image){
	if (document.getElementById(detail).style.display == 'block')  {
		// don't close anymore 4/4/2006
		//document.getElementById(detail).style.display = 'none';
		//document.getElementById(image).src = '/img/down.png';
	} else  {
		// show
		document.getElementById(detail).style.display = 'block';
		document.getElementById(image).src = '/img/up.png';
	}
}
function toggleClick(detail, image){
	if (document.getElementById(detail).style.display == 'block')  {
		// hide 5/2/2006
		document.getElementById(detail).style.display = 'none';
		document.getElementById(image).src = '/img/down.png';
	} else  {
		document.getElementById(detail).style.display = 'block';
		document.getElementById(image).src = '/img/up.png';
	}
}
