function popup(url, x, y)
{
	window.open(url,'closeup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=' + y + ',height=' + x);
}

function closePopup(windowRef)
{
	// close the popup when the user clicks the button
	if (windowRef && !windowRef.closed) {
		windowRef.close();
	}
}
