Show a popup and send data by post from the popup to the opener window

I have to search for a person with an identification number, but I don’t know that number, how can I open a popup to search that person by another field more easily recognized (first name, last name, etc.) and send the selected person by post to the opener window?

This is a JavaScript question, not a CakePHP question.