<!--
/////////////////////////
// Get browser details //
/////////////////////////
var bAgent = navigator.userAgent.toLowerCase();

var poppup = null;
this.window.name = "main";
//////////////////////////
// Window close routine //
//////////////////////////
function closeWin() {
	if (poppup) {
		poppup.close();
	}
	return;
}
///////////////////////////
// Generic window opener //
///////////////////////////
function popupwin(url,wname,scroll,wid,hite) {
	var scrolling = ((scroll) ? "scrollbars," : "");
	if (!poppup || poppup.closed) {
		poppup = window.open(url, wname, scrolling +",width="+wid+",height="+hite+",top=20,left=20");
		if (!poppup.opener) {
			poppup.opener = self;
		}
		if (bAgent.indexOf("msie 4") == -1) {
			poppup.focus();
		}
	} else {
		window.poppup.location.href = url;
		if (bAgent.indexOf("msie 4") == -1) {
			poppup.focus();
		}
	}
	return;
}
//-->