function popup(url,width,height)
{
	var popup = window.open(url, '_blank', 'width='+width+',height='+height+',scrollbars=yes,resizable=yes,status=yes');
    	if (!popup.opener) popup.opener = self;
	popup.focus();
}

function confirm_action(url, message)
{
	if (confirm(unescape(message)))
	{
		parent.location=url
	}
}

function get_object(name)
{
	if (document.getElementById)
	{
		return document.getElementById(name);
 	}
 	else if (document.all)
	{
  		return document.all[name];
 	}
 	else if (document.layers)
	{
  		return document.layers[name];
	}
	return false;
}

function check_checkbox(id)
{
	if(check_box = get_object(id))
	{
		check_box.checked = !check_box.checked;
		if (check_box.onclick)
		{
			check_box.onclick();
		}
	}
}
