// llamar a la ventana nuevamente para cargar menu
function pasarVariables(pagina) {
  location.href=pagina;
}

// cargar el e-mail para enviarlo okis
function opennewsletter(numero){
	emailwindow=dhtmlmodal.open('EmailBox', 'iframe', 'windowfiles/mailsoft.php?id='+numero, 'Contacto Computer Desing', 'width=650px,height=450px,center=1,resize=0,scrolling=1')
}


function getXMLHTTPRequest()
{
var req = false;
try
  {
    req = new XMLHttpRequest(); /* p.e. Firefox */
  }
catch(err1)
  {
  try
    {
     req = new ActiveXObject("Msxml2.XMLHTTP");
  /* algunas versiones IE */
    }
  catch(err2)
    {
    try
      {
       req = new ActiveXObject("Microsoft.XMLHTTP");
  /* algunas versiones IE */
      }
      catch(err3)
        {
         req = false;
        }
    }
  }
return req;
}

var Peticion = getXMLHTTPRequest();


// botones de software
function llamarContenidosoft(uno) {
var url = "softresultado.php?id="+uno;
Peticion.open("GET", url, true);
Peticion.onreadystatechange = respuestaContesoft;
Peticion.send(null);
}

function respuestaContesoft() {
if(Peticion.readyState == 4) {
if(Peticion.status == 200) {
 var nodoRelleno = Peticion.responseText;
				document.getElementById('desmarca').innerHTML = (nodoRelleno);
			} else {
		document.getElementById('desmarca').innerHTML = '<img src="loading.gif" width="49" height="50">';
        } 
    }
}


function llamarContenidosoftbot(uno) {
var url = "softresultadobot.php?id="+uno;
Peticion.open("GET", url, true);
Peticion.onreadystatechange = respuestaContesoftbot;
Peticion.send(null);
}

function respuestaContesoftbot() {
if(Peticion.readyState == 4) {
if(Peticion.status == 200) {
 var nodoRelleno = Peticion.responseText;
				document.getElementById('desmarca').innerHTML = (nodoRelleno);
			} else {
		document.getElementById('desmarca').innerHTML = '<img src="loading.gif" width="49" height="50">';
        } 
    }
}

// termino botones de software
// -----------------------------------------------------------------------------------------------------------------
// botones de Hardware

function llamarContenidoHard(uno) {
var url = "softresultado.php?id="+uno;
Peticion.open("GET", url, true);
Peticion.onreadystatechange = respuestaConteHard;
Peticion.send(null);
}

function respuestaConteHard() {
if(Peticion.readyState == 4) {
if(Peticion.status == 200) {
 var nodoRelleno = Peticion.responseText;
				document.getElementById('desmarcaHard').innerHTML = (nodoRelleno);
			} else {
		document.getElementById('desmarcaHard').innerHTML = '<img src="loading.gif" width="49" height="50">';
        } 
    }
}

function llamarContenidobotHard(uno) {
var url = "softresultadobot.php?id="+uno;
Peticion.open("GET", url, true);
Peticion.onreadystatechange = respuestaConteHardbot;
Peticion.send(null);
}

function respuestaConteHardbot() {
if(Peticion.readyState == 4) {
if(Peticion.status == 200) {
 var nodoRelleno = Peticion.responseText;
				document.getElementById('desmarcaHard').innerHTML = (nodoRelleno);
			} else {
		document.getElementById('desmarcaHard').innerHTML = '<img src="loading.gif" width="49" height="50">';
        } 
    }
}

// termino de hardware botones
//-------------------------------------------------------------------------------------------
// inicio planes


function llamarContenidoPlanes(uno) {
var url = "softresultado.php?id="+uno;
Peticion.open("GET", url, true);
Peticion.onreadystatechange = respuestaContePlanes;
Peticion.send(null);
}

function respuestaContePlanes() {
if(Peticion.readyState == 4) {
if(Peticion.status == 200) {
 var nodoRelleno = Peticion.responseText;
				document.getElementById('desmarcaPlanes').innerHTML = (nodoRelleno);
			} else {
		document.getElementById('desmarcaPlanes').innerHTML = '<img src="loading.gif" width="49" height="50">';
        } 
    }
}