﻿// JScript File

function PopupWindow(url, width, height, name, scrollbars)
{
	if (name == null)
		name = '_blank';
	if (scrollbars == null)
		scrollbars = 'yes';
		
	/*if (theWindow) // Don't get too many popups (gets "'theWindow' is undefined" error)
		theWindow.close();*/

	if (width == null || height == null)
	{
		var win = window.open( url, name, "top=50,left=50,directories=no,status=yes,location=no,toolbar=no,scrollbars="+scrollbars+",resizable=yes,menubar=no,copyhistory=no");
	}
	else
	{
		var win = window.open( url, name, "width="+width+",height="+height+",top=50,left=50,directories=no,status=yes,location=no,toolbar=no,scrollbars="+scrollbars+",resizable=yes,menubar=no,copyhistory=no");		
	}
	if (win)
	{
		win.focus();
		theWindow = win;
	}
	else // Warn popup blockers
	{
		alert('A window could not be opened.\nIf you have a popup blocker, please check your popup blocker settings and try again.');
	}
};

function changeSize(width, height)
{
    var width = width;
    var height = height;
    document.getElementById("testImage").height ="+height+";
    document.getElementById("testImage").width = "+width+";
}