var e = document.getElementById("list2");
var seldevs = xmlResponse.getElementsByTagName("device");
var selvars = xmlResponse.getElementsByTagName("var");
var selids = xmlResponse.getElementsByTagName("idvar");
for(i = 0; i<selids.length; i++)
{
var tablebody;
if(e.getElementsByTagName("tbody").length==0)
{
tablebody = document.createElement("tbody");
}
else
{
tablebody = e.getElementsByTagName("tbody")[0];
}
var newrow = document.createElement("tr");
var c0 = document.createElement("td");
c0.style.width="50%";
var c1 = document.createElement("td");
c1.style.width="50%";
var c2 = document.createElement("td");
c2.style.display = "none";
c0.appendChild(document.createTextNode(seldevs[i].childNodes[0].nodeValue));
c1.appendChild(document.createTextNode(selvars[i].childNodes[0].nodeValue));
c2.appendChild(document.createTextNode(selids[i].childNodes[0].nodeValue));
currentselectedvariables[i] = selids[i].childNodes[0].nodeValue;
c0.className="standardTxt";
c1.className="standardTxt";
newrow.className="Row1";
newrow.appendChild(c0);
newrow.appendChild(c1);
newrow.appendChild(c2);
newrow.onclick= function(){selectedLineVar(this,"list2");return false;};
tablebody.appendChild(newrow);
if(e.getElementsByTagName("tbody").length!=0)
{
e.removeChild(e.getElementsByTagName("tbody")[0]);
}
e.appendChild(tablebody);
enableActionDataTransfer();
selvarscount++;
}