function makeRequest(page, target, postData){
var div = document.getElementById(target);
var sUrl = page;
div.innerHTML = '<div style="text-align:center;width:100%;"><img src="http://www.jagoanstore.com/assets/spinner.gif" /></div>';
var handleSuccess = function(o){
	YAHOO.log("The success handler was called.  tId: " + o.tId + ".", "info", "example");
	if(o.responseText !== undefined){
		div.innerHTML = '';
		div.innerHTML += o.responseText;
	}
};

var handleFailure = function(o){
		YAHOO.log("The failure handler was called.  tId: " + o.tId + ".", "info", "example");

	if(o.responseText !== undefined){
		div.innerHTML = "Transaction id: " + o.tId + "<br />";
		div.innerHTML += "HTTP status: " + o.status + "<br />";
		div.innerHTML += "Status code message: " + o.statusText + "<br />";
	}
};

var callback =
{
  success:handleSuccess,
  failure:handleFailure,
  argument:['foo','bar']
};

	var request = YAHOO.util.Connect.asyncRequest('POST', sUrl, callback, postData);
	
	YAHOO.log("Initiating request; tId: " + request.tId + ".", "info", "example");

}

YAHOO.log("As you interact with this example, relevant steps in the process will be logged here.", "info", "example");

YAHOO.namespace("example.container");