Open a popup through iframe

Hi ,

I am having php file say file1.php.
In this file, I am having an iframe tag. the src attribute is also a php file say file2.php. In file2.php, a link is displayed clicking on which I want to open a popup window.
The JS function to open popup window is


function displayNote(noteid){
	var url = "display_note.php?ntid=" + noteid;
	var popup = window.open(url,"Note Details","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=400, height=400");
/*
	parent.window.open(url,"Note Details","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=400, height=400");
*/
	if(!popup.opener) popup.opener=self;
	popup.focus();
	
}

But the popup is not displayed. Please help me.

Thanks

The spaces are not allowed in the third parameter you pass to window.open