function requestInformation(id_information) 
{ 
	showLoadingMessage('Buscando...');
	var oCallback = { 
					    success: function(o) { 
					    	var results = YAHOO.lang.JSON.parse(o.responseText);
					    	
					    	hideLoadingMessage();
					    	
					    	if (results['success'] == true)
				    			showInformation(results['aInformation'][0]['title'],results['aInformation'][0]['description']);
				    		else
				    			showMessage(results['message']);
					    	
					    }, 
					    failure: function(o) { 
					        var results = YAHOO.lang.JSON.parse(o.responseText); 
					        hideLoadingMessage();
					        showInformation(results['message']);
					    }, 
					    scope: this, 
					    argument: this.login_name 
					}

	
	var dataSourceUrl = document.getElementById('form1').action + 'information/get-information/';
	
	var postData = 'id_information=' + id_information;
	var request = YAHOO.util.Connect.asyncRequest('POST', dataSourceUrl, oCallback, postData);
}

function showInformation(title,message)
{
	// Define various event handlers for Dialog
	var handleOk = function() {
		this.hide();
	};
	
	YAHOO.namespace("container.messages");

	// Instantiate the Dialog
	YAHOO.container.messages.simpledialog1 = new YAHOO.widget.SimpleDialog(	"divInformation", 
																			 { fixedcenter: false,
																			   visible: false,
																			   close: true,
																			   text: message,
																			   constraintoviewport: true,
																			   buttons: [ { text:"Ok", handler:handleOk, isDefault:true } ]
																			 } );
	YAHOO.container.messages.simpledialog1.setHeader( title );
	// Render the Dialog
	YAHOO.container.messages.simpledialog1.render("container");
	YAHOO.container.messages.simpledialog1.show();
}