// Declare a global variable to contain reference to subwindow:
var newWindow

function openRequestedSite(url) {

	if (!newWindow || newWindow.closed) {
		newWindow = open(url, "", "height=480,width=640,location,menubar,resizable,scrollbars,status,toolbar")
	} else {
		newWindow.focus()
	}

}

// Declare a global variable to contain reference to subwindow:
var newWindow

function openRequestedSiteByWindowSize(url, width, height) {

	if (!newWindow || newWindow.closed) {
		newWindow = open(url, "", "height=" + height + ",width=" + width + ",location,menubar,resizable,scrollbars,status,toolbar")
	} else {
		newWindow.focus()
	}

}

