version 1.51, 2002/05/13 19:18:29
|
version 1.52, 2002/05/15 20:44:24
|
Line 206 function setstatus(tp,bt) {
|
Line 206 function setstatus(tp,bt) {
|
endsend(); |
endsend(); |
} |
} |
|
|
|
function is_editable_resource (url) { |
|
var Chunks = url.split('.'); |
|
var tmp = Chunks[Chunks.length-1]; |
|
if ((Chunks.length > 1) && (Math.floor(tmp) == tmp)) { |
|
return true; |
|
} |
|
return false; |
|
} |
|
|
function cstrgo(currenturl,defaulturl) { |
function cstrgo(currenturl,defaulturl) { |
windowcheck(); |
windowcheck(); |
var url; |
var url; |
if (currenturl == null || currenturl == '') { |
if ((currenturl == null) || |
|
(currenturl == '') || |
|
(! is_editable_resource(currenturl))) { |
url = defaulturl; |
url = defaulturl; |
} else { |
} else { |
url = currenturl; |
url = currenturl; |