def getButton(buttonid,onclick,label):
    """Generates HTML for a button that will call a javascript method with
       the id as its argument.   The button class will be *livedisplay*
       (see admit.css) so it only is visible in pages viewed with http.  

       Parameters
       ----------
       buttonid: str 
           String for the button *id* tag
       onclick: str 
           Name of the javascript method to be called via the *onclick* tag
       label: str 
           Label for button that will be displayed to user

       Returns
       -------
       str
           HTML button element 
    """
    return '<button class="livedisplay btn btn-primary" id="%s" onclick="%s(this.id)">%s</button>' % (buttonid, onclick, label)