

//This function will open pop-up window with needed URL.
function PopUp(link,WinWidth,WinHeight) {
	var VSpeed =16;
	var HSpeed = 16;
	var LeftDist = 5;   
	var TopDist = 5; 
	
	var WinParams = "left=15, top=20, width=10, height=10, " +
					"status=No, toolbar=no, menubar=no, location=no, " +
					"directories=no, resizable=No, scrollbars=yes";
	var WinObj = window.open(link, "PopUpWindow", WinParams);
	
	for (VChange = 1; VChange < WinHeight; VChange += VSpeed)
	{
		WinObj.resizeTo("1", VChange);
	}
	for (WinWidthChange = 1; WinWidthChange < WinWidth; WinWidthChange += HSpeed) 
	{
		WinObj.resizeTo(WinWidthChange, WinHeight);
	}
	WinObj.location = link;
	WinObj.focus()
}
