public static function getJsMessage($title, $message, $type='info') {
	
		$types = array('info', 'warning', 'error');
		if (!in_array($type, $types)) $type = 'info';
	
		$message = '<script>$(document).ready(function(){$.showMessage("'.
				addslashes($title) .'","'.
				addslashes($message) .'","'.
				addslashes($type) .'");});</script>';
	
		return $message;
	
	}