function adjustField(){var q=1;var t;var a=20;var l=1;var o=5;var c=5;var f="false";var h=document.getElementById("viewTable");if(h==null){return false}var m=h.parentNode;var r=h.rows.length;var b=h.rows[0].cells.length;var z=new Array(b);var n=document.getElementsByTagName("iField");if(n==null||n.length==0){return false}if(n[0].cols==null){return false}q=parseInt(n[0].cols);if(n[0].colsWidth!=null){t=n[0].colsWidth.split(",");if(t.length!=q){alert("colsWidthの設定値の数はcolsと一致しません。");return false}}if(n[0].cellHeight!=null){a=parseInt(n[0].cellHeight)}if(n[0].tables!=null){l=parseInt(n[0].tables)}if(n[0].tableMargin!=null){o=parseInt(n[0].tableMargin)}if(n[0].tableBorder!=null){c=parseInt(n[0].tableBorder)}if(n[0].useTitle!=null){f=n[0].useTitle}if(f=="true"){for(i=0;i<b;i++){z[i]=h.rows[0].cells[i].innerText}}var d=document.createElement("table");var w=0;var u=0;d.cellPadding=o;m.insertBefore(d,h);d.style.width="10000px";for(i=1;i<r;i++){if((i-1)%l==0){pageTr=d.insertRow()}pageTd=pageTr.insertCell();pageTd.align="left";pageTd.vAlign="top";var g=document.createElement("table");g.border=c;g.cellSpacing="0";g.style.emptycells="show";pageTd.appendChild(g);var s=0;for(j=0;j<b;j++){var p;if(j%q==0){p=g.insertRow();p.className=h.rows[i].className;if(i==1){u=u<w?w:u;w=0}}var y=h.rows[i].cells[j];var e=y.childNodes;if(f=="true"){var k=p.insertCell();k.innerText=z[j]+":";k.className="label";if(i==1){w+=k.offsetWidth}}var v=p.insertCell();if(t!=null){v.style.width=t[j%q]}v.style.height=a;v.className=y.className;if(e.length==0){v.innerText=" "}while(e.length>0){v.appendChild(e[0])}if(i==1){w+=v.offsetWidth}}u=u<w?w:u}var x=(r-1)>l?l:(r-1);d.style.width=u*x+l*o*2;m.removeChild(h)};