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