new button()

var b = new button(text,function,<x>,<y>,<refDiv>)
creates a button with text and function, x-y position (optional), and a DHTML element to which x and y are relative (optional)

text can be: The function can be: Like all MapClient objects, a button's internal layout properties can be accessed by its "div" property. For a button called b, the text is "b.div.innerHTML", its color "b.div.style.color", etc

Buttons are mostly created to be included in a menu, but they can be created on their own too. Only then do the three last parameters make sense. They give its position in pixels or percent values, relative to the document, or to a specified DHTML element. In 11 buttons are created to show the different possibilities