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