Last updated on Aug 27, 2007
function returnObjById( id )
var returnVar = document.getElementById(id);
else if (document.all)
var returnVar = document.all[id];
else if (document.layers)
var returnVar = document.layers[id];
15 comments for this article.