Message Format

Use this script to construct messages displayed for end users. The function takes a set of objects, formats them, then inserts the formatted strings into the pattern at the appropriate places.
Read more at: http://javascriptsource.com/miscellaneous/message-format.html.