var cookieName = 'ISAAWARDS_ViewMode' ;	function SetPageVariables() {	// set the following variables :	// this.IE50  - browser = IE 5.0 - 5.49	// this.IE55up - browser = IE 5.5+	// this.Mozzies - browser = netscape 7+ and mozilla family	// this.BrowserIsCompatible - Site is designed for IE 5+ & Netscape 7+ & Mozillas	// this.PageMode - what mode is this page? G = Graphic, P = Printer Friendly, T = Text	// browser compatibility ...	// only intersted in IE 5+, NS7+ and Mozzie family.	var agent = navigator.userAgent.toLowerCase();	var version = parseInt(navigator.appVersion);	var appVer = navigator.appVersion.toLowerCase();	var iePos  = appVer.indexOf('msie');	var ieVer = appVer.substring(iePos+5,appVer.indexOf(';',iePos)) ;	Opera = (agent.indexOf('opera') != -1) ;	this.IE50 = ( ( iePos !=-1 ) && ( ( parseFloat(ieVer) >=5.0 ) &&  ( parseFloat(ieVer) <5.5 ) ) && !( Opera ) ) ;	this.IE55up = ( ( iePos !=-1 ) && ( parseFloat(ieVer) >=5.5 ) && !( Opera ) ) ;	NS6 = (agent.indexOf('netscape/6') !=-1 ) || (agent.indexOf('netscape6') !=-1 ) ;	NSC = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)) && (version >=5 ) );		this.Mozzies = ( NSC && !( NS6 || Opera ) ) ;	this.BrowserIsCompatible = ( IE50 || IE55up || Mozzies ) ;	// set PageMode for the menu hover mimic code.	var pmvalue = ( BrowserIsCompatible ) ? 'R' : 'T' ;	var docloc = window.location.href.toLowerCase() ;	var ppf = ( docloc.indexOf('&ppf') != -1 ) ;	if ( ppf )	{		pmvalue = 'P' ;	}	else if ( document.cookie )	{		index = document.cookie.indexOf(cookieName);		if ( index >=0 ) 		{			pmvalue = document.cookie.substr( index + 14 , 1 ) ;		}	} 		this.PageMode = pmvalue ;	return true ;}// set global variables ..SetPageVariables() ;// switch page mode .. for switching between graphic and text mode ..function SwitchPageMode( pmode ) {	var cookieName = 'ISAAWARDS_ViewMode' ; 	var cexpire = new Date() ;	cexpire.setFullYear( cexpire.getFullYear() +1 ) ; 	pgmode = ( BrowserIsCompatible ) ? pmode : 'T' ;	document.cookie = cookieName + '=' + pgmode + '; expires=' + cexpire.toGMTString() + '; path=/;' ; 	window.location.reload( true )}function get_cookie ( cookie_name ){    // http://www.thesitewizard.com/javascripts/cookies.shtml    var cookie_string = document.cookie ;    if (cookie_string.length != 0) {        var cookie_value = cookie_string.match (                        '(^|;)[\s]*' +                        cookie_name +                        '=([^;]*)' );        return decodeURIComponent ( cookie_value[2] ) ;    }    return '' ;}/* capture enter event - for search box */function isEnterPressed( keyevent , obj ) {	// keyboard detection ...	if(window.event) // IE  	{ 		keynum = keyevent.keyCode;  	}	else if(keyevent.which) // Netscape/Firefox/Opera  	{  		keynum = keyevent.which;  	}		if ( ( keynum == 13 )  || ( obj.type == "button" ) )	{		if ( window.event ) 		{			// stops the form from being submitted ...   (IE code)			window.event.cancelBubble = true;				window.event.returnValue = false;		}		else		{			// stops the form from being submitted ... (Netscape/Firefox/Opera/etc code)			keyevent.stopPropagation() ;			keyevent.preventDefault();		}			return true ;	}	else	{		return false ;	}}// next three functions are for the search facility.// =================================================================function trimspaces(aStr) {	return aStr.replace(/^\s{1,}/, "").replace(/\s{1,}$/, "")}function SearchTermOk( qstr , search_hint ) {	var regExp1 = /\bfield\b/i; 		//used to test for reserved word field in query string	var regExp2 = /[(,),<,>,\[,\]]/; 		//used to test for reserved char(s) in the query string	var str = trimspaces( qstr );	if ( str == "" )	{		alert( "Please enter something to search for." );		return 1 ;	} 	else 	if ( str == search_hint )	{		alert( "Please enter something to search for." );		return 1 ;		}	else		{		if ( typeof regExp1.source != 'undefined' ) 		{ 	//supports regular expression testing			if ( regExp1.test( str ) || regExp2.test( str ) ) 			{				var alrt = "Please note that you can not include:\n\n";				alrt += "The reserved word 'field'\n";				alrt += "The characters comma, [, ], (, ), < or >\n\n";				alrt += "in your search query!";				alert( alrt );				return 2 ;			}			else			{				// search term is reasonably ok ...				return 0 ;			}		}		else		{			alert( "Unsupported browser function - search cannot proceed.\n\nPlease use a different browser." ) ;			return 3 ;		}	}}function searchSite( keyevent, obj, searchHint ) {	if ( isEnterPressed( keyevent , obj ) )	{		if ( ( obj.name == 'siQuery' ) || ( obj.name == 'BTNSearch' ) )		{			var qr = SearchTermOk( document.forms[0].siQuery.value , searchHint ) ;			var qs = document.forms[0].siQuery.value ;		}		else if ( ( obj.name == 'siQuery2' ) || ( obj.name == 'BTNSearch2' ) )		{			var qr = SearchTermOk( document.forms[0].siQuery2.value , searchHint ) ;			var qs = document.forms[0].siQuery2.value ;		}		if ( qr == 0 ) 		{		  		window.open( "/Sectors/FDII/FDII.nsf/Search?OpenForm&Query=" + trimspaces( qs ) , "_top" ) ;		}	}}// next two functions are for the additional options facility at the bottom of the inner pages.// =================================================================function OpenPrintPreviewWindow() { // open the current page in another window and strip off the skin - making the page printer friendly .. // window.open( location.pathname + location.search + '&PPF' + location.hash , '_blank' ) ; window.open( document.location + '&PPF=T', '_blank' ) ;}function bookmarkSite(title, url){ 	if (window.sidebar) {		window.sidebar.addPanel(title, url, "");	} else if(window.opera && window.print) {		var elem = document.createElement('a');		elem.setAttribute('href',url);		elem.setAttribute('title',title);		elem.setAttribute('rel','sidebar');		elem.click();	} else if(document.all) {		window.external.AddFavorite(url, title);	} }function validateLogin( ) {	if (document.getElementById('Username').value == "") {		alert('Please supply a User Name to login.');		return false;	}	if (document.getElementById('Password').value == "") {		alert('Please supply a Password to login.');		return false;	}}  //end function validateLoginfunction openPopup( srcfile ) {	var wTmp = window.open(srcfile, "_puPodcast", "width=500,height=275,left=55,top=50,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no" );	wTmp.focus();}