var AdminBlocks = 
{
	set_contents_selectbox: function(block_id, contenttype_id, lang, base_url) {
		Html.showPause();
		new Ajax.Request(
			base_url+'/plugins/Admin/misc/ajax_blocks_contents_selectbox.php',
			{
				method: 'post',
				parameters: {
					block_id: block_id,
					contenttype_id: contenttype_id,
					lang: lang
				},
				onSuccess: AdminBlocks.set_contents_selectbox_success
			}
		);
	},
	
	set_contents_selectbox_success: function(response) {
		Html.hidePause();
		AdminBlocks.add_contents_html(response.responseText);
	},
	
	add_contents_html: function(html) {
		$('contents').update(html);
		
	}
}