function popUp(URL, width, height)
{
	width = typeof(width) != 'undefined' ? width : 610;
	height = typeof(height) != 'undefined' ? height : 610;
	
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=" + width + ",height=" + height + "');");
}

function printable(url)
{
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(url, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width=1000,height=600');");
}

function makeBoxHidden(id)
{
	div = document.getElementById(id);
	div.className = div.className + ' hidden';
}

function makeBoxVisible(id)
{
	div = document.getElementById(id);
	div.className = div.className.replace('hidden', '');
}

function refreshForm(str_form)
{
	obj_form = document.getElementById(str_form)
	if (obj_form)
	{
		if (obj_form.elements['refresh'])
		{
			obj_form.elements['refresh'].value++
		}
		
		obj_form.submit();
	}
}