aPicture = new Array();
var items=0;

function SelectAPicture(picSrc,caption,note)
{
	aPicture[0] = picSrc;
	aPicture[1] = caption;
	aPicture[2] = note;
}

// ----------ok-----
function ReleasePopUp(picSrc,caption,note)
{

   w = 400;
   if (screen.width > 800)
     w = 420;
   if (screen.width > 1024)
     w = 440;

   SelectAPicture(picSrc,caption,note);
   popupWindow=window.open("../popup/popup.htm","popupWindow","menubar=no,scrollbars=no,status=no,width="+w+",height="+w+"\"");
   popupWindow.focus();

   if (popupWindow.opener == null) popupWindow.opener = this;
}

//-----------------
function ReleaseSizeAblePopUp(picSrc,caption,note,popupwidth,popupheight)
{
   SelectAPicture(picSrc,caption,note);
   popupWindow=window.open("../popup/popup_resizeable.htm","popupWindow","menubar=no,scrollbars=yes,resizable=yes,status=no,width="+popupwidth+","+"height="+popupheight);
   popupWindow.focus();

   if (popupWindow.opener == null) popupWindow.opener = self;
}

