jQuery.fn.fadeToggle = function(speed, easing, callback) {
   return this.animate({opacity: 'toggle'}, speed, easing, callback);
};

jQuery.fn.decHTML = function() {
  return this.each(function(){
    var me   = jQuery(this);
    var html = me.html();
    me.html(html.replace(/&amp;/g,'&').replace(/&lt;/g,'<').replace(/&gt;/g,'>'));
  });
};

$(function(){
    $('.confirm_delete').click(function(){
			return confirm('本当に削除してもいいですか?');
    });
});


//クリアボタン制御（初期値に戻らせる）
function clear1(){
    form=document.forms[0];
	formClear(document.forms[0]);
}  

//------------------------------------------------------------------------------
// 
//  formクリア
//
//------------------------------------------------------------------------------
function formClear(form_obj){
	for (i = 0; i < form_obj.elements.length;i++ ) {
		obj =form_obj.elements[i];
		if (obj.type == "checkbox" || obj.type == "radio") {
			obj.checked=false;
		}else if (obj.type == "text" || obj.type == "textarea") {
			obj.value="";
		}else if (obj.type == "select") {
			obj.selectedIndex=-1;
		}
	}
}
