def create_year_selectbox(name, from_year=-<NUM_LIT:1>, length=<NUM_LIT:10>, selected_year=<NUM_LIT:0>,<EOL>ln=None):
ln = default_ln(ln)<EOL>_ = gettext_set_language(ln)<EOL>if from_year < <NUM_LIT:0>:<EOL><INDENT>from_year = time.localtime()[<NUM_LIT:0>]<EOL><DEDENT>out = "<STR_LIT>" % name<EOL>out += '<STR_LIT>'<EOL>if selected_year == <NUM_LIT:0>:<EOL><INDENT>out += '<STR_LIT>'<EOL><DEDENT>out += "<STR_LIT>" % _("<STR_LIT>")<EOL>for i in range(from_year, from_year + length):<EOL><INDENT>out += "<STR_LIT>" % i<EOL>if (i == selected_year):<EOL><INDENT>out += "<STR_LIT>"<EOL><DEDENT>out += "<STR_LIT>" % i<EOL><DEDENT>out += "<STR_LIT>"<EOL>return out<EOL>
Creates an HTML menu (dropdownbox) for year selection.

    @param name: name of control( i.e. name of the variable you'll get)
    @param from_year: year on which to begin. if <0 assume it is current year
    @param length: number of items in menu
    @param selected_year: initial selected year (if in range), else: label is
                          selected
    @param ln: language
    @return: html as string