 function notify(flash_message)
 {
     // jQuery: reference div, load in message, and fade in
     //
     var flash_div = $j("#flash");
    
     flash_div.html(flash_message);
     flash_div.fadeIn(400);
     // use Javascript timeout function to delay calling
     // our jQuery fadeOut, and hide 
     setTimeout(function(){
       flash_div.fadeOut(1500, function(){
         flash_div.html("");
         flash_div.hide();
       })
     }, 3400);
   }
 

 function submitForm(url) {
     $j('ajaxBusy').show();
     $j.ajax(
     {
         url: url 
         ,type:'POST' 
         ,data:$j('form').serialize() 
         ,success: function(resp) {
            if (resp == 'success') {
              $j('ajaxBusy').hide();
              location.href = '/';
            }
            else {
               $j('#TB_ajaxContent').html(resp);
               $j('#TB_ajaxContent').scrollTo(0, 0, {queue:true} )
            }
         }
         ,failure: function(resp) {
         }
      });
 }


