hi,
sowas?
<html>
<head>
</head>
<body>
<script type="text/javascript">
<!--
var pos = new Array();
var temp = 0;
var str = "Auf der Mauer und auch auf der Lauer";
str = str.toLowerCase();
var sStr = "au";
while(str.indexOf(sStr,temp) != -1) {
temp = str.indexOf(sStr,temp);
pos[pos.length] = temp;
temp += sStr.length;
}
document.write(pos.join(", "));
//-->
</script>
</body>
</html>