function getElementById(id) {
        var el = null;
        try {
            el = doc.getElementById(id);
        }