<!--
var is_nav4up;
var is_nav6up;
var is_ie4up;

// Get browser version and populate global variables
	
	function GetBrowserVersion() {
		var agt=navigator.userAgent.toLowerCase();
	
		// Browser Version
	    var is_major = parseInt(navigator.appVersion);
	    var is_minor = parseFloat(navigator.appVersion);
	
	    // Note: Opera and WebTV spoof Navigator.  We do strict client detection.
	    // If you want to allow spoofing, take out the tests for opera and webtv.
	    var is_nav  = ((agt.indexOf('mozilla') != -1) &&
			(agt.indexOf('spoofer') == -1) &&
		    (agt.indexOf('compatible') == -1) &&
		    (agt.indexOf('opera') == -1) &&
		    (agt.indexOf('hotjava') == -1) &&
		    (agt.indexOf('webtv') == -1) );
	    		    	
	    var is_ie   = (agt.indexOf("msie") != -1);
	    
	    is_nav4up = (is_nav && (is_major >= 4));
	    is_nav6up = (is_nav && (is_major >= 6));   
	    is_ie4up  = (is_ie  && (is_major >= 4));
	}
	
function OpenWindow(sUrl, nWidth, nHeight, sResizable)
{
	/*	
	Opens a window containing page 'sURL', at the width and height given
	The window always opens without a toolbar, menubar or location
	User can specify if it can be resized...
	*/

	var sOptions = "";
	
	//Make sure that parameter values are correct
	if (sUrl+""=="") return (0);
	if (isNaN(parseInt(nHeight))) return (0);
	if (isNaN(parseInt(nWidth))) return (0);
	
	//Set the options for height and width
	sOptions = "height="+parseInt(nHeight)+",width="+parseInt(nWidth);
	//Add the other window options
	sOptions = sOptions+",scrollbars=yes,status=yes,resizable=" + sResizable + ",toolbar=no,menubar=no,location=no"	
	
	//Open the window
	var newwin = window.open(sUrl,null,sOptions);
	
	return newwin;
}

function OpenModalWindow(sUrl, nWidth, nHeight)
{
	/*	
	Opens a modal window containing page 'sURL', at the width and height given
	The window always opens without a toolbar, menubar or location
	*/
	
	//Make sure that parameter values are correct
	if (sUrl+""=="") return (0);
	if (isNaN(parseInt(nHeight))) return (0);
	if (isNaN(parseInt(nWidth))) return (0);
	
	//Set the features
	var sFeatures="dialogHeight: " + nHeight + "px; dialogWidth: " + nWidth + "px; "
	sFeatures += "help:no; resizable:no; scroll:no; status:no; unadorned:yes";

	//Open the window
	var returnval = window.showModalDialog(sUrl,null,sFeatures);
	
	return returnval;
}

// *********************************************************
// Centre Window on screen- Richard Gosling 28/03/2002
// *********************************************************

function CentreWin(){
	//for popup windows
	ScreenW = (screen.availWidth)
	ScreenH = (screen.availHeight)
	WinW = 500
	WinH = 480
	
	LeftPosition =(ScreenW/2) - (WinW/2);
	TopPosition =(ScreenH/2) - (WinH/2);
	window.moveTo(LeftPosition,TopPosition);
}

//-->