//dojo.require("dojo.io.*");
//dojo.require("dojo.event.*");
//dojo.require("dojo.html.*");

function getJson(urlString,handleFunction,handleErrorFunction) {
    dojo.xhrGet ({
        url: urlString,
        handleAs: 'json',
        preventCache: true,
        load: handleFunction,
        error: handleErrorFunction
    });
}

function getAjaxText(urlString,handleFunction,handleErrorFunction) {
    dojo.xhrGet ({
        url: urlString,
        handleAs: 'text',
        preventCache: true,
        load: handleFunction,
        error: handleErrorFunction
    });
}

function submitByPost(urlString,formId,handleFunction,handleErrorFunction) {
	dojo.xhrPost ({
		url: urlString,
		form: formId,
		preventCache: true,
        load: handleFunction,
        error: handleErrorFunction
	});
}
