
	var net_post = new Object ();
	net_post.RSU=0;
	net_post.RSLI=1;
	net_post.RSLO=2;
	net_post.RSI=3;
	net_post.RSC=4;
	
	net_post.ContentLoader = function (url, display_location, params) {

		this.display_location = display_location;	
		this.url = url;
		this.mTimer = null;
		this.params = params;
		this.req = null;
		this.onload = this.default_onload;
		this.onerror = this.defaultError;
		this.onwait = this.defaultWait;
		this.onremove = this.defaultRemove;
		this.loadDoc (url);

	}
	
	net_post.ContentLoader.prototype = {
		loadDoc:function (url) {
			if (window.XMLHttpRequest) {
				this.req = new XMLHttpRequest ();
			} else if (window.ActiveXObject) {
				this.req = new ActiveXObject ("Microsoft.XMLHTTP");
			}
			if (this.req) {
				try {
					var loader = this;
					this.req.open ("POST", url, true);
					this.req.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
					this.req.onreadystatechange = function () {
						loader.onReadyState.call (loader);
					}
					this.req.send (this.params);
				} catch (err) {
					//alert ("ERROR!");
					this.onerror.call (this);
				}
			}
		}, 
		onReadyState: function () {
			var req = this.req;
			var ready = req.readyState;
			if (ready == net_post.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 = "<center><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='150' height='20' id='circlePreloaderAnim' align='middle'> <param name='allowScriptAccess' value='sameDomain' /> <param name='movie' value='../images/circlePreloaderAnim.swf' /> <param name='quality' value='high' /> <param name='bgcolor' value='#ffffff' /> <embed src='../images/circlePreloaderAnim.swf' quality='high' bgcolor='#ffffff' width='150' height='20' name='circlePreloaderAnim' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object></center>";
		},
		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);
		}
	}