<!--
var ie4 = false;
var ns4 = false;

if( (navigator.appName.indexOf("Microsoft") != -1 && (parseInt(navigator.appVersion) >= 4 ) ) ||
    (navigator.appName.indexOf("Netscape") == 0 && (navigator.appVersion >= 5 ) ) )
{
   ie4 = true;
   ns4 = false;
}
else
if( navigator.appName.indexOf("Netscape") != -1 && (parseInt(navigator.appVersion) <= 4 ) )
{
   ns4 = true;
   ie4 = false;
}

//===========================================================================
// Function:
//		validBrowser
//
// Description:
//		This function checks to see if the user is using either Internet 
// Explorer v4.0+ or Netscape v4.0+.  If the user is not then we will redirect
// the user to a page to tell them to upgrade their browser.
//===========================================================================
function validBrowser( )
{
	// See if the user is using Netscape or IE 4 or greater
	if( ( (navigator.appName.indexOf("Microsoft") != -1)  || 
			(navigator.appName.indexOf("Netscape")  != -1)) && 
		 (parseInt(navigator.appVersion) >= 4 ) )
		return( true );
	
	return( false );
} // validBrowser

//===========================================================================
// Function:
//		getParam
//
// Description:
//		Gets the specified parm out of the query string.  Note that this 
// function expects that the query String was encoded using the Java
// escape function.
//===========================================================================
function getParam( string, parm )
{
    var startPos = string.indexOf( (parm + "=") );
    if (startPos > -1) 
    {
        startPos = startPos + parm.length + 1;
        var endPos = string.indexOf("&", startPos);
        if (endPos == -1)
            endPos = string.length;
        return unescape( string.substring( startPos, endPos ) );
    }
    return '';
} // getParam


//===========================================================================
// Function:
//		findObject
//
// Description:
//		Finds the specified object so that we don't have to hard code browser
// dependent crap to get the objects.
//===========================================================================
function findObject( obj, doc )
{
	var c, foundObj;
							
	// Check to see that we have the document.
	if( !doc )
		doc = document;
							
	if( (c = obj.indexOf("?")) > 0 && top.frames.length )
	{
		doc = top.frames[obj.substring( c+1 )].document;
		obj = obj.substring(0, c);
	} // if
							
	if( !(foundObj = doc[obj]) && doc.all )
		foundObj = doc.all[obj];
								
	var i;
	for( i = 0; !foundObj && i < doc.forms.length; ++i )
		foundObj = doc.forms[i][obj];
								
	for( i = 0; !foundObj && doc.layers && i < doc.layers.length; ++i )
		foundObj = findObject( obj, doc.layers[i].document );
							
	return foundObj;
} // findObject


//-------------------------------------------------------------------
// Trim functions
//   Returns string with whitespace trimmed
//-------------------------------------------------------------------
function LTrim(str){
	for(var i=0;str.charAt(i)==" ";i++);
	return str.substring(i,str.length);
	}
function RTrim(str){
	for(var i=str.length-1;str.charAt(i)==" ";i--);
	return str.substring(0,i+1);
	}
function Trim(str){return LTrim(RTrim(str));}
// -->
