var divshow = "content";

function loadOpt_Post(opt) { 
	sajax_request_type = "POST";
	uri = opt;
	carregando_show();
	x_loadOpt(loadOpt_cb);
}

function loadOpt(opt) { 

	sajax_request_type = "GET";

	uri = opt;
	carregando_show();
	x_loadOpt(loadOpt_cb);
}

function x_loadOpt() {
	sajax_do_call("",
				x_loadOpt.arguments);
}

function loadOpt_cb(dt) {

	if (!divshow)
		divshow = "content";

	carregando_hide();
	document.getElementById(divshow).innerHTML = dt;
	sajax_request_type = "GET";
}

function carregando_show() {
	document.getElementById("loader").style.display = "";
}

function carregando_hide() {
	document.getElementById("loader").style.display = "none";
}





