hi
i m wroking in asp the below code work in internet explorere but does't work in firefox pls help me


function DisplayMe(e)
{
//document.getElementById("CompName").value ==
//alert(e.id);
var elTableRow = document.getElementById(e.id);
var elTableCells = elTableRow.getElementsByTagName("td");

if (document.all) {
document.getElementById("CompName").value=elTableCells[1].innerText;
//var cell = elTableRow.getElementsByTagName("td")[1];
//var content = elTableCells[1].innerText;
//document.getElementById("CompName").value=elTableCells[1]

document.getElementById("City").value=elTableCells[2].innerText;
document.getElementById("Country").value=elTableCells[3].innerText;
document.getElementById("Email").value=elTableCells[4].innerText;
document.getElementById("Phone").value=elTableCells[5].innerText;
document.getElementById("CompanyURL").value=elTableCells[6].innerText;
document.getElementById("compDesc").value=elTableCells[7].innerText;
document.getElementById("ID").value=elTableCells[1].id;
//alert(elTableCells[2].innerText);

}
else

{
document.getElementById("CompName").textContent=elTableCells[1].textContent;
document.getElementById("City").value=elTableCells[2].textContent;
document.getElementById("Country").value=elTableCells[3].textContent;
document.getElementById("Email").value=elTableCells[4].textContent;
document.getElementById("Phone").value=elTableCells[5].textContent;
document.getElementById("CompanyURL").value=elTableCells[6].textContent;
document.getElementById("compDesc").value=elTableCells[7].textContent;
document.getElementById("ID").value=elTableCells[1].id;

alert(document.getElementById(e.id).textContent);
}
document.getElementById("CompName").textContent=elTableCells[1].textContent;

}
//--></script><!--webbot BOT="GeneratedScript" endspan -->

First of all try this code in IE then see the result if it works in IE then try it in Firefox.