if($inlineedit==EDIT_POPUP && isset($_SESSION[$strTableName."_count_captcha"]) || $_SESSION[$strTableName."_count_captcha"]>0 || $_SESSION[$strTableName."_count_captcha"]<5)
			$returnJSON['hideCaptcha'] = true;
			
		if($globalEvents->exists("IsRecordEditable", $strTableName))
		{
			if(!$globalEvents->IsRecordEditable($showRawValues, true, $strTableName))
				$returnJSON['nonEditable'] = true;
		}
		
		if($inlineedit == EDIT_POPUP)
		{
			$xt->assign("header", false);
			$xt->assign("footer", false);
			$xt->assign("body", $pageObject->body);
			
			$xt->hideAllBricksExcept( array("editheader") );
			$xt->prepare_template($pageObject->templatefile);
			
			$returnJSON['html'] = $xt->fetch_loaded("body");
			$returnJSON['message'] = $message;
		}
	}
	else
	{
		$returnJSON['success'] = false;
		$returnJSON['message'] = $message;
		
		if($pageObject->lockingObj)
			$returnJSON['lockMessage'] = $system_message;
		
		if($inlineedit == EDIT_POPUP && !$pageObject->isCaptchaOk)