function section_swap(divName)
{
	if (document.getElementById(divName).style.display != 'block')
	{
		if (openItem)
			document.getElementById(openItem).style.display = 'none';
		document.getElementById(divName).style.display = 'block';
		openItem = divName;
	}
	else
	{
		document.getElementById(divName).style.display = 'none';
		openItem = false;
	}
}
var openItem = false;

function newWindow(mypage, myname, w, h, scroll ) 
{
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no,status=no,location=no,menubar=no';
	win = window.open(mypage, myname, winprops);
	if (parseInt(navigator.appVersion) >= 4) 
	{ 
		win.window.focus(); 
	}
}

function submitFormWithAction( formName, action )
{
	document.getElementById( formName ).action += "?action=" + action;
	document.getElementById( formName ).submit();
}