function getRefById(l, d) {
    var r = "", j
    d = (d || document)
    if (d.all) return d.all[l]
    else if (d.getElementById) return d.getElementById(l)