var win = null;

function NewWindow(mypage,myname,w,h,scroll)
{
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}
function CJL_loadXmlDocument(xmlFile, cbFun)
{
var xdoc;
if( window.ActiveXObject && /Win/.test(navigator.userAgent) )
{
xdoc = new ActiveXObject("Microsoft.XMLDOM");
xdoc.async = false;
xdoc.load(xmlFile);
cbFun(xdoc);
return true;
}
else if( document.implementation && document.implementation.createDocument )
{
xdoc = document.implementation.createDocument("", "", null);
xdoc.load(xmlFile);
xdoc.onload = function()
{
cbFun(xdoc);
}
return true;
}
else
{
return false;
}
}
