function bulk_check(form_id)
{
	check = $("sel_all").checked ? true : false;
	
	if (form_id == null)
	{
		return false;
	}

	var form = $(form_id);
	var check_ary = form.getInputs('checkbox');

	for (var i = 0; i < check_ary.length; ++i)
	{
		if (check)
		{
			check_ary[i].checked = true;
		}
		else
		{
			check_ary[i].checked = false;
		}
	}
}

function popup(location, ext, name, width, height)
{
	var width = (width == null) ? 440 : width;
	var height = (height == null) ? 540 : height;

	newWindow = window.open(location + '.' + ext, name, 'toolbar=no,location=no,directories=no,scrollbars=yes,status=no,resizable=yes,width='+ width + ',height=' + height);
}