Please follow http://www.irs.gov/pub/irs-pdf/p974.pdf.