function FormSections() { //this.width = '660'; //this.height = '415'; this.width = '740'; this.height = '580'; this.params = 'scrollbars=no, resizable=yes'; this.winame = 'section'; this.url = ''; } function FormSubSection() { this.width = '660'; //this.height = '415'; this.height = '480'; this.params = 'scrollbars=no, resizable=yes'; this.winame = 'subsection'; this.url = ''; } function FormFile() { this.width = '600'; this.height = '400'; this.params = 'scrollbars=no, resizable=yes'; this.winame = 'file'; this.url = ''; } function FormDoc() { this.width = '700'; this.height = '550'; this.params = 'scrollbars=no, resizable=yes'; this.winame = 'doc'; this.url = ''; } function FormOA() { this.width = '660'; this.height = '490'; this.params = 'scrollbars=no, resizable=yes'; this.winame = 'oa'; this.url = ''; } function FormSectionOA() { this.width = '660'; this.height = '290'; this.params = 'scrollbars=no, resizable=yes'; this.winame = 'section_oa'; this.url = ''; } function openForm(form,element,params,getElement) { var win = eval("new " + form + "();"); var url = ( params ? win.url + params : win.url); if (element || getElement == 1) { var rExp = /\?/; var result = url.search(rExp); var concat = result < 0 ? '?' : '&'; if (element) url = url + concat + 'id=' + element.id; else { if ( getElement && data_list.listHistory.id > 0 ) url = url + concat + 'id=' + data_list.listHistory.id; else { alert(JS_TEXT_SELECT_ID); return false; } } } window.open(url, win.winame, 'width=' + win.width + ', height=' + win.height + ', ' + win.params); }