def create_month_selectbox(name, selected_month=0, ln=None):
    """Creates an HTML menu for month selection. Value of selected field is
    numeric.

    @param name: name of the control, your form will be sent with name=value...
    @param selected_month: preselect a month. use 0 for the Label 'Month'
    @param ln: language of the menu
    @return: html as string
    """
    ln = default_ln(ln)
    out = "<select name=\"%s\">\n" % name

    for i in range(0, 13):
        out += "<option value=\"%i\"" % i
        if (i == selected_month):
            out += " selected=\"selected\""
        out += ">%s</option>\n" % get_i18n_month_name(i, ln)
    out += "</select>\n"
    return out
Creates an HTML menu for month selection. Value of selected field is
    numeric.

    @param name: name of the control, your form will be sent with name=value...
    @param selected_month: preselect a month. use 0 for the Label 'Month'
    @param ln: language of the menu
    @return: html as string