indexOf() is what you want

eg:
Code:

var strTemp = "Mark Sreeves";
document.write(strTemp.indexOf("r"));
http://www.irt.org is an excelent resource and should answer 96.7% of your javascript problems

(you can even download the whole site to your hard drive for browsing of line)