function PopupPic(sPicURL) { 
	var win = null	
	if (opener && !opener.closed) {
      opener.location = "popup.htm?"+sPicURL, "", "resizable=no,HEIGHT=200,WIDTH=200";
	} else {
    var myWin = window.open("popup.htm?"+sPicURL, "", "resizable=no,HEIGHT=200,WIDTH=200");
    // trick the window into thinking it was opened by this new window:
    opener = myWin;
  }
}