function send_errors(errors)
{
   if(errors)
   {
      for(error in errors)
      {
	 $("input[name="+errors[error][0]+"]").css({'border':'2px solid red'});
         $('body').append("<span class='Ferrors_V' id='input_"+errors[error][0]+"'><img src='"+base_path+"theme/share/images/cancel.png'/>"+errors[error][2]+"</span>");
	 $("input[name="+errors[error][0]+"]").parent('td').append("&nbsp;&nbsp;<span class='Ferror'><img alt='"+errors[error][0]+"' src='"+base_path+"theme/share/images/exclamation-red.png'/>&nbsp;</span>");
      }
   }
   $('.Ferrors_V img').click(function(){$('.Ferrors_V').css('visibility','hidden');});
   
   $('.Ferror img').click(function(){
      $('.Ferrors_V').css('visibility','hidden');
      $('#input_'+$(this).attr("alt")).attr('class','Ferrors_V');
      var offset = $(this).offset();
      offset.left = offset.left + $(this).width() + 2;
      $('#input_'+$(this).attr("alt")).css({'top':offset.top+"px",'left':offset.left+"px",'visibility':'visible'});
      });
  
}
