What do you do if someone if having a heart attack, other than calling 911?

What should you do if someone is having a heart attack, other than calling 911? What can you do to help the person? If they are not conscious, should you perform CPR?