function ReadFileSync(sUri) {
   //alert(sUri);


   var async = false;
   try {

     var xmlHttp = XmlHttp.create();


     xmlHttp.open("GET", sUri, async);
   }
     catch (ex) {

     alert('Descripción: ' + ex.description
        //+ ' Línea ' + ex.number
        //+ ' Mensaje: ' + e.message
        );
   };

   xmlHttp.send(null);
   return xmlHttp.responseText;
}



function isUndefined(a) {
    return typeof a == 'undefined';
}

function getElementText( elem ) {

  if (isUndefined(elem.text)) {

    var cs = elem.childNodes;

	if (cs.length == 1) {
	  return cs[0].nodeValue
	} else {
	  return 'undefined';
	}

  } else {
    return elem.text
  }
}