function bzdecode(_text)
{
_text = _text.replace(/\%lt;/g, '<');
_text = _text.replace(/\%gt;/g, '>');
_text = _text.replace(/\%qt;/g, '"');
_text = _text.replace(/\%dq;/g, '\'');
_text = _text.replace(/\%am;/g, '&');
return _text;
}
function bzde(_text)
{
_text = _text.replace(/\%lt;/g, '<');
_text = _text.replace(/\%gt;/g, '>');
_text = _text.replace(/\%am;/g, '&');
return _text;
}
function bz_redirect(_url)
{
location.href = bzde(_url);
return false;
}
function bz_openurl(_url)
{
var w = window.open(bzde(_url), '_blank');
w.focus();
return false;
}
function bz_check_redirect(_target)
{
if (_target && _target.bzredirect) return bz_redirect(_target.bzredirect);
}
function bz_hideit(_target)
{
_target.style.display = "none";
return false;
}
function bz_find_xywh(obj) 
{
var curleft = curtop = 0;
var cwidth = obj.scrollWidth;
var cheight = obj.scrollHeight;
if (obj.offsetParent) 
{
	curleft = obj.offsetLeft;
	curtop = obj.offsetTop;
	while (obj = obj.offsetParent) 
	{
		curleft += obj.offsetLeft;
		curtop += obj.offsetTop;
	}
}
return [curleft, curtop, cwidth, cheight];
}
function bz_onkeydown(e)
{
var keycode;
var keychar;
if (window.event)	keycode = e.keyCode;
else if (e.which)	keycode = e.which;
if (keycode == 27) 
{
	if(typeof(bz_clearfocus) != 'undefined') bz_clearfocus();
	if(typeof(bz_xat_hide) != 'undefined') bz_xat_hide();
	if(typeof(bz_clear_alt_hover) != 'undefined') bz_clear_alt_hover();
}
return true;
}