function getRefById(l, d) {
    var r = "", j

    d = (d || document)
    if (d.all) return d.all[l]