def legislature_to_number(leg):
    """
    Takes a full session and splits it down to the values for
    FormatDocument.asp.

    session = '49th-1st-regular'
    legislature_to_number(session) --> '49Leg/1s'
    """
    l = leg.lower().split('-')
    return '%sLeg/%s%s' % (l[0][0:2], l[1][0], l[2][0])