<!--
var aNoteWin
var agt=navigator.userAgent.toLowerCase() // Make easier for testing
var isNav4, isIE4, isMac, isNav6;

this.major = parseInt(navigator.appVersion)
this.nav = ((agt.indexOf('mozilla')!= -1) && ((agt.indexOf('spoofer')== -1) && (agt.indexOf('compatible') == -1)))
this.ie = (agt.indexOf("msie") != -1)

isNav4 = (this.nav && (this.major == 4))
isNav6 = (this.nav && (this.major >= 5))
isIE4 = (this.ie && (this.major == 4))
isMac = (agt.indexOf("mac")!= -1)

function GetPositionLeft(nWindowLeft) {

	// Get client width and height
	var nClientWidth;
	nClientWidth = self.screenLeft;

	// Work-out window placements
	if (nClientWidth >= 0) {
		nWindowLeft = nClientWidth + 5;
	}
	
	return nWindowLeft;
}

function GetPositionTop(nWindowTop) {

	// Get client width and height
	var nClientHeight;
	nClientHeight = self.screenTop;

	// Work-out window placements
	nWindowTop = nClientHeight;
	
	return nWindowTop;
}


function popupsizable(topic,width,height) {
	
	if (isIE4) {
		var nWindowTop = GetPositionTop(nWindowTop);
		var nWindowLeft = GetPositionLeft(nWindowLeft);
		
		nWindowTop = nWindowTop - 100;
		
		
	} else {
		var nWindowTop = 10;
		var nWindowLeft = 155;
	}
	
	if (self.aPopUp3 == null) {
		name = "popupsize";
		aPopUp = window.open(topic,'SchemeDetails','scrollbars=yes,location=no,status=no,menubar=1,directories=no,top='+ nWindowTop +',left='+ nWindowLeft +',width='+width+',height='+height+',titlebar=no');
		self.aNoteWin = aPopUp;
	}
	else {
		name = "popupsize";
		closePicture()
		aPopUp = window.open(topic,'SchemeDetails','scrollbars=yes,location=no,status=no,menubar=1,directories=no,top='+ nWindowTop +',left='+ nWindowLeft +',width='+width+',height='+height+',titlebar=no');
		self.aNoteWin = aPopUp;
	}
}

function closePicture(which) {
	if (self.aPopUp != null) {
		self.aPopUp = null;
		self.aNoteWin.close();
	}
}

//-->