// define our success function
var exchangeRateHandleSuccess = function(o)
{
	if(o.responseText != undefined)
	{
		var jsonObject = eval("(" + o.responseText + ")");
		if(jsonObject.error == null)
		{
			var responseValue = jsonObject.value;
			// construct the same from the aspx page
			var div = document.getElementById('exchangeRate');
			if(div != null)
			{
				div.innerHTML = responseValue.ExchangeRate;
			}
		}
	}
}

// define our failure function
var exchangeRateHandleFailure = function(o)
{
	alert('ERROR: ' + o.responseText);
}

// define our callbacks
var exchangeRateCallback = { success:exchangeRateHandleSuccess, failure:exchangeRateHandleFailure };

function exchangeRate(element, object)
{

//	showProgressImage('carsList');
	
	// kick off the request, specifying the url and the callback functions	
	YAHOO.util.Connect.asyncRequest('GET', '/ExchangeRate.ajax', exchangeRateCallback);
}

