function newWindow(strUrl)

//------------------------------------------------------------------------------

// Created by: Eric Keller

// Creation Date: 02/08/2003

// Last Modified By:

// Last Modifed Date:

// Notes: Opens a new window using defined size and location

// Parameters: a valid URL string

//

// Returns: N/A

//------------------------------------------------------------------------------

{

	var topPos = 30;

	var leftPos = 30;

	var widthSize = 780;

	var heightSize = 520;

	var strBrowserVendor = getBrowserVendor();



	if (strBrowserVendor.toLowerCase() == "microsoft")

	{

		var objWindow = window.open(strUrl,"","width=" + widthSize + ", height=" + heightSize +

			", left=" + leftPos + ", top=" + topPos + 

			", resizable=yes, scrollbars=yes, menubar=yes, status=yes, toolbar=yes");

	}

	else

	{

		var objWindow = window.open(strUrl,"","width=" + widthSize + ", height=" + heightSize +

			", screenx=" + leftPos + ", screeny=" + topPos +

			", resizable=yes, scrollbars=yes, menubar=yes, status=yes, toolbar=yes");

	}



}







function footerText()

//------------------------------------------------------------------------------

// Created by: Eric Keller

// Creation Date: 08/31/2002

// Last Modified By:

// Last Modifed Date:

// Notes: Footer text found on each page

// Parameters: N/A

//

// Returns: N/A

//------------------------------------------------------------------------------

{

	document.write('<hr>This site was designed to work with MS Internet Explorer 5.5 and higher<br>');

	document.write('as well as Netscape 6.00 and higher. Other browsers may produce unpredictable results.<br>');

	document.write('Design and Development by Eric Keller, Sept. 2001 <a class="normalsmall" target="_blank" href="http://www.gwizhost.com">http://www.gwizhost.com</a><br>');

	//document.write('Copyright: Sept. 2001');



}



function getOsType() 

//------------------------------------------------------------------------------

// Created by: Eric Keller

// Creation Date: 05/08/2002

// Last Modified By:

// Last Modifed Date:

// Notes: Determine the OS that the browser is using

// Process: Use the appVersion property of the navigator object

//------------------------------------------------------------------------------

{



	if (navigator.appVersion.indexOf("Win") != -1)

	{

		return "Windows";

	}



	if (navigator.appVersion.indexOf("Mac") != -1)

	{

		return "Macintosh";

	}



	if (navigator.appVersion.indexOf("X11") != -1)

	{

		return "Unix";

	}



}





function getBrowserName () 

//------------------------------------------------------------------------------

// Created by: Eric Keller

// Creation Date: 05/08/2002

// Last Modified By:

// Last Modifed Date:

// Notes: Determine the Name of the the browser being used

// Process: Use the appName property of the navigator object

//------------------------------------------------------------------------------

{

	return navigator.appName;

}





function getBrowserVendor ()

//------------------------------------------------------------------------------

// Created by: Eric Keller

// Creation Date: 05/08/2002

// Last Modified By:

// Last Modifed Date:

// Notes: Determine the vendor that created the browser

// Process: Use the appVersion property of the navigator object for Microsoft

//		and the appName property of the navigator object for Netscape

//------------------------------------------------------------------------------

{

	if (navigator.appVersion.indexOf("MSIE") != -1)

	{

		return "Microsoft";

	}



	if (navigator.appName.indexOf("Netscape") != -1)

	{

		return "Netscape";



	}

	else

	{

		return "Other"

	}

}





function getBrowserVersion ()

//------------------------------------------------------------------------------

// Created by: Eric Keller

// Creation Date: 05/08/2002

// Last Modified By:

// Last Modifed Date:

// Notes: Determine the version of the browser that is being used

// Process: Use the appVersion property of the navigator object

//------------------------------------------------------------------------------

 {	//----------------------------------------------------------------------

	// If Microsoft Browser

	//----------------------------------------------------------------------

	if (getBrowserVendor() == "Microsoft")

	{

		if (navigator.appVersion.indexOf("MSIE 5") != -1)

		{

			return "5.xx";

		}



		else if (navigator.appVersion.indexOf("MSIE 6") != -1)

		{

			return "6.xx";

		}

		

		else

		{

			return "< 5.00";

		}

	}



	//--------------------------------------------------------------------------

	// If Netscape Browser

	//--------------------------------------------------------------------------

	if (getBrowserVendor() == "Netscape")

	{

		var strVerString = navigator.appVersion

		var dblVersion = strVerString.substring(0, 4)



		if (navigator.userAgent.indexOf("Netscape7") != -1)

		{

			return "7.00";

		}



		if (navigator.userAgent.indexOf("Netscape6") != -1)

		{

			return "6.00";

		}



		if (navigator.userAgent.indexOf("Netscape5") != -1)

		{

			return "< 6.00";

		}



		if (dblVersion < 5)

		{

			// old navigator browser

			return "< 6.00";

		}

		else

		{

			return dblVersion;

		}

	}

}





function getPlatform() 

//------------------------------------------------------------------------------

// Created by: Eric Keller

// Creation Date: 05/08/2002

// Last Modified By:

// Last Modifed Date:

// Notes: Determine the platform that the browser is running on (i.e. WIN32)

// Process: Use the platform property of the navigator object

//------------------------------------------------------------------------------

{

	return navigator.platform;

}





function browserInfo() 

//------------------------------------------------------------------------------

// Created by: Eric Keller

// Creation Date: 05/08/2002

// Last Modified By:

// Last Modifed Date:

// Notes: Create the constructor for the BrowserInfo method

// Process: Use the this statement to pass values to istself

//------------------------------------------------------------------------------

{

	this.OpSys = getOsType();

	this.BrowserName = getBrowserName();

	this.BrowserVendor = getBrowserVendor();

	this.BrowserVersion = getBrowserVersion();

	this.Platform = getPlatform();

}





function browserTester()

//------------------------------------------------------------------------------

// Created by: Eric Keller

// Creation Date: 05/08/2002

// Last Modified By:

// Last Modifed Date:

// Notes: Test the current browser and display an alert if it is outside

//		of the acceptable browser type or version.

// Process: Use the functions created above

//------------------------------------------------------------------------------

{

	var objBrowserInfo = new browserInfo();

	var intFlag = 1;



	if (objBrowserInfo.BrowserVendor == "Microsoft" &&

		objBrowserInfo.BrowserVersion.charAt(0) == "<")

	{

		intFlag = 0;

	}



	if (objBrowserInfo.BrowserVendor == "Netscape" &&

		objBrowserInfo.BrowserVersion.charAt(0) == "<")

	{

		intFlag = 0;

	}



	if (intFlag == 0)	//Invalid browser

	{

		var strAlertMsg = "Warning: The system has determined that the browser currently in use" + "\n" +

		"is either outdated or not standard. This web site uses the latest web" + "\n" +

		"technology and may produce unpredictable results if you are using a" + "\n" + 

		"browser other than Microsoft Internet Explorer 5.5 and higher," + "\n" +  

		"or Netscape Navigator 6.0 and higher." + "\n" + "\n" + 

		"Operating System: " + objBrowserInfo.OpSys + "\n" + 

		"Browser Name: " + objBrowserInfo.BrowserName + "\n" + 

		"Vendor: " + objBrowserInfo.BrowserVendor + "\n" + 

		"Version: " + objBrowserInfo.BrowserVersion + "\n" + 

		"Platform: " + objBrowserInfo.Platform + "\n" + "\n" + 

		"You can download the latest browser for free at www.microsoft.com" 

		

		alert (strAlertMsg);

	}

}





