<!--
// Pop up script Open New Window
function fnOpenFixedWindow(url,w,h){
	var x = (screen.width - w) / 2;
	var y = (screen.height - h) / 2;
	popper = window.open(url, 'new_window', 'resizable=no,scrollbars=no,width='+w+',height='+h+',top='+y+',left='+x);
	popper.focus();
}
function fnOpenScrollingWindow(url,w,h){
	var x = (screen.width - w) / 2;
	//var y = (screen.height - h) / 2;
	var y = 20;
	popper = window.open(url, 'new_window', 'resizable=yes,scrollbars=yes,width='+w+',height='+h+',top='+y+',left='+x);
	popper.focus();
}
function getFooterYear(){
	yr = (new Date()).getYear();
	if (yr < 2000){
		yr += 1900;
	}
	return yr;
}
function trimLeft(s) {
	var whitespaces = " \t\n\r";
	for(n = 0; n < s.length; n++) { if (whitespaces.indexOf(s.charAt(n)) == -1) return (n > 0) ? s.substring(n, s.length) : s; }
	return("");
}
function trimRight(s){
	var whitespaces = " \t\n\r";
	for(n = s.length - 1; n  > -1; n--) { if (whitespaces.indexOf(s.charAt(n)) == -1) return (n < (s.length - 1)) ? s.substring(0, n+1) : s; }
	return("");
}
function trim(s) {return ((s == null) ? "" : trimRight(trimLeft(s))); }