/*
 * $Id: message.js,v 1.2 2010/02/26 23:39:01 gassmann Exp $
 */

function statusmsg(msg) {
    infomsg( '<img src="/static/images/loader.gif" style="vertical-align: middle; margin-right: 10px;" />' + msg );
}

function infomsg(msg) {

    if ( msg ) {
        
        $('infomsg').show();
        $('infomsg').update(msg);

    } else {
     
        $('infomsg').hide();   
    }       
}

function errormsg(msg) {
 
    if ( msg ) {
       
        $('errormsg').show();
        $('errormsg').update(msg);
    
    } else {
    
        $('errormsg').hide();
    }
}


