
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) 
{

   SelectAPicture(picSrc,caption,note);
   popupWindow=window.open("../popup/popup.htm","popupWindow","menubar=no,scrollbars=no,status=no,width=400, height=377");
   popupWindow.focus();
    if (popupWindow.opener == null) popupWindow.opener = this;
}

function ReleasePopUpAkcio(picSrc,
			   caption,
			   note,
			   kategoria,
			   gyartmany,
			   tipus,
			   teherbiras,
			   uzemmod,
			   meghajtasiMod,
			   gyartasiEv,
			   futottUzemora,
			   garancia,
			   ar,
			   megjegyzes,
			   lang) 
{

   SelectAPicture(picSrc,caption,note);

   aPicture[3] = kategoria; 
   aPicture[4] = gyartmany;
   aPicture[5] = tipus;
   aPicture[6] = teherbiras;
   aPicture[7] = uzemmod;
   aPicture[8] = meghajtasiMod;
   aPicture[9] = gyartasiEv;
   aPicture[10]= futottUzemora;
   aPicture[11]= garancia;
   aPicture[12]= ar;
   aPicture[13]= megjegyzes;

if (lang == 'hu') {
popupWindow=window.open("../popup/popup_akciok_hu.htm","popupWindow","menubar=no,scrollbars=no,status=no,width=750, height=470");
} else if (lang == 'en') {
popupWindow=window.open("../popup/popup_akciok_en.htm","popupWindow","menubar=no,scrollbars=no,status=no,width=750, height=470");
}

   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;
}

