Formats a phone number to a specified style. JavaScript function for HTML pages or XMPie uStore dynamic documents.