function LoadPanel(id,c) {
	var o=new DomElement(id,c||'wdgLoadPanel')
	document.body.appendChild(o.elm)

	o.obj=id+"Object"
	eval(o.obj+"=o")
	
	if (!ie) o.setHTML('<IFRAME ID="'+id+'loadElement" STYLE="visibility: hidden;"></IFRAME>')

	o.getURL=function() { return o.url }
	o.setURL=function(url) {
		if (!url) return;
		LoadPanel.lp=this
		if (ie) this.elm.startDownload(url,function(e) { LoadPanel.lp.elm.innerHTML=e; });
		else {
			this.timerID=setInterval('LoadPanel.loadTimer('+this.obj+')',250);
			var loadElement=document.getElementById(this.elm.id+'loadElement')
			loadElement.src=url
		}
	}

	return o
}
LoadPanel.lp=null
LoadPanel.loadTimer=function(p) {
	var o=document.getElementById(p.elm.id+'loadElement')
	if (o.contentDocument && o.contentDocument.body.innerHTML != document.body.innerHTML) {
		clearInterval(p.timerID);
		p.elm.innerHTML=o.contentDocument.body.innerHTML
	}
}

