@mageswar, that code would open a pop-up window. I don't think that's what the OP requires. Please ensure that any code you post is in [code] tags.
@Viji, can you explain exactly what you mean by a pop-up menu. There's many different types. What have you tried so far?