Yer javascript would help you on your way with this. You could simply have the form their all along and show it when they click the link.
Your other option would be to pull the form in from the server using Ajax. Probably to much if your just starting out.
Have a go yourself and post your code so we can help you along with it.