
function RQsubmitTicker() {

   var userInput = escape( document.quoteBox.tickerInput.value );

   if( (userInput == null) || (userInput == "") ) {
      return false;
   }
   else {
      var quoteURL;

      if( (userInput.length == 5) && ( (userInput.charAt(4) == "X") || (userInput.charAt(4) == "x") ) ) {
         quoteURL = "/funds/Tearsheet.jhtml?tkr=" + userInput.toUpperCase();
      }
      else {
         quoteURL = "/finance/mktguideapps/compinfo/CompanyTearsheet.jhtml?tkr=" + userInput;
      }

      // Do the lookup
      window.location = quoteURL;

      // Form should not submit since we are taking care of everything in the javascript
      return false;

   }
}

