When using Java Scrip as the scripting language, is there a string "search" function that can be used inside <% %>?
(All that I can find in the literature are examples using the default VB language).

EXAMPLE (which does not work)
var STR = "Hello there";
var N = search(STR, "there");

Also, there must be whole host of related string functions. Where can I read about them?