/** * get element by id X(cross) object */ function getElemByIdX(id){ if( !emptyString.test(id) && document.getElementById(id) ) return (dom)?document.getElementById(id).style : ie? eval('document.all.'+id) : eval('document.'+id); }