/**
 * Cambia el tamaño de los bordes de las páginas.
 */
function cargarIndicadores( xmlIndicadores )
{
	try //Internet Explorer
  	{
  		xmlDoc = new ActiveXObject( "Microsoft.XMLDOM" );
  		xmlDoc.async = "false";
  		xmlDoc.loadXML( xmlIndicadores );
  	}
	catch( e )
  	{
  		try //Firefox, Mozilla, Opera, etc.
  		{
  			parser = new DOMParser( );
  			xmlDoc = parser.parseFromString( xmlIndicadores, "text/xml" );
  		}
  		catch( e )
  		{
  			alert( e.message );
  			return;
  		}
	}

	var valor_corriente = new NumberFormat( parseFloat( xmlDoc.getElementsByTagName("corriente")[0].childNodes[0].nodeValue ) ).toFormatted();


	document.getElementById("ind_corriente").innerHTML = valor_corriente;
	document.getElementById("ind_extra").innerHTML = new NumberFormat( parseFloat( xmlDoc.getElementsByTagName("extra")[0].childNodes[0].nodeValue  )).toFormatted();
	document.getElementById("ind_acpm").innerHTML = new NumberFormat( parseFloat( xmlDoc.getElementsByTagName("acpm")[0].childNodes[0].nodeValue  )).toFormatted();
	document.getElementById("ind_gas_natural").innerHTML = new NumberFormat( parseFloat( xmlDoc.getElementsByTagName("gas_natural")[0].childNodes[0].nodeValue  )).toFormatted();
	document.getElementById("ind_trm").innerHTML = new NumberFormat( parseFloat( xmlDoc.getElementsByTagName("trm")[0].childNodes[0].nodeValue  )).toFormatted();
	document.getElementById("ind_dtf").innerHTML = new NumberFormat( parseFloat( xmlDoc.getElementsByTagName("dtf")[0].childNodes[0].nodeValue  )).toFormatted();
	document.getElementById("ind_euro").innerHTML = new NumberFormat( parseFloat( xmlDoc.getElementsByTagName("euro")[0].childNodes[0].nodeValue  )).toFormatted();
	document.getElementById("ind_uvr").innerHTML = new NumberFormat( parseFloat( xmlDoc.getElementsByTagName("uvr")[0].childNodes[0].nodeValue  )).toFormatted();
	document.getElementById("ind_ipc").innerHTML = new NumberFormat( parseFloat( xmlDoc.getElementsByTagName("ipc")[0].childNodes[0].nodeValue  )).toFormatted();
	document.getElementById("ind_futuro_gasolina").innerHTML = new NumberFormat( parseFloat( xmlDoc.getElementsByTagName("futuro_gasolina")[0].childNodes[0].nodeValue  )).toFormatted();
	document.getElementById("ind_ecopetrol").innerHTML = new NumberFormat( parseFloat( xmlDoc.getElementsByTagName("ecopetrol")[0].childNodes[0].nodeValue  )).toFormatted();
	document.getElementById("ind_igbc").innerHTML = new NumberFormat( parseFloat( xmlDoc.getElementsByTagName("igbc")[0].childNodes[0].nodeValue  )).toFormatted();
	document.getElementById("ind_dow").innerHTML = new NumberFormat( parseFloat( xmlDoc.getElementsByTagName("dow")[0].childNodes[0].nodeValue  )).toFormatted();
	document.getElementById("ind_wti").innerHTML = new NumberFormat( parseFloat( xmlDoc.getElementsByTagName("wti")[0].childNodes[0].nodeValue  )).toFormatted();
	document.getElementById("ind_ultima_actualizacion").innerHTML = xmlDoc.getElementsByTagName("ultima_actualizacion")[0].childNodes[0].nodeValue;
}