<!-- Begin
function popUp(URL,w,h) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,status=0,menubar=0,width='+w+',height='+h+',left='+winl+',top='+wint+',resizable=0');");
}

function popUp1(URL,w,h) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,status=0,menubar=0,width='+w+',height='+h+',left='+winl+',top='+wint+',resizable=1');");
}

function popUp2(URL,w,h) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=0,status=0,menubar=1,width='+w+',height='+h+',left='+winl+',top='+wint+',resizable=1');");
}


function popUp3(URL,w,h) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,status=1,menubar=0,width='+w+',height='+h+',left='+winl+',top='+wint+',resizable=1');");
}

function popUp4(URL,w,h) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
var browser_type = jsrsBrowserSniff();
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL + '&_gb_browser=' + browser_type, '" + id + "', 'toolbar=0,scrollbars=0,location=0,status=1,menubar=0,width='+w+',height='+h+',left='+winl+',top='+wint+',resizable=0');");
}

var win=null;
function login(url, handle) {
	if (screen.width < 1024) { features = 'resizable=yes, status=yes, scrollbars=yes, width=' + screen.availWidth + 4 + ', height=' + screen.availHeight + 4 + ', left=0 ,top=0'; }
	else { features = 'resizable=yes, status=yes, scrollbars=no, width=' + screen.availWidth + 4 + ', height=' + screen.availHeight + 4 + ', left=0 ,top=0'; }
	win = window.open(url, handle, features);
}

// End -->

// This function originated from jsrsClient.js (2.4)
function jsrsBrowserSniff(){
  if (document.layers) return "NS";
  if (document.all) {
		// But is it really IE?
		// convert all characters to lowercase to simplify testing
		var agt=navigator.userAgent.toLowerCase();
		var is_opera = (agt.indexOf("opera") != -1);
		var is_konq = (agt.indexOf("konqueror") != -1);
		if(is_opera) {
			return "OPR";
		} else {
			if(is_konq) {
				return "KONQ";
			} else {
				// Really is IE
				return "IE";
			}
		}
  }
  if (document.getElementById) return "MOZ";
  return "OTHER";
}
