ID=$1
if [ "x$ID" = "x" ]; then
 ID=1
fi
#echo $ID
wget -o wget.log --http-user='root' --http-passwd='aaa' \
"http://10.10.14.41/co/purejavascript/sys/catalog?unfoldCatalog&par_class=catalog&par_id=$ID&filter_type=0&callback=catalog_ls(" \
--output-document=tmp.js
./js -f lib.js tmp.js