<script type="text/javascript"> = function (str) { for (var i = 0; i < ; i++) { if (str == this[i]) { return i; } } return -1; } </script>