<!--
function ContentInString(TestString)
{
	if (TestString.replace(/ /g, '').length == 0) return false;
	else return true;
}
function EmailAddressValid(EmailAddress)
{
	// A selection of regular expressions was tried, from simple to horrendously complex.
	// None of these worked.  The approach below simply checks the number of parts present.
	// Note that it will accept @. as a minimal valid address.  It needs to count lengths.
	//var reEmail = new RegExp("^(\w+\.)*(\w+)@(\w+\.)+([a-zA-Z]{2,4})$");
	//alert ('TestResult = ' + reEmail.test(sEmail) + '\nTested: ' + sEmail);
	//@"\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*",
	var aPartsMajor = EmailAddress.split("@");
	if (aPartsMajor.length != 2) return false;
	if (aPartsMajor[0].length == 0) return false;
	var aPartsMinor = aPartsMajor[1].split(".");
	if (aPartsMinor.length < 2) return false;
	if (aPartsMinor.length > 5) return false;
	for (var nIndex = 0; nIndex < aPartsMinor.length; nIndex++)
		if (aPartsMinor[nIndex].length < 1) return false;
	return true;
}
function LaunchHelpSystem()
{
	LoadWindow('LaunchHelp.asp','11','470','600','centre',true,'scrollbars,resizable');
	return false;
}
function NewWindow(sURL, sWindowName, nWidth, nHeight, bScrollbars, sLocation, bFocusTo)
{
	var oWin = null;
	var nLeft = 20, nTop = 0;
	var nRight = (screen.width) ? (screen.width - nWidth) : 640 - nWidth;
	if (nRight < 0) nRight = 0;
	var nBottom = (screen.height) ? (screen.height - nHeight) : 480 - nHeight;
	if (nBottom < 0) nBottom = 0;

	switch (sLocation.toLowerCase())
	{
		case "center": // just in case a dyslexic uses it ...
		case "centre":
			nLeft = (screen.width) ? (screen.width - nWidth) / 2 : 100;
			nTop = (screen.height) ? (screen.height - nHeight) / 2 : 100;
			break;
		case "bottomleft":
			nLeft = 0;
			nTop = nBottom;
			break;
		case "bottomright":
			nLeft = Right
			nTop = nBottom;
			break;
		case "topleft":
			nLeft = 0;
			nTop = 0;
			break;
		case "topright":
			nLeft = nRight;
			nTop = 0;
			break;
	}
	var sSettings = 'width = ' + nWidth + ', height=' + nHeight
				  + ', left = ' + nLeft + ', top = ' + nTop 
				  + ', scrollbars = ' + bScrollbars 
				  + ', location = no, directories = no, status = no, menubar = no, toolbar = no, resizable = yes';
	win = window.open(sURL, sWindowName, sSettings);
	if (bFocusTo) {if (win.focus) {win.focus();}}
}
function LoadWindow(sURL, sWindowName, nWidth, nHeight, sPlacement, bFocusTo, sFeaturesOn)
{
	sFeaturesOn = ',' + sFeaturesOn.toLowerCase() + ',';
	var oWin = null;
	var nLeft = 20, nTop = 0;
	var nRight = (screen.width) ? (screen.width - nWidth) : 640 - nWidth;
	if (nRight < 0) nRight = 0;
	var nBottom = (screen.height) ? (screen.height - nHeight) : 480 - nHeight;
	if (nBottom < 0) nBottom = 0;

	switch (sPlacement.toLowerCase())
	{
		case "bottomleft":
			nLeft = 0;
			nTop = nBottom;
			break;
		case "bottomright":
			nLeft = Right
			nTop = nBottom;
			break;
		case "topleft":
			nLeft = 0;
			nTop = 0;
			break;
		case "topright":
			nLeft = nRight;
			nTop = 0;
			break;
		case "center": // just in case a dyslexic uses it ...
		case "centre":
		default:
			nLeft = (screen.width) ? (screen.width - nWidth) / 2 : 100;
			nTop = (screen.height) ? (screen.height - nHeight) / 2 : 100;
			break;
	}
	
	var sSettings = 'width = ' + nWidth + ', height=' + nHeight
				  + ', left = ' + nLeft + ', top = ' + nTop;
	sSettings += ',scrollbars='; if(sFeaturesOn.indexOf(',scrollbars,') < 0) sSettings += 'false'; else sSettings += 'true';
	sSettings += ',location='; if(sFeaturesOn.indexOf(',location,') < 0) sSettings += 'no'; else sSettings += 'yes';
	sSettings += ',directories='; if(sFeaturesOn.indexOf(',directories,') < 0) sSettings += 'no'; else sSettings += 'yes';
	sSettings += ',status='; if(sFeaturesOn.indexOf(',status,') < 0) sSettings += 'no'; else sSettings += 'yes';
	sSettings += ',menubar='; if(sFeaturesOn.indexOf(',menubar,') < 0) sSettings += 'no'; else sSettings += 'yes';
	sSettings += ',toolbar='; if(sFeaturesOn.indexOf(',toolbar,') < 0) sSettings += 'no'; else sSettings += 'yes';
	sSettings += ',resizable='; if(sFeaturesOn.indexOf(',resizable,') < 0) sSettings += 'false'; else sSettings += 'true';

	win = window.open(sURL, sWindowName, sSettings);
	if (bFocusTo) {if (win.focus) {win.focus();}}
}
function ResizeElements()
{
	var nWidth = 0, nHeight = 0;
	if	(typeof( window.innerWidth ) == 'number')
	{
    	//Non-IE
    	nWidth = window.innerWidth;
    	nHeight = window.innerHeight;
		// cater for the vagaries of height returned
		var bFound = false;
		var nDisplace = 0;
		var sAgent = navigator.userAgent.toLowerCase();
		if (sAgent.indexOf('firefox') > -1) {bFound = true; nDisplace = -25;};
		if (sAgent.indexOf('firebird') > -1) {bFound = true;};
		if (sAgent.indexOf('netscape') > -1) {bFound = true;};
		if (sAgent.indexOf('opera') > -1) {bFound = true; nDisplace = -13};
		// everything claims to be Mozilla, but having eliminated the others we assume it to be Mozilla
		if (!bFound) nDisplace = -25;
		nHeight = nHeight + nDisplace;
  	}
	else
	{
		if (document.documentElement
			&& (document.documentElement.clientWidth || document.documentElement.clientHeight) )
		{
			//IE 6+ in 'standards compliant mode'
			nWidth = document.documentElement.clientWidth;
			nHeight = document.documentElement.clientHeight;
		}
		else
		{	
			if( document.body && ( document.body.clientWidth || document.body.clientHeight ) )
			{
				//IE 4 compatible
				nWidth = document.body.clientWidth;
				nHeight = document.body.clientHeight;
  			}
  		}
	}
	nHeight = nHeight - 150; // reduce by the height of the two fixed banners
	var nMenuWidth = 0;
	try
	{
		var oMenu = window.document.getElementById('MenuCell');
		oMenu.height = nHeight;
		nMenuWidth = oMenu.width;
	}
	catch (eMenu) {}
	if (nHeight < 200) nHeight = 200;
	try
	{
		var oBody = window.document.getElementById('BodyCell');
		oBody.height = nHeight;
		oBody.width = nWidth - nMenuWidth;
	}
	catch (eBody) {}
}
function newImage(arg)
{
	if (document.images)
	{
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages()
{
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

function clearIt(theText)
{
     if (theText.value == theText.defaultValue)
	 {
         theText.value = ""
     }
 }

var preloadFlag = false;
function preloadImages()
{
	if (document.images)
	{
		nav3_07 = newImage("images/nav3-07.gif");
		nav3_08 = newImage("images/nav3-08.gif");
		nav3_09 = newImage("images/nav3-09.gif");
		nav3_10 = newImage("images/nav3-10.gif");
		nav3_11 = newImage("images/nav3-11.gif");
		nav3_12 = newImage("images/nav3-12.gif");
		preloadFlag = true;
	}
}
function SetCursorDefault(oElement)
{
	oElement.style.cursor="default";
}
function SetCursorHand(oElement)
{
	oElement.style.cursor="pointer";
}
-->


