var url = this.location.href
var pos = url.lastIndexOf("/");
if(pos == -1){
pos = url.lastIndexOf("\\")
}
var filename = url.substr(pos +1);
var url = this.location.href
var pos = url.lastIndexOf("/");
if(pos == -1){
pos = url.lastIndexOf("\\")
}
var filename = url.substr(pos +1);