function allow_mouse_click(enabled)
{
	var mouse_down = (enabled ? "return true" : "return false");
	
	if (typeof document.onselectstart != "undefined")
	{
	  document.onselectstart = new Function(mouse_down);
	}
	else
	{
	  document.onmousedown = new Function(mouse_down);
	  document.onmouseup = new Function("return true");
	}
}

allow_mouse_click(false);

