<!--/**************************************************************************** Program Name       : Javascript program* Copyright Notice   : COPYRIGHT (C) 2001 BY HSBC* Creation Date      : 13/11/2001* Programmer         : Ion Global* Abstract           : This file contains common functions required*                      for all web pages* Amendment History:* Date       By            Description* ---------  ------------- ------------------------------------------------*                          PPCR No:***************************************************************************/// Provide some an interface to predefined functions for TeamSite user to user Javascriptfunction HSBCPredefinedFunction(functionString){	var functionPara = functionString.split(";");	if(functionPara[0] == "addToFavourites")	{		addToFavourites(functionPara[1]);	}	else	{		alert("The function : '" + functionPara[0] + "' is not valid");	}}// pull in the corresponding style sheet - requires hsbc.js// pcfile - style sheet for PC// macfile - style sheet for MACfunction addCss(pcfile, macfile){	if (!mac) {		document.write('<link rel=\"stylesheet\" href=\"'+pcfile+'\" type=\"text/css\">');	} else {		document.write('<link rel=\"stylesheet\" href=\"'+macfile+'\" type=\"text/css\">');	}}// add the current page to favourites// name - Name to be displayed in the favouritesfunction addToFavourites(name){  if ((navigator.appVersion.indexOf('MSIE') > 0) && (parseInt(navigator.appVersion) >= 4)) {     window.external.AddFavorite(parent.location.href, name);  } else if (navigator.appName == "Netscape") {     alert ("To bookmark this page press - 'CTRL+D' for PC and 'Command+D' for MAC");  }}// spawn a new browser (500x700 with all control bars) - requires hsbc.js// url - URLfunction newBrowser(url) {	nb=window.open(url, "nb", "status=yes,location,scrollbars,menubar,toolbar,resizable,HEIGHT=470,WIDTH=600");    nb.focus();}// spawn a fixed windows (440x680 with no control bars) - requires hsbc.js// url - URLfunction fixedWindow(url) {	fw=window.open(url, "fw", "scrollbars,status=yes,HEIGHT=440,WIDTH=680");    fw.focus();}//-->