function addClickEventToTakeIn() {
    $(".uptakeLink").unbind("click").click(function() {
    	var clicked = $(this);
		var id = clicked.next().val();
		clicked.html('<img src="../images/ajax-loader.gif" />');
		$.get(
			"../style/takeIn.html",
			{"id": id}, 
			function(html) {
				clicked.html("<img src=\"../images/import_button_02.png\" alt=\"取り込み済み\">");
		});
	});	
}

function autoHeight(ev) {
    var tallest = 0;
    ev.each(function() {
      var thisHeight = $(this).height();
      if(thisHeight > tallest) {
         tallest = thisHeight;
      }
    });
    ev.height(tallest);
}

function addBookmark(title,url) {
    if (window.sidebar) {
        window.sidebar.addPanel(title, url, "");
    } else if(document.all) {
        window.external.AddFavorite(url, title);
    } else if(window.opera && window.print) {
        return true;
    }
}

