
/* home page */		
function onFailed(ex, ctx, methodName) { 
    alert(ex.get_exceptionType()); 
} 


function callback_loadAlphaRates(res,ctx)
{
	document.getElementById("ratesComboBoxAJAX").innerHTML = res;
	loadRate(document.getElementById('ddlRates').value);
}

function loadAlphaRates(letter,rateplan)
{
var ctx = { 
        CurrentValue: 123456, 
        CurrentDate: new Date() 
    };    // sample context data 

/**** old Ajax function
	pindance.wwwDefault.LoadRatesComboBox(
		letter, 
		callback_loadAlphaRates
		);
****/
	PageMethods.LoadRatesComboBox(letter,rateplan,callback_loadAlphaRates, onFailed,ctx);
}


/* Rates Page */
function callback_livesearch(res)
{
	document.getElementById("ratesTableAJAX").innerHTML = res;
}

function livesearch(letter, rateplan)
{
	PageMethods.FilterRatesTable(
		letter, rateplan,
		callback_livesearch
		);
}
