
function popup(elem, width, height, append) {
   var href = (elem.getAttribute) ? elem.getAttribute('href') : elem.href
   var args = 'width=' + width + ',height=' + height

   if (append) args += ',' + append

   pop = window.open(href, '', args)
   return false
}

