def js_del_alert(ident):
 return ('try {del_message("%s");} catch(err) {}\n' % ident)

def js_del_alert ( ident ) : return ( 'try {del_message("%s");} catch(err) {}\n' % ident )
this function returns a string containing js code to remove an alert message .