
function Module(id, URL) {
	this.ID = id;
	this.Container = 'con'+id;
	this.LoadDiv = 'ld'+id;
	this.URL = URL; // +r;
	//alert(this.URL);
	
}
Module.prototype.Load = function() {
	if (getObj(this.Container)) {
	var r = 'rnd='+Math.random();
	if (instr(0,this.URL,'?') == 0) {r='?'+r;} else {r='&'+r;}
	GetURL(this.URL+r,0,'var f2=new Module("'+this.ID+'");f2.Display') 
	}
}
Module.prototype.Display = function(stream) {
	var d = getObj(this.Container);
	d.innerHTML = unescape(stream);
	d.style.display = "block";
	var l = getObj(this.LoadDiv);
	l.style.display="none";
	//process any script
	//alert(unescape(stream));
	try {
	parseScript(unescape(stream)); }
	catch (e) {}//{alert(e.description)}	
}
