<script language=vbs>
sub onShowDepartment()
id = window.showModalDialog("/systeminfo/BrowserMain.jsp?url=/hrm/company/DepartmentBrowser.jsp")
if Not isempty(id) then
if id(0)<> 0 then
departmentspan.innerHtml = id(1)
frmMain.department.value=id(0)
costcenterspan.innerHtml = ""
frmMain.costcenter.value=""
else
departmentspan.innerHtml = ""
frmMain.department.value=""
end if
end if
end sub
</script>
初学
请帮忙解析下这段代码什么意思!(注释)谢谢