var tempo = "max";
var formato = "log";
var condizioneID = 0;

function grafico(id) {

    var condizioneFlag = "-" + condizioneID;

    var price = elemento('price');
    price.src = '/grafico/price/' + tempo + '/' + formato + '/' + id + condizioneFlag + '.png';

    var volume = elemento('volume');
    volume.src = '/grafico/volume/' + tempo + '/lin/' + id + condizioneFlag + '.png';
}
function elemento(id) {
	if (document.all) return document.all[id];
	return document.getElementById(id);
}
function hide(id) {
	var load = elemento(id);
	load.style.display = "none";
}
function show(id) {
	var load = elemento(id);
	load.style.display = "";
}
function muda(id) {
	var load = elemento(id);
	if (load.style.display == "none") {
		load.style.display = "";
	}
	else {
		load.style.display = "none";
	}
}

function focus (id) {
	var load = elemento(id);
    load.focus();
}
