var xmlhttp;
var iIndex;



function loadXMLDocSoporteNOXML(index)
{

if(xmlhttp.readyState!=4) return;
if(xmlhttp.status!=200)
  {
  alert("Problem retrieving XML data");
  return;
  }

first = 0;
if (index == 0) {
  first = 1;}
  
txt='<div id="contenido" class="column last">';
//txt=txt+'<img src="./images/soporte.gif" width="10%" align="left" ><p class="intro"><h1>Soporte T&eacute;cnico / Informaci&oacute;n de Contacto</h1></p><br><br>';
//txt=txt+'<p class="intro">A continuaci&oacute; se detallan las diferentes v&iacute;as de contacto:</p>';

//txt=txt+'<div id="dock" ></div>';
while (index != -1)  {

if ((index == 1) || (index == 0)) {
  txt=txt+'<div id="online" ></div>';
    
  }
 
if (first == 1 )
  {txt=txt+'<br><br>';}
  
if (index == 2)  {
  txt=txt+'<div id="presentacion" ></div>'; index = -1;}
 
if ((index == 7) || (index == 0)) {
txt=txt+'<div id="twitter" ></div>';} 
if ((index == 3) || (index == 0)) {
  txt=txt+'<div id="emails" ></div>';}
if ((index == 4) || (index == 0)) {
txt=txt+'<div id="direccion" ></div>';}
if ((index == 5) || (index == 0)) {
txt=txt+'<div id="telefonos" ></div>';}

if ((index == 6) || (index == 0)) {
txt=txt+'<div id="chatpronto" ></div>';}


if (index > 0 )
{
index = 0;
txt=txt+'<br><br><br><br>';
}
else
{
index = -1;
}
}

txt=txt+'</div><!--/column.first-->';

document.getElementById('contenido').innerHTML=txt;
if (document.getElementById('presentacion') != null) 
  loadXMLPresentacion('./data/news.xml')
  ;

if (document.getElementById('online') != null)   
  loadXMLOnLine('./data/news.xml');
if (document.getElementById('telefonos') != null)     
  loadXMLTelefonos('./data/news.xml');
if (document.getElementById('emails') != null)   
  loadXMLEmails('./data/news.xml');
if (document.getElementById('direccion') != null)     
  loadXMLDireccion('./data/news.xml');

if (document.getElementById('chatpronto') != null)     
  
  loadXMLChatPronto('./data/news.xml');  
if (document.getElementById('twitter') != null)     
  
  loadXMLTwitter('./data/news.xml');  
  
  

}

function loadXMLDocSoporte(url,index)
{
xmlhttp=null;
iIndex = index;
if (window.XMLHttpRequest)
  {// code for IE7, Firefox, Mozilla, etc.
  xmlhttp=new XMLHttpRequest();
  }
else if (window.ActiveXObject)
  {// code for IE5, IE6
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
if (xmlhttp!=null)
  {
  xmlhttp.onreadystatechange=onResponseSoporte;
  xmlhttp.open("GET",url,true);
  xmlhttp.send(null);
  }
else
  {
  alert("Your browser does not support XMLHTTP.");
  }
}


function onResponseSoporte()
{

loadXMLDocSoporteNOXML(iIndex);

//if ((iIndex == 1) || (iIndex == 0)){
//setTimeout("if (document.forms != null) {document.forms.formconectarme.etq1.focus();}",100); }

}
