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;
	
	}
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;
	
	}
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 ; }
Return the HTML code that prints a JS message in page at runtime.

@param	string	Message title.
@param	string	Message text.
@param	string	Type, can be info, error or warning.

@return	string
Return the HTML code that prints a JS message in page at runtime .