<!--
// this function checks to be sure the rest of the frames are loaded.
function CheckFrames() {
/*
  //debugging - alert ("Entering CheckFrames()");
  var strIndexDirectory; // directory that IndexPageName is in
	var strIndexPageName; // name of page containing server-side parsing code
	var strRoot;          // base path (after host name)
	var strPage;          //
	var strPagePath;
	var strPagePathRoot;
	var strURL;
	var indexRoot;
	var divCounter;
	var strTemp;          // temp variable for various funcs
	var numRootLevels;
	var numPageLevels;
	var i;

	// global information
	strIndexDirectory = "main/";
	strIndexPageName = "index.asp";

	// check which host the page is running on
	//DEBUG - alert (location.host);
	if (location.hostname == "www.nsla.org") {
		strRoot = "";
	}
	else if (  // current software's site
			(location.hostname == "srv1200")
			|| (location.host == "216.82.146.42")
			|| (location.host == "intranet.currentsoftware.com")
			|| (location.host == "cs.foundationinnovations.com")) {
		strRoot = "nsla/";
	} else {  // default case-- assume installed at root
	  strRoot = "";
	}
	//debugging - alert ("strRoot: " + strRoot);
	// get the page and path, w/o the leading '/'
	strPagePath = location.pathname + location.search;
	strPagePath = strPagePath.substr(1);
	// debugging - 	alert ("strPagePath: " + strPagePath);

	// page relative to root
	strPage = strPagePath.slice (strRoot.length,strPagePath.length);
	// debugging -	alert ("strPage: " + strPage);

	strPageRoot = strIndexDirectory;

  // find the number of root levels
  strTemp = strIndexDirectory + strIndexPageName;
  numRootLevels = numChars (strTemp,'/');

  // find the number of page levels
  strTemp = strPage;
  numPageLevels = numChars (strTemp,'/');
  //debugging -   alert ("numPageLevels: " + numPageLevels + "; numRootLevels: " + numRootLevels);
  // check index page name in relation to root
  if (numPageLevels == numRootLevels) { // same level
    if (strRoot == strPageRoot){ // same directory
      // do nothing
    }
    else {   // different directory
      // prepend with '..'
      strPage = '../' + strPage;
    }
  }
  else {    // different levels
    for ( i=0; i<numRootLevels; i++ ) {   // go to the application base and build up
      strPage = '../' + strPage;
    }
  }
	// add appropriate prefix to page

//	alert ("strPage=" + strPage
//	  + "\nstrPagePathRoot=" + strPagePath
//	  + "\nstrRoot=" + strRoot);
	

	strURL = location.protocol + "//" + location.hostname + "/" + strRoot + strIndexDirectory + strIndexPageName + "?page=" + escape(strPage);

	if ((window.name != "mainFrame") || (window.parent.parent != window.parent))
	{ //debugging - 	alert ('Redirecting to ' + strURL);
		window.top.location.replace(strURL);
	}
*/
}

function numChars (strPassed,strChar) {
  var numChars=0,strTemp;
  strTemp = strPassed;

  if (strTemp.indexOf(strChar)>0) { // there is a '/'
    while (strTemp.length>0) {  // there is data to process
      if (strTemp.indexOf(strChar)>0) { // still '/' left
        strTemp = strTemp.substr(strTemp.indexOf('/')+1);
        numChars++;
      }
      else {        // no '/' left
        strTemp = "";
      }
    }
  }
  return parseInt(numChars);
}
//-->
