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