function showZXError(str)
{
	alert(str);
}

var h_hide = 0;

function do_hide_notice()
{
	h_hide = 0;
	document.getElementById('focus-notice').style.display = 'none';
	document.getElementById('key-catcher').onblur = function(){};
}

function hide_notice()
{
	if (h_hide > 0) clearTimeout(h_hide);
	h_hide = setTimeout(do_hide_notice, 100);
}

function cancel_hide()
{
	if (h_hide > 0)
	{
		clearTimeout(h_hide);
		h_hide = 0;
	}

	setTimeout(function(){ document.getElementById('key-catcher').focus(); }, 1);
	return false;
}

function set_focus()
{
	document.getElementById('key-catcher-up').focus();
	document.getElementById('key-catcher').focus();

	if (document.all && !window.opera)
	{
		document.getElementById('specswf').focus();
	}
	else
	{
		document.getElementById('focus-notice').style.display = '';
		document.getElementById('focus-notice').onmousedown = cancel_hide;
		document.getElementById('focus-notice').onmouseup = cancel_hide;
		document.getElementById('focus-notice').onclick = cancel_hide;
		document.getElementById('key-catcher').onblur = hide_notice;
	}
}
