function insert_data(url,pars,div){
				var myAjax = new Ajax.Updater(div, 
        url, 
        {
          method: 'get',
          parameters: pars, 
          onFailure: function()	{
            $(div).value='error';
            }
        });
}
function insert_data_post(url,pars,div){
				var myAjax = new Ajax.Updater(div, 
        url, 
        {
          method: 'post',
          parameters: pars, 
          onFailure: function()	{
            $(div).value='error';
            }
        });
}
function change_style_block_mouseover (div){
  Element.setStyle(div, 'background-color: #FEFEFE;') // D6E5FF
}
function change_style_block_mouseout  (div){
  Element.setStyle(div, 'background-color: #F3F3F3;');
}
function delete_div (div){
  Element.remove(div);
}

function button_show(button){
  new Effect.Opacity(button, { from: 0.3, to: 1 });
}
function button_hide(button){
  new Effect.Opacity(button, { from: 1, to: 0.3 });
}

function highlight_news(id){
new Effect.Highlight(id, { startcolor: '#FFFFFF',endcolor: '#CFDEFA' }); 
return false;
}

