<!-- START - Open URL in a new Window -->
function openWindow(url, width, height, scrollbars, resizable, top)
	{
		var sName = "_blank";
		var sFeatures = "";
		var sUrl = url;
		var sWidth = "";
		var sHeight = "";

	if (resizable == 'yes' || resizable == 1)
		{
		if (width != null && !isNaN(parseInt(width)))
			{
				if ((screen.width==800))
				{ 
				sWidth = width;
				sFeatures += "width=" + sWidth;
				}
				else
				{
				sWidth = (screen.width*0.875);
				sFeatures += "width=" + sWidth;
				}
			}
		else
		{
			sFeatures += "width=" + 300;
		}

		if (height != null && !isNaN(parseInt(height)))
			{
				if ((screen.height==600))
				{ 
				sHeight = height;
				sFeatures += ",height=" + sHeight;
				}
				else
				{
				sHeight = (screen.height*0.91);
				sFeatures += ",height=" + sHeight;
				}
			}
		else
			{
			sFeatures += ",height=" + 300;
			}
			}
	else
	{
		sWidth = width;
		sFeatures += "width=" + width + ",height=" + height;
	}

	if (scrollbars == 'yes' || scrollbars == 1)
	{
		sFeatures += ",scrollbars=yes";
	}
	else
	{
		sFeatures += ",scrollbars=no";
	}
	if (resizable == 'yes' || resizable == 1)
	{
		sFeatures += ",resizable=yes";
	}
	else
	{
		sFeatures += ",resizable=no";
	}
		sFeatures += ",left=" + (screen.width - sWidth)/2;
		sFeatures += ",top=" + top;		

	window.open(sUrl, sName, sFeatures);
	}
<!-- END - Open URL in a new Window -->
