function vjs_protectPageExit($aText)
{
	$GLOBAL_text = $aText;
	if (vjx_isIE())
	{
		document.attachEvent('onclick',_vjs_protectPEx);
	}
	else
	{
		document.addEventListener('onclick',_vjs_protectPEx,false);
	}
}

function vjs_remove_protectPageExit()
{
	if (vjx_isIE())
	{
		document.detachEvent('onclick',_vjs_protectPEx);
	}
	else
	{
		document.removeEventListener('onclick',_vjs_protectPEx,false);
	}
}

function _vjs_protectPEx()
{
	$vResult = confirm($GLOBAL_text);
	return $vResult;
}


