/******************************************************************************** * JavaScript library for use in Czarnowski intranet applications * * Created: 20030915 SB * * Contents: * *   function getURLThruNSF(inputURL) * ********************************************************************************//***************************************************************************** *  function getURLThruNSF(inputURL) ***************************************************************************** * *  From the current URL detects whether or not the link includes ".nsf". *  If so, returns everything up to and including ".nsf".  If not, returns current URL. * *  20030915: SB created function *  *****************************************************************************/function getURLThruNSF(inputURL) {   var dotNSFPos = -1;   var uCaseURL = inputURL.toUpperCase();      dotNSFPos = uCaseURL.indexOf('.NSF');      //Check inputURL.  If ".nsf" not found, return url as is  if ((inputURL.length == 0) || (dotNSFPos == -1))	return inputURL;  else      return inputURL.substring(0, dotNSFPos + 4)   } 