	var net_nodisplay = new Object ();
	net_nodisplay.RSU=0;
	net_nodisplay.RSLI=1;
	net_nodisplay.RSLO=2;
	net_nodisplay.RSI=3;
	net_nodisplay.RSC=4;
	
	net_nodisplay.ContentLoader = function (url, display_location, s_timeout) {

		this.display_location = display_location;	
		this.url = url;
		this.mTimer = null;
		this.s_timeout = s_timeout;
		this.req = null;
		this.onload = this.default_onload;
		this.onerror = this.defaultError;
		this.onwait = this.defaultWait;
		this.onremove = this.defaultRemove;
		this.loadDoc (url);

	}
	
	net_nodisplay.ContentLoader.prototype = {
		loadDoc:function (url) {
			if (window.XMLHttpRequest) {
				this.req = new XMLHttpRequest ();
			} else if (window.ActiveXObject) {
				//added by shaun
				try {
					this.req = new ActiveXObject("MSXML2.XMLHTTP");
				} catch (exception1) {
					this.req = new ActiveXObject ("Microsoft.XMLHTTP");
				}
			}
			if (this.req) {
				try {
					var loader = this;
					this.req.onreadystatechange = function () {
						loader.onReadyState.call (loader);
					}
					this.req.open ('GET', url, true);
					this.req.send (null);
				} catch (err) {
					this.onerror.call (this);
				}
			}
		}, 
		onReadyState: function () {
			
			var req = this.req;
			var ready = req.readyState;
			if (ready == net_nodisplay.RSC) {
									
				var httpStatus = req.status;
				if (httpStatus == 200 || httpStatus == 0) {
					this.onload.call (this);
					
				} else {
					this.onerror.call (this);
					
				}
			} else {
				this.onwait.call (this);
				
			}
		}, 
		defaultError:function () {
			this.display_location.innerHTML = this.req.responseText;
		},
		defaultWait:function () {
			this.display_location.innerHTML = "";
		},
		default_onload:function () {
			this.display_location.innerHTML = this.req.responseText;
			
			if (this.s_timeout) {
				this.start_timer.call(this);
			}
		},
		defaultRemove:function () {
			//alert ("IN");
			//clearInterval(this.mTimer);
			//this.display_location.innerHTML = "";
		},
		start_timer:function () {
			//this.mTimer = setTimeout (function() {this.defaultRemove.call(this)}, 1000);
		}
	}
