Membership login/register in a popup?

Is it possible for there to be a link that, when clicked, opens a popup with the register/login info in it, rather than going to a register/login page?