rem: str.replace(re, '/');  var ch = str.lastIndexOf('/'); 
add: ch = str.lastIndexOf('/');  if(ch == -1) ch = str.lastIndexOf('\\'); 
context: function updateFilename(elem){  var str = elem.value;  var re = /\\/gi;  str.replace(re, '/');   var ch = str.lastIndexOf('/');  var e = document.getElementById('filename');  if(e)    e.value = str.substring(ch + 1);  var d = document.getElementById('filename-div');  if(d)    d.innerHTML = str.substring(ch + 1);}
meta: 1857	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1857/d8ccff0c29b4d152e8322181e291aacf4faf8e34/menulayer.js/buggy/static/javascripts/menulayer.js