<!--
  if(window.attachEvent)
    window.attachEvent("onload",setListeners);

  function setListeners(){
    inputList = document.getElementsByTagName("INPUT");
    for(i=0;i<inputList.length;i++){
      inputList[i].attachEvent("onpropertychange",restoreStyles);
      inputList[i].style.backgroundColor = "";
    }
    selectList = document.getElementsByTagName("SELECT");
    for(i=0;i<selectList.length;i++){
      selectList[i].attachEvent("onpropertychange",restoreStyles);
      selectList[i].style.backgroundColor = "";
    }
  }

  function restoreStyles(){
    if(event.srcElement.style.backgroundColor != "")
      event.srcElement.style.backgroundColor = "";
  }
  //-->

<!--

// Pop-up Control - written by Simon Ilett @ St.George Bank 2006
// IE 6 + Firefox compliant

function parentControl(symbol) {
  if (window.opener && !window.opener.closed) {
    window.opener.document.location.href = symbol;
    }
    else if (!window.opener || window.opener.closed) {
    	document.getElementById('mainContent').style.display = "none";
    	document.getElementById('closeIt').style.display = "block";
    	countClose();
    }
}

function countClose() {
	timerCount = timerCount-1;
	if (timerCount==-1) {
  	nowClose();
  } else {
  	window.setTimeout('pause()',1000);
  }
}

function pause() {
	document.getElementById('timerDown').innerHTML=timerCount + " seconds.";
  	countClose();
}

function nowClose() {
  	window.close();
}

//-->

function NewWindowPositioned(url)
{
	NewWin = window.open(url,'Bpay','height=450,width=570,toolbar=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no');
	NewWin.moveTo(10,10); 
}
//Open new window width size and other options passed.
function openWin(url, inW, inH, inS){
	if(inW == "") inW = 600; //default width of the window
	if(inH == "") inH = 400; //default height of the window
	if(inS == "") inS = 0; //default scrollbars 0 = no scrollbar; 1 = yes
	
	geneva = window.open(url,"poppup","menubar=no,resizable=yes,Width=" + inW + ",Height=" + inH + ",titlebar=no,alwaysRaised=yes,status=yes,resizable=no,scrollbars=" + inS + "");
}

function goPage()
{
  pageNo = document.pager.goWhere.selectedIndex
  if (pageNo == 0 || pageNo == 5 || pageNo == 6) {
    top.location.href = document.pager.goWhere.options[pageNo].value } else {
    parent.location.href = document.pager.goWhere.options[pageNo].value
  }
}


function CalculatorWindow(filename)
{
  window.open(filename,'Calculators','menubar=no,location=no,menus=no,scrollbars,resizable=1,status=yes,top=5,width=700,height=600');
}
function NewWindow(filename)
{
window.open(filename,'New','menubar=no,toolbar=no,location=no,menus=no,scrollbars,resizable=1,status=yes,top=5,width=640,height=560');
}

function IBWindow(filename)
{
  window.open(filename,'New','menubar=no,toolbar=no,location=no,menus=no,scrollbars,resizable=1,status=yes,top=5,width=800,height=600');
}

function ESWindow(filename)
{
  window.open(filename,'esw','menubar=no,toolbar=no,location=no,menus=no,scrollbars,resizable=1,status=yes,top=5,width=900,height=700');
}

// full window pop-up by *Simon Ilett*
 
function BBOWindow(filename) {
 
// defaults
winWidth = 800; 
winheight = 600;
 
// some old browsers don't support screen
if (screen){ 
   winWidth = screen.width;    // maximise width
   winHeight = screen.height; // maximise height
   winWidth=winWidth-10;
   winHeight=winHeight-50;
}
 
 window.open(filename,'bbonline', 'menubar=no,toolbar=no,location=no,menus=no,scrollbars,resizable=1,width='+winWidth+',height='+winHeight+',status=yes,top=0,left=0');
}
 
function controlWindow(filename, swidth, sheight) {
 
// defaults
winWidth = swidth; 
winHeight = sheight;
 
 window.open(filename,'window', 'menubar=no,toolbar=no,location=no,menus=no,scrollbars,resizable=1,width='+winWidth+',height='+winHeight+',status=yes,top=0,left=0');
}



//function BBOWindow(filename)
// {
// window.open(filename,'bbonline', 'fullscreen=yes,menubar=no,toolbar=no,location=no,menus=no,scrollbars,resizable=1,status=yes,top=5');
// }
function promoWindow(filename)
{
  window.open(filename,'promo','menubar=no,toolbar=no,location=no,menus=no,scrollbars,resizable=1,status=yes,top=5,width=800,height=510');
}

function csWindow(filename)
{
  window.open(filename,'csw','menubar=no,toolbar=no,location=no,menus=no,scrollbars,resizable=1,status=yes,top=5,width=800,height=600');
}
function privacy(filename)
{
  window.open(filename,'priv','menubar=no,location=no,menus=no,resizable=1,status=yes,top=5,width=400,height=400');
}
function fsra(filename)
{
  window.open(filename,'fsra','menubar=no,location=no,menus=no,scrollbars,resizable=1,status=yes,top=5,width=500,height=450');
}
function securitisation(filename)
{
  window.open(filename,'sec','menubar=no,location=no,menus=no,scrollbars=yes,resizable=1,status=yes,top=5,width=500,height=450');
}
function DemoWindow(filename)
{
  window.open(filename,'demo','menubar=no,toolbar=no,location=no,menus=no,scrollbars=no,resizable=no,status=yes,top=5,width=790,height=500');
}
function MLWindow(filename)
{
  window.open(filename,'MLWindow','menubar=no,location=no,menus=yes,scrollbars=yes,resizable=1,status=yes,width=770,height=480');
}
function MOMWindow(filename)
{
  window.open(filename,'MOM','menubar=no,toolbar=no,location=no,menus=no,scrollbars=no,resizable=0,status=yes,width=780,height=500');
}

function StandardWindow(filename)
{
  window.open(filename,'StandardWindow','menubar=no,location=no,menus=no,scrollbars=yes,resizable=1,status=yes,width=796,height=480');
}
/*There is already a NewWindow above and it it resizeable as it should be*/
//function NewWindow(filename)
//{       window.open(filename,'Plain','menubar=no,toolbar=no,location=no,menus=no,scrollbars,resizable=0,status=yes,top=5,width=540,height=580');
//}

function HLWindow(filename)
{       window.open(filename,'Plain','menubar=no,toolbar=no,location=no,menus=no,scrollbars,resizable=0,status=yes,top=5,width=540,height=580');
}
function AGMWindow(filename)
{
  window.open(filename,'Plain','menubar=no,toolbar=no,location=no,menus=no,scrollbars,resizable=0,status=yes,top=5,width=773,height=564');
}
function acrhiveWebcastWindow(filename)
{
  window.open(filename,'Plain','menubar=no,toolbar=no,location=no,menus=no,scrollbars,resizable=0,status=yes,top=5,width=773,height=449');
}
function feedback(filename)
{
  window.open(filename,'Plain','menubar=no,location=no,menus=no,scrollbars=yes,resizable=1,status=yes,top=5,width=650,height=600');
}
function closeMe()
{
	window.close();
}

function Login(s) {
	for (var i = 0; i < document.login_form.selectlog.length; i++) {
		if (document.login_form.selectlog[i].checked) {
			var str = document.login_form.selectlog[i].value;
			break;
		}
	}
	var arrayOfURL = str.split(",");
	var URL1 = arrayOfURL[0];
	var URL2 = arrayOfURL[1];
	if (s == 1)
	{
		if (URL1 != "") window.location.href = URL1;
	}
  else
	{
		if (URL2 != "") window.location.href = URL2;
	}
}

//This script will fix the print screen problem on IE 4

var da = (document.all) ? 1 : 0;
var pr = (window.print) ? 1 : 0;
var mac = (navigator.userAgent.indexOf("Mac") != -1);

function printPage() {
  if (pr) // NS4, IE5
    window.print()
  else if (da && !mac) // IE4 (Windows)
    vbPrintPage()
  else // other browsers
    alert("Sorry, your browser doesn't support this feature.");
  return false;
}

if (da && !pr && !mac) with (document) {
  writeln('<OBJECT ID="WB" WIDTH="0" HEIGHT="0" CLASSID="clsid:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>');
  writeln('<' + 'SCRIPT LANGUAGE="VBScript">');
  writeln('Sub window_onunload');
  writeln('  On Error Resume Next');
  writeln('  Set WB = nothing');
  writeln('End Sub');
  writeln('Sub vbPrintPage');
  writeln('  OLECMDID_PRINT = 6');
  writeln('  OLECMDEXECOPT_DONTPROMPTUSER = 2');
  writeln('  OLECMDEXECOPT_PROMPTUSER = 1');
  writeln('  On Error Resume Next');
  writeln('  WB.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER');
  writeln('End Sub');
  writeln('<' + '/SCRIPT>');
}

//pops up the pdf for economic commentary etc.
function formHandler(form)
{
  var URL = document.form.site.options[document.form.site.selectedIndex].value;
  window.open(URL);
}


<!-- begin
//Popup function for the onload browser detection script
function popup(Site)
{
window.open(Site,'PopupName','toolbar=no,statusbar=no,location=no,scrollbars=yes,resizable=yes,width=435,height=450')
}

// end -->
/* 
** This function updates the parent window, and closes the child
** window.
*/
function updateParentWindow(aLoc) {
  top.opener.parent.document.location.href = aLoc;
  window.close();
}

/*
This function is for World Awaits Tip
*/
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

<!--//font-changer
var tags = new Array('td','tr','p','b','strong','em','a','h1','h2','h3','ul','ol','li');
var pixelArray =  new Array('8','9','10','11','12','16');
var emArray =  new Array('0.7','0.9','1.0','1.5','2.0','2.5','3');
var initSize = 2;

function fontSizer(inc,unit) {
	if (!document.getElementById) 
		return;
	var size = initSize;
		size += inc;
	if (size < 0 ) {
		size = 0;
}
	if (size > 5 ) {
		size = 5;
}
		initSize = size;
		getBody = document.getElementsByTagName('body')[0];
	for (i = 0 ; i < tags.length ; i++ ) {
		getallTags = getBody.getElementsByTagName(tags[i]);
	for (k = 0 ; k < getallTags.length ; k++) 
		getallTags[k].style.fontSize = (unit=='px') ? pixelArray[size]+unit: emArray[size]+unit;
	}
}

function cFont(toValue){
	var fVal="10pt";
	if (toValue=="medium") fVal="14px";
	if (toValue=="large") fVal="16px";
    var textchange=document.getElementsByTagName("p");
    for (i=0;i<textchange.length;i++){
        textchange[i].style.fontSize=fVal;
    }

}

function clickclear(thisfield, defaulttext) {
if (thisfield.value == defaulttext) {
thisfield.value = "";
}
}

function clickrecall(thisfield, defaulttext) {
if (thisfield.value == "") {
thisfield.value = defaulttext;
}
}


function getCalendarDate()
{
   var months = new Array(13);
   months[0]  = "January";
   months[1]  = "February";
   months[2]  = "March";
   months[3]  = "April";
   months[4]  = "May";
   months[5]  = "June";
   months[6]  = "July";
   months[7]  = "August";
   months[8]  = "September";
   months[9]  = "October";
   months[10] = "November";
   months[11] = "December";
   
   var day = new Array(8);
   day[0] = "Sunday";
   day[1] = "Monday";
   day[2] = "Tuesday";
   day[3] = "Wednesday";
   day[4] = "Thursday";
   day[5] = "Friday";
   day[6] = "Saturday";
   
   var now         = new Date();
   var monthnumber = now.getMonth();
   var weekday = now.getDay();
   var monthname   = months[monthnumber];
   var wekday = day[weekday];
   var monthday    = now.getDate();
   var year        = now.getYear();
   if(year < 2000) { year = year + 1900; }
   var dateString = wekday + ' ' + monthday +
                    ' ' + monthname +
                    '&nbsp;' +
                    year;
   return dateString;
} // function getCalendarDate()

function getClockTime()
{
   var now    = new Date();
   var hour   = now.getHours();
   var minute = now.getMinutes();
   var second = now.getSeconds();
   var ap = "am";
   if (hour   > 11) { ap = "pm";             }
   if (hour   > 12) { hour = hour - 12;      }
   if (hour   == 0) { hour = 12;             }
   if (hour   < 10) { hour   = "0" + hour;   }
   if (minute < 10) { minute = "0" + minute; }
   if (second < 10) { second = "0" + second; }
   var timeString = hour +
                    ':' +
                    minute +
                    ap;
   return timeString;
}
-->





