Open form module from popup
Welcome to Drupal!

Take a look at https://drupal.org/project/modal_forms - this performs the functionality that you've described and works with https://drupal.org/project/webform which you can use to build the survey.

I also recommend taking a look at https://drupal.org/project/examples to learn more about module building in general; it includes many practical examples.

If you want to use an existing form, check out the tutorial at http://deeson-online.co.uk/labs/insert-form-pop-modal-ctools-and-drupal-7 that describes how to use CTools Modal with existing forms.