function Wasp_Window() {
	this.windows = new Array();
	this.footerCode = new Array();
}

Wasp_Window.prototype.reload = function( url ) {
	window.location.reload();
}

Wasp_Window.prototype.go = function( url ) {
	var rand = Math.random()
	window.location.href = url + '&xr=' + rand;
}

Wasp_Window.prototype.open = function( url, name, tags ) {
	this.windows.push( window.open(url, name, tags) );
}

Wasp_Window.prototype.load = function() {
	while( this.footerCode.length ) {
		code = this.footerCode.pop();
		eval( code );
	}
}

Wasp_Window.prototype.addFooterCode = function(code) {
	this.footerCode.push( code );
}

Wasp_Window.prototype.status = function() {
	window.status = text;
}

Wasp_Window.prototype.unload = function() {
	var win;
	while( this.windows.length ) {
		win = this.windows.pop();
		if ( win && !win.closed ) {
			win.Close();
		}
	}
}

Wasp_Window.prototype.getHTTPObject = function() {
  	var xmlhttp;  
	try {
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
		try {
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (E) {
			xmlhttp = false;
		}
	}
	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		try {
			xmlhttp = new XMLHttpRequest();
		} catch (e) {
			xmlhttp = false;
		}
	}
	if (!xmlhttp && window.createRequest) {
		try {
			xmlhttp = window.createRequest();
		} catch (e) {
			xmlhttp = false;
		}
	}	
	return xmlhttp;
}