import cgi
def main():
    if cgi.dictionary is None or not cgi.dictionary.has_key('file'):
        show_form()
    else:
        show_file()
def show_form(error = ''):
    if error != '':
        error = '\t\t\t' + error + ' cannot be displayed.
\n'
    cgi.html('''
\t