/**********************************************************************
	BioWare Javascript File
	
	File: HMBio_Other.js
	
	Description: Functions and Variables called by HMBio_Arrays.js, and other misc code
	
	Created: Robin Mayne, April 11, 2002 Copyright 2002 BioWare Corp.
***********************************************************************	
	Version: 0.0.1
	
	Version History:
		0.0.1 / 11.04.02 / Created / RM

***********************************************************************/

function writeRootPath() { 								// Called by HM_Arrays.js and rollover.js to dynamically 
														// populate the URL parameters
	var strRootPath										// with the URL path. This allows 
	strRootPath = "http://forums.bioware.com"				// dynamic control over the path to the 
	return(strRootPath);								// root of the site. 
}


function hideFormLayers() {
	if (!HMBio_NS6) {		// NS6 displays form elements correctly
		// test for each known form layer
		if (typeof frmlogin == "number"){
			// loop through each instance of the layer, and hide it
			for (i = 1; i < (frmlogin +1); i++) { 
				eval("hideLayer(getLayer('frmlogin" + i + "'))");
			}
		}
	}
}

function showFormLayers() {
	if (!HMBio_NS6) {
		// test for each known form layer
		if (typeof frmlogin == "number"){
			// loop through each instance of the layer, and show it
			for (i = 1; i < (frmlogin +1); i++) { 
				eval("showLayer(getLayer('frmlogin" + i + "'))");
			}
		}
	}
}