function modalForm(obj,contDiv) { this.divCont = contDiv; this.div = obj; this.head=false; if(gEL2(this.div,"head")) this.head = true; this.divInh = gEL2(this.div,"inhalt"); this.id = obj.getAttribute("id2"); } modalForm.prototype.init = function() { var cc = getWert(this.div.getAttribute("containedcontrols")); if(!cc=="") { var cEl = cc.split(","); for(x=0;x < cEl.length;x++) { var elID = cEl[x]; var el = gEL2(this.divCont,elID); this.divInh.appendChild(el); if(this.head==true) { el.style.top = parseInt(el.style.top) - 24+"px"; } } } } modalForm.prototype.setCaption = function(txt) { var tbl = gEL2(this.div,"head","table"); var td = tbl.rows[0].cells[0]; td.innerHTML = "  "+txt; } modalForm.prototype.showModal = function() { showModal(this.div); } modalForm.prototype.close = function() { hideOverlay(); setVisible(this.div,false); } modalForm.prototype.setContent = function(txt) { this.divInh.innerHTML = txt; }