rendered paste bodyfunction displayWindows(){
if(this.req) {
if(this.req.responseXML) {
var xmlDoc = this.req.responseXML;
var xmlRoot = xmlDoc.getElementsByTagName("windows")[0];
var windows = xmlRoot.getElementsByTagName("window");
} else {
alert("Error " + this.req.responseText);
}
for(i = 0; i < windows.length; i++) {
windowAttrs = windows[i].attributes;
windowId = windowAttrs.getNamedItem("windowId").value;
xPos = windowAttrs.getNamedItem("xPos").value;
yPos = windowAttrs.getNamedItem("yPos").value;
cTitle = windowAttrs.getNamedItem("cTitle").value;
CreateWindow(new NewWin(windowId, xPos, yPos, cTitle, true));
createSpinny("if_" + windowId);
}
}
}