function showSimilaires (params) {	

/*
 * AjaxObject is a hypothetical object that encapsulates the transaction
 *     request and callback logic.
 *
 * handleSuccess( ) provides success case logic
 * handleFailure( ) provides failure case logic
 * processResult( ) displays the results of the response from both the
 * success and failure handlers
 * call( ) calling this member starts the transaction request.
 */
 
var AjaxObject = {

	handleSuccess:function(o){
		// This member handles the success response
		// and passes the response object o to AjaxObject's
		// processResult member.
		this.processResult(o);
	},

	handleFailure:function(o){
		// Failure handler
		var div = document.getElementById('sim_' + params);						
		div.innerHTML = "Pas d'articles similaires";		
	},

	processResult:function(o){
		// This member is called by handleSuccess
		var response = o.responseText;		
		var div = document.getElementById('sim_' + params);						
		div.innerHTML = response;
		
	},

	startRequest:function(params) {				
		YAHOO.util.Connect.asyncRequest('GET', 'RechercheSimilaires.aspx?' + 'uniqueId=' + params, callback);		
	}

};

/*
 * Define the callback object for success and failure
 * handlers as well as object scope.
 */
var callback =
{
	success:AjaxObject.handleSuccess,
	failure:AjaxObject.handleFailure,
	scope: AjaxObject	
};

	AjaxObject.startRequest(params);
}
