1 function fileName(src) {
2 var array = src.split('/');
3 return array[array.length -1];
6 function currentSrcFileName(id) {
7 var currentSrc = document.getElementById(id).currentSrc;
8 return fileName(currentSrc);
11 function currentSrcFileNameNoParams(id) {
12 var currentSrc = document.getElementById(id).currentSrc;
13 var name = fileName(currentSrc).split('?');