function PopUp(sImage, iW, iH, sText)
{
	iW = iW * 1.07;
	iLen = sText.length;

	iH = iH * 1.066;
	if (iLen == 0)
			iH = iH + 0;
	else if (iLen < 50)
			iH = iH + 30;
	else
		iH = iH + 30;


	var oWin = open("PopUp.html?IMG=" + "images/" + sImage + "&Text=" + sText,"PopUp","width=" + iW + ", height=" + iH);
	oWin.focus();
}
