function AddFavorite(){
if (document.all) {
window.external.addFavorite(window.location.href, document.title);
}
else if (window.sidebar) {
window.sidebar.addPanel(document.title, window.location.href, "");
}
}
function stltree_isNull(obj){
if (typeof(obj) == 'undefined')
return true;
if (obj == undefined)
return true;
if (obj == null)
return true;
return false;
}
//取得Tree的级别,1为第一级
function stltree_getTreeLevel(e) {
var length = 0;
if (!stltree_isNull(e)){
if (e.tagName == 'TR') {
length = parseInt(e.getAttribute('treeItemLevel'));
}
}
return length;
}
function stltree_closeAllFolder(){
if (stltree_isNodeTree){
var imgCol = document.getElementsByTagName('IMG');
if (!stltree_isNull(imgCol)){
for (x=0;x 0){
for (i=0;i<=index;i++){
stltree_displayChildren(collection[i]);
}
}
}
var stltree_isNodeTree = true;
Function str2asc(strstr)
str2asc = hex(asc(strstr))
End Function
Function asc2str(ascasc)
asc2str = chr(ascasc)
End Function