function PopupWindow(aUrl, w, h, sb, rs, tb, dir, st, mnu)
{
	if (!sb) sb = "yes"; if (!rs) rs = "yes"; if (!tb) tb = "no"; if (!dir) dir = "no"; if (!st) st = "no"; if (!mnu) mnu = "no";
	popupWin=window.open(aUrl,"PopupWin","scrollbars="+sb+",resizable="+rs+",toolbar="+tb+",directories="+dir+",status="+st+",menubar="+mnu+",width="+w+",height="+h+",resizable=yes");
	popupWin.self.focus();
}

function Roll(img_name, img_src)
{
   document.getElementById(img_name).src = img_src;
}


function HideControl()
{
	var ctrl;
	
	for (i=0; i<arguments.length; i++)
	{
		ctrl = document.getElementById(arguments[i]);
		if (ctrl.style.display != "none")
		{
			ctrl.style.display = "none";
		}
	}
}
function ShowControl()
{
	var ctrl;
	
	for (i=0; i<arguments.length; i++)
	{
		ctrl = document.getElementById(arguments[i]);
		
		if (ctrl.style.display == "none")
		{
			ctrl.style.display = "";
		}
	}
}