/*  */
function setup_field_ttd_two(path, sval, mode, ditem, mdtp, table, data, sttext, type) {
	var hstr = "";
	var deri = (data.ERI) ? data.ERI : "";
	var loary = JSON.parse(return_language_str(path, sval, mode, '', ''));
	switch (type) {
		case "A":
			hstr += "<td class=\"proj_all_td\" title=\""+((loary['WORKHTMLOBJ_FLD']) ? loary['WORKHTMLOBJ_FLD'] : 'WORKHTMLOBJ_FLD')+"\">"+ // 欄位名稱 
						"<input type=\"hidden\" id=\"HFIELD"+"_"+deri+  "\" name=\""+ditem+"HFIELD[]\""+  " value=\""+((data.HFIELD) ? (data.HFIELD).trim() : "")+"\">"+
						"<input type=\"hidden\" id=\"HFDNAME"+"_"+deri+ "\" name=\""+ditem+"HFDNAME[]\""+ " value=\""+((data.HFDNAME) ? (data.HFDNAME).trim() : "")+"\">"+
						((data.HFIELD) ? (data.HFIELD).trim() : "")+"("+((data.HFDNAME) ? (data.HFDNAME).trim() : "")+")"+
						"<input type=\"hidden\" id=\"HTYPE"+"_"+deri+   "\" name=\""+ditem+"HTYPE[]\""+   " value=\""+((data.HTYPE) ? (data.HTYPE).trim() : "")+"\">"+
						"<input type=\"hidden\" id=\"HINPUT"+"_"+deri+  "\" name=\""+ditem+"HINPUT[]\""+  " value=\""+((data.HINPUT) ? (data.HINPUT).trim() : "edNormal")+"\">"+
						"<input type=\"hidden\" id=\"HSIZE"+"_"+deri+   "\" name=\""+ditem+"HSIZE[]\""+   " value=\""+(((data.HSIZE) || data.HSIZE == "0") ? data.HSIZE : "0")+"\">"+
						"<input type=\"hidden\" id=\"HHIGH"+"_"+deri+   "\" name=\""+ditem+"HHIGH[]\""+   " value=\""+(((data.HHIGH) || data.HHIGH == "0") ? data.HHIGH : "0")+"\">"+
						"<input type=\"hidden\" id=\"HSHOWBR"+"_"+deri+ "\" name=\""+ditem+"HSHOWBR[]\""+ " value=\""+(((data.HSHOWBR) || data.HSHOWBR == "0") ? data.HSHOWBR : "0")+"\">"+
						"<input type=\"hidden\" id=\"HSWAPTD"+"_"+deri+ "\" name=\""+ditem+"HSWAPTD[]\""+ " value=\""+(((data.HSWAPTD) || data.HSWAPTD == "0") ? data.HSWAPTD : "1")+"\">"+
						"<input type=\"hidden\" id=\"HCOLSPAN"+"_"+deri+"\" name=\""+ditem+"HCOLSPAN[]\""+" value=\""+(((data.HCOLSPAN) || data.HCOLSPAN == "0") ? data.HCOLSPAN : "0")+"\">"+
						"<input type=\"hidden\" id=\"HROWSPAN"+"_"+deri+"\" name=\""+ditem+"HROWSPAN[]\""+" value=\""+(((data.HROWSPAN) || data.HROWSPAN == "0") ? data.HROWSPAN : "0")+"\">"+
						"<input type=\"hidden\" id=\"HSHOWTH"+"_"+deri+ "\" name=\""+ditem+"HSHOWTH[]\""+ " value=\""+(((data.HSHOWTH) || data.HSHOWTH == "0") ? data.HSHOWTH : "1")+"\">"+
						"<input type=\"hidden\" id=\"HSWAPTR"+"_"+deri+ "\" name=\""+ditem+"HSWAPTR[]\""+ " value=\""+(((data.HSWAPTR) || data.HSWAPTR == "0") ? data.HSWAPTR : "1")+"\">"+
					"</td>"+
					"<td class=\"proj_all_td\" title=\""+((loary['WORKHTMLOBJ_EDC']) ? loary['WORKHTMLOBJ_EDC'] : 'WORKHTMLOBJ_EDC')+"\">"+ // 編輯顯示控制 
						"<select id=\"HIDDCT"+"_"+deri+"\" name=\""+ditem+"HIDDCT[]\" class=\"HIDDCT_sect\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
							"<option value=\"\" " +(((data.HIDDCT) && (data.HIDDCT).trim() == "") ? "selected" : "") +">"+((loary['WHOHIDDCT0']) ? loary['WHOHIDDCT0'] : 'WHOHIDDCT0')+"</option>"+ // 一般(none) 
							"<option value=\"r\" "+(((data.HIDDCT) && (data.HIDDCT).trim() == "r") ? "selected" : "")+">"+((loary['WHOHIDDCT1']) ? loary['WHOHIDDCT1'] : 'WHOHIDDCT1')+"</option>"+ // 無法修改(readonly) 
							"<option value=\"d\" "+(((data.HIDDCT) && (data.HIDDCT).trim() == "d") ? "selected" : "")+">"+((loary['WHOHIDDCT2']) ? loary['WHOHIDDCT2'] : 'WHOHIDDCT2')+"</option>"+ // 無法使用(disabled) 
							"<option value=\"t\" "+(((data.HIDDCT) && (data.HIDDCT).trim() == "t") ? "selected" : "")+">"+((loary['WHOHIDDCT3']) ? loary['WHOHIDDCT3'] : 'WHOHIDDCT3')+"</option>"+ // 新增可以修改，編輯無法修改 
						"</select>"+
					"</td>"+
					"<td class=\"proj_all_td\" title=\""+((loary['WORKHTMLOBJ_DAV']) ? loary['WORKHTMLOBJ_DAV'] : 'WORKHTMLOBJ_DAV')+"\">"+ // 預設顯示值 
						"<input type=\"text\" id=\"HDAFVAL"+"_"+deri+"\" name=\""+ditem+"HDAFVAL[]\" class=\"HDAFVAL_text\" value=\""+((data.HDAFVAL) ? (data.HDAFVAL).trim() : "")+"\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
					"</td>"+
					"<td class=\"proj_all_td\" title=\""+((loary['WORKHTMLOBJ_CTS']) ? loary['WORKHTMLOBJ_CTS'] : 'WORKHTMLOBJ_CTS')+"\">"; // 欄位自定義設定 
			if (data.HINPUT) {
				switch (data.HINPUT) {
					case "edNumeric":
					case "edFloat":
					case "edEditBtnF":
						hstr += "<select id=\"HUPLOADS"+"_"+deri+"\" onchange=\"select_val_change($('#HUPLOAD"+"_"+deri+"'),$(this));\" class=\"HUPLOAD_text\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
									"<option value=\"0\" "+(((data.HUPLOAD) && (data.HUPLOAD).trim() == "0") ? "selected" : "")+">"+((loary['MYFLOATTYPE_ZERO']) ? loary['MYFLOATTYPE_ZERO'] : 'MYFLOATTYPE_ZERO')+"</option>"+ // 四捨五入 
									"<option value=\"1\" "+(((data.HUPLOAD) && (data.HUPLOAD).trim() == "1") ? "selected" : "")+">"+((loary['MYFLOATTYPE_ONE']) ? loary['MYFLOATTYPE_ONE'] : 'MYFLOATTYPE_ONE')   +"</option>"+ // 無條件進位 
									"<option value=\"2\" "+(((data.HUPLOAD) && (data.HUPLOAD).trim() == "2") ? "selected" : "")+">"+((loary['MYFLOATTYPE_TWO']) ? loary['MYFLOATTYPE_TWO'] : 'MYFLOATTYPE_TWO')   +"</option>"+ // 無條件捨去 
								"</select>"+
								"<input type=\"hidden\" id=\"HUPLOAD"+"_"+deri+"\" name=\""+ditem+"HUPLOAD[]\" value=\""+((data.HUPLOAD) ? (data.HUPLOAD).trim() : "0")+"\">";
						break;
					case "edDateEdit":
					case "edGetNoDate":
						hstr += "<select id=\"HUPLOADS"+"_"+deri+"\" onchange=\"select_val_change($('#HUPLOAD"+"_"+deri+"'),$(this));\" class=\"HUPLOAD_text\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
									"<option value=\"S111\" "+(((data.HUPLOAD) && (data.HUPLOAD).trim() == "S111") ? "selected" : "")+">yyyy/mm/dd</option>"+
									"<option value=\"S023\" "+(((data.HUPLOAD) && (data.HUPLOAD).trim() == "S023") ? "selected" : "")+">yyyy-mm-dd</option>"+
									"<option value=\"S102\" "+(((data.HUPLOAD) && (data.HUPLOAD).trim() == "S102") ? "selected" : "")+">yyyy.mm.dd</option>"+
									"<option value=\"S103\" "+(((data.HUPLOAD) && (data.HUPLOAD).trim() == "S103") ? "selected" : "")+">dd/mm/yyyy</option>"+
									"<option value=\"S105\" "+(((data.HUPLOAD) && (data.HUPLOAD).trim() == "S105") ? "selected" : "")+">dd-mm-yyyy</option>"+
									"<option value=\"S104\" "+(((data.HUPLOAD) && (data.HUPLOAD).trim() == "S104") ? "selected" : "")+">dd.mm.yyyy</option>"+
									"<option value=\"S101\" "+(((data.HUPLOAD) && (data.HUPLOAD).trim() == "S101") ? "selected" : "")+">mm/dd/yyyy</option>"+
									"<option value=\"S110\" "+(((data.HUPLOAD) && (data.HUPLOAD).trim() == "S110") ? "selected" : "")+">mm-dd-yyyy</option>"+
									"<option value=\"S112\" "+(((data.HUPLOAD) && (data.HUPLOAD).trim() == "S112") ? "selected" : "")+">yyyymmdd</option>"+
								"</select>"+
								"<input type=\"hidden\" id=\"HUPLOAD"+"_"+deri+"\" name=\""+ditem+"HUPLOAD[]\" value=\""+((data.HUPLOAD) ? (data.HUPLOAD).trim() : "S111")+"\">";
						break;
					case "edBotton":
						hstr += "<select id=\"HUPLOADS"+"_"+deri+"\" onchange=\"select_val_change($('#HUPLOAD"+"_"+deri+"'),$(this));\" class=\"HUPLOAD_text\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
									"<option value=\"\" " +(((data.HUPLOAD) && (data.HUPLOAD).trim() == "") ? "selected" : "")+">" +((loary['HUPLOAD_BTN_PRESET']) ? loary['HUPLOAD_BTN_PRESET'] : 'HUPLOAD_BTN_PRESET')+"</option>"+ // 預設顯示 
									"<option value=\"A\" "+(((data.HUPLOAD) && (data.HUPLOAD).trim() == "A") ? "selected" : "")+">"+((loary['HUPLOAD_BTN_ADMIN']) ? loary['HUPLOAD_BTN_ADMIN'] : 'HUPLOAD_BTN_ADMIN')   +"</option>"+ // 超級使用者 
								"</select>"+
								"<input type=\"hidden\" id=\"HUPLOAD"+"_"+deri+"\" name=\""+ditem+"HUPLOAD[]\" value=\""+((data.HUPLOAD) ? (data.HUPLOAD).trim() : "")+"\">";
						break;
					case "edSubBtn":
					case "edFileLoad":
						hstr += "<select id=\"HUPLOADS"+"_"+deri+"\" onchange=\"select_val_change($('#HUPLOAD"+"_"+deri+"'),$(this));\" class=\"HUPLOAD_text\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
									"<option value=\"\" " +(((data.HUPLOAD) && (data.HUPLOAD).trim() == "") ? "selected" : "")+">" +((loary['WORKHTMLOBJ_SHOW']) ? loary['WORKHTMLOBJ_SHOW'] : 'WORKHTMLOBJ_SHOW')+"</option>"+ // 顯示 
									"<option value=\"H\" "+(((data.HUPLOAD) && (data.HUPLOAD).trim() == "H") ? "selected" : "")+">"+((loary['WORKHTMLOBJ_HIDE']) ? loary['WORKHTMLOBJ_HIDE'] : 'WORKHTMLOBJ_HIDE')+"</option>"+ // 隱藏 
								"</select>"+
								"<input type=\"hidden\" id=\"HUPLOAD"+"_"+deri+"\" name=\""+ditem+"HUPLOAD[]\" value=\""+((data.HUPLOAD) ? (data.HUPLOAD).trim() : "")+"\">";
						break;
					case "edPathImg":
						hstr += "<select id=\"HUPLOADS"+"_"+deri+"\" onchange=\"select_val_change($('#HUPLOAD"+"_"+deri+"'),$(this));\" class=\"HUPLOAD_text\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
									"<option value=\"\" " +(((data.HUPLOAD) && (data.HUPLOAD).trim() == "") ? "selected" : "")+">" +((loary['WORKHTMLOBJ_NOTE_PATH']) ? loary['WORKHTMLOBJ_NOTE_PATH'] : 'WORKHTMLOBJ_NOTE_PATH')+"</option>"+ // 不可修改路徑 
									"<option value=\"E\" "+(((data.HUPLOAD) && (data.HUPLOAD).trim() == "E") ? "selected" : "")+">"+((loary['WORKHTMLOBJ_YESE_PATH']) ? loary['WORKHTMLOBJ_YESE_PATH'] : 'WORKHTMLOBJ_YESE_PATH')+"</option>"+ // 可以修改路徑 
								"</select>"+
								"<input type=\"hidden\" id=\"HUPLOAD"+"_"+deri+"\" name=\""+ditem+"HUPLOAD[]\" value=\""+((data.HUPLOAD) ? (data.HUPLOAD).trim() : "")+"\">";
						break;
					case "edUploadImg":
						hstr += "<select id=\"HUPLOADS"+"_"+deri+"\" onchange=\"select_val_change($('#HUPLOAD"+"_"+deri+"'),$(this));\" class=\"HUPLOAD_text\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
									"<option value=\"\" " +(((data.HUPLOAD) && (data.HUPLOAD).trim() == "") ? "selected" : "")+">" +((loary['WORKHTMLOBJ_SHOW_IMG']) ? loary['WORKHTMLOBJ_SHOW_IMG'] : 'WORKHTMLOBJ_SHOW_IMG')+"</option>"+ // 顯示圖片 
									"<option value=\"H\" "+(((data.HUPLOAD) && (data.HUPLOAD).trim() == "H") ? "selected" : "")+">"+((loary['WORKHTMLOBJ_HIDE_IMG']) ? loary['WORKHTMLOBJ_HIDE_IMG'] : 'WORKHTMLOBJ_HIDE_IMG')+"</option>"+ // 隱藏圖片 
								"</select>"+
								"<input type=\"hidden\" id=\"HUPLOAD"+"_"+deri+"\" name=\""+ditem+"HUPLOAD[]\" value=\""+((data.HUPLOAD) ? (data.HUPLOAD).trim() : "")+"\">";
						break;
					case "edCkEditor":
						hstr += "<select id=\"HUPLOADS"+"_"+deri+"\" onchange=\"select_val_change($('#HUPLOAD"+"_"+deri+"'),$(this));\" class=\"HUPLOAD_text\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
									"<option value=\"\" " +(((data.HUPLOAD) && (data.HUPLOAD).trim() == "") ? "selected" : "")+">" +((loary['WORKHTMLOBJ_EDIT_CKE']) ? loary['WORKHTMLOBJ_EDIT_CKE'] : 'WORKHTMLOBJ_EDIT_CKE')+"</option>"+ // 可編輯 
									"<option value=\"V\" "+(((data.HUPLOAD) && (data.HUPLOAD).trim() == "V") ? "selected" : "")+">"+((loary['WORKHTMLOBJ_VIEW_CKE']) ? loary['WORKHTMLOBJ_VIEW_CKE'] : 'WORKHTMLOBJ_VIEW_CKE')+"</option>"+ // 純顯示 
									"<option value=\"H\" "+(((data.HUPLOAD) && (data.HUPLOAD).trim() == "H") ? "selected" : "")+">"+((loary['WORKHTMLOBJ_HIDE_CKE']) ? loary['WORKHTMLOBJ_HIDE_CKE'] : 'WORKHTMLOBJ_HIDE_CKE')+"</option>"+ // 隱藏 
								"</select>"+
								"<input type=\"hidden\" id=\"HUPLOAD"+"_"+deri+"\" name=\""+ditem+"HUPLOAD[]\" value=\""+((data.HUPLOAD) ? (data.HUPLOAD).trim() : "")+"\">";
						break;
					case "edProcBtn":
						hstr += "<select id=\"HUPLOADS"+"_"+deri+"\" onchange=\"select_val_change($('#HUPLOAD"+"_"+deri+"'),$(this));\" class=\"HUPLOAD_text\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
									"<option value=\"\" " +(((data.HUPLOAD) && (data.HUPLOAD).trim() == "") ? "selected" : "")+">" +((loary['WORKHTMLOBJ_EINV_NON']) ? loary['WORKHTMLOBJ_EINV_NON'] : 'WORKHTMLOBJ_EINV_NON')+"</option>"+ // 不產生電子發票 
									"<option value=\"B\" "+(((data.HUPLOAD) && (data.HUPLOAD).trim() == "B") ? "selected" : "")+">"+((loary['WORKHTMLOBJ_EINV_BEF']) ? loary['WORKHTMLOBJ_EINV_BEF'] : 'WORKHTMLOBJ_EINV_BEF')+"</option>"+ // 觸發前產生電子發票 
									"<option value=\"A\" "+(((data.HUPLOAD) && (data.HUPLOAD).trim() == "A") ? "selected" : "")+">"+((loary['WORKHTMLOBJ_EINV_AFT']) ? loary['WORKHTMLOBJ_EINV_AFT'] : 'WORKHTMLOBJ_EINV_AFT')+"</option>"+ // 觸發後產生電子發票 
								"</select>"+
								"<input type=\"hidden\" id=\"HUPLOAD"+"_"+deri+"\" name=\""+ditem+"HUPLOAD[]\" value=\""+((data.HUPLOAD) ? (data.HUPLOAD).trim() : "")+"\">";
						break;
					case "edExportBtn":
						hstr += "<select id=\"HUPLOADS"+"_"+deri+"\" onchange=\"select_val_change($('#HUPLOAD"+"_"+deri+"'),$(this));\" class=\"HUPLOAD_text\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
									"<option value=\"\" "     +(((data.HUPLOAD) && (data.HUPLOAD).trim() == "") ? "selected" : "")+">" +((loary['WORKHTMLOBJ_DAFVAL']) ? loary['WORKHTMLOBJ_DAFVAL'] : 'WORKHTMLOBJ_DAFVAL')+"</option>"+ // 系統預設 
									"<option value=\"EXCEL\" "+(((data.HUPLOAD) && (data.HUPLOAD).trim() == "EXCEL") ? "selected" : "")+">EXCEL</option>"+ // EXCEL 
									"<option value=\"CSV\" "  +(((data.HUPLOAD) && (data.HUPLOAD).trim() == "CSV") ? "selected" : "")  +">CSV</option>"+ // CSV 
									"<option value=\"TXT\" "  +(((data.HUPLOAD) && (data.HUPLOAD).trim() == "TXT") ? "selected" : "")  +">TXT</option>"+ // TXT 
									"<option value=\"XML\" "  +(((data.HUPLOAD) && (data.HUPLOAD).trim() == "XML") ? "selected" : "")  +">XML</option>"+ // XML 
								"</select>"+
								"<input type=\"hidden\" id=\"HUPLOAD"+"_"+deri+"\" name=\""+ditem+"HUPLOAD[]\" value=\""+((data.HUPLOAD) ? (data.HUPLOAD).trim() : "")+"\">";
						break;
					case "edyymmEdit":
						hstr += "<select id=\"HUPLOADS"+"_"+deri+"\" onchange=\"select_val_change($('#HUPLOAD"+"_"+deri+"'),$(this));\" class=\"HUPLOAD_text\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
									"<option value=\"yymm\" "+(((data.HUPLOAD) && (data.HUPLOAD).trim() == "yymm") ? "selected" : "")+">yy/mm</option>"+ // yy/mm 
									"<option value=\"mmyy\" "+(((data.HUPLOAD) && (data.HUPLOAD).trim() == "mmyy") ? "selected" : "")+">mm/yy</option>"+ // mm/yy 
								"</select>"+
								"<input type=\"hidden\" id=\"HUPLOAD"+"_"+deri+"\" name=\""+ditem+"HUPLOAD[]\" value=\""+((data.HUPLOAD) ? (data.HUPLOAD).trim() : "yymm")+"\">";
						break;
					case "edTimeEdit":
						hstr += "<select id=\"HUPLOADS"+"_"+deri+"\" onchange=\"select_val_change($('#HUPLOAD"+"_"+deri+"'),$(this));\" class=\"HUPLOAD_text\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
									"<option value=\"\" "      +(((data.HUPLOAD) && (data.HUPLOAD).trim() == "") ? "selected" : "")      +">hh:mm</option>"+ // HH:ii 
									"<option value=\"HHiiss\" "+(((data.HUPLOAD) && (data.HUPLOAD).trim() == "HHiiss") ? "selected" : "")+">hh:mm:ss</option>"+ // HH:ii:ss 
								"</select>"+
								"<input type=\"hidden\" id=\"HUPLOAD"+"_"+deri+"\" name=\""+ditem+"HUPLOAD[]\" value=\""+((data.HUPLOAD) ? (data.HUPLOAD).trim() : "")+"\">";
						break;
					case "edSerial":
						hstr += "<select id=\"HUPLOADS"+"_"+deri+"\" onchange=\"select_val_change($('#HUPLOAD"+"_"+deri+"'),$(this));\" class=\"HUPLOAD_text\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
									"<option value=\"\" " +(((data.HUPLOAD) && (data.HUPLOAD).trim() == "") ? "selected" : "")+">" +((loary['WORKHTMLOBJ_SERNO_DAF']) ? loary['WORKHTMLOBJ_SERNO_DAF'] : 'WORKHTMLOBJ_SERNO_DAF')+"</option>"+ // 純顯示 
									"<option value=\"C\" "+(((data.HUPLOAD) && (data.HUPLOAD).trim() == "C") ? "selected" : "")+">"+((loary['WORKHTMLOBJ_SERNO_CHA']) ? loary['WORKHTMLOBJ_SERNO_CHA'] : 'WORKHTMLOBJ_SERNO_CHA')+"</option>"+ // 可改變 
								"</select>"+
								"<input type=\"hidden\" id=\"HUPLOAD"+"_"+deri+"\" name=\""+ditem+"HUPLOAD[]\" value=\""+((data.HUPLOAD) ? (data.HUPLOAD).trim() : "")+"\">";
						break;
					case "edEnNormal":
						hstr += "<select id=\"HUPLOADS"+"_"+deri+"\" onchange=\"select_val_change($('#HUPLOAD"+"_"+deri+"'),$(this));\" class=\"HUPLOAD_text\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
									"<option value=\"hex\" "+(((data.HUPLOAD) && (data.HUPLOAD).trim() == "hex") ? "selected" : "")+">HEX</option>"+ // 16進位 
									"<option value=\"aes\" "+(((data.HUPLOAD) && (data.HUPLOAD).trim() == "aes") ? "selected" : "")+">AES</option>"+ // 非對稱 
								"</select>"+
								"<input type=\"hidden\" id=\"HUPLOAD"+"_"+deri+"\" name=\""+ditem+"HUPLOAD[]\" value=\""+((data.HUPLOAD) ? (data.HUPLOAD).trim() : "hex")+"\">";
						break;
					case "edSignature":
						var w = '600', h = '250', cbval = '', whary = '';
						if ((data.HUPLOAD) && (data.HUPLOAD).trim() != '' && (data.HUPLOAD).indexOf('x') != -1) {
							whary = (data.HUPLOAD).split('x');
							if (!isNaN(whary[0]) && (whary[0]).trim() != '') {
								w = whary[0];
							}
							if (!isNaN(whary[1]) && (whary[1]).trim() != '') {
								h = whary[1];
							}
						} else if ((data.HUPLOAD) && (data.HUPLOAD).trim() == 'H') {
							cbval = 'H'
						}
						data.HUPLOAD = w.toString()+'x'+h.toString();
						hstr += "<select id=\"HUPLOADS"+"_"+deri+"\" onchange=\"select_signval_change('"+deri+"');\" class=\"HUPLOAD_text\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
									"<option value=\"\" " +((cbval == "") ? "selected" : "")+">" +((loary['WORKHTMLOBJ_SHOW']) ? loary['WORKHTMLOBJ_SHOW'] : 'WORKHTMLOBJ_SHOW')+"</option>"+ // 顯示 
									"<option value=\"H\" "+((cbval == "H") ? "selected" : "")+">"+((loary['WORKHTMLOBJ_HIDE']) ? loary['WORKHTMLOBJ_HIDE'] : 'WORKHTMLOBJ_HIDE')+"</option>"+ // 隱藏 
								"</select>"+
								"<br>"+
								((loary['WORKHTMLOBJ_WTS']) ? loary['WORKHTMLOBJ_WTS'] : 'WORKHTMLOBJ_WTS')+':'+
								"<input type=\"number\" id=\"HUPLOADW"+"_"+deri+"\" onchange=\"select_signval_change('"+deri+"');\" class=\"HSIZE_text\" value=\""+w+"\""+((((sttext) && sttext == "disabled") || (cbval == "H")) ? " disabled" : "")+">"+
								"<br>"+
								((loary['WORKHTMLOBJ_HIS']) ? loary['WORKHTMLOBJ_HIS'] : 'WORKHTMLOBJ_HIS')+':'+
								"<input type=\"number\" id=\"HUPLOADH"+"_"+deri+"\" onchange=\"select_signval_change('"+deri+"');\" class=\"HHIGH_text\" value=\""+h+"\""+((((sttext) && sttext == "disabled") || (cbval == "H")) ? " disabled" : "")+">"+
								"<input type=\"hidden\" id=\"HUPLOAD"+"_"+deri+"\" name=\""+ditem+"HUPLOAD[]\" value=\""+((data.HUPLOAD) ? (data.HUPLOAD).trim() : "")+"\">";
						break;
					default:
						hstr += "<input type=\"text\" id=\"HUPLOAD"+"_"+deri+"\" name=\""+ditem+"HUPLOAD[]\" class=\"HUPLOAD_text\" value=\""+((data.HUPLOAD) ? (data.HUPLOAD).trim() : "")+"\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">";
						break;
				}
			} else {
				hstr += "<input type=\"text\" id=\"HUPLOAD"+"_"+deri+"\" name=\""+ditem+"HUPLOAD[]\" class=\"HUPLOAD_text\" value=\""+((data.HUPLOAD) ? (data.HUPLOAD).trim() : "")+"\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">";
			}
			hstr += "</td>"+
					"<td class=\"proj_all_td\" title=\""+((loary['WORKHTMLOBJ_SCA']) ? loary['WORKHTMLOBJ_SCA'] : 'WORKHTMLOBJ_SCA')+"\">"+ // 小數位數 
						"<select id=\"HSCALE"+"_"+deri+"\" name=\""+ditem+"HSCALE[]\" class=\"HSCALE_sect\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">";
			for (var j = -1; j <= 10; j++) {
				hstr +=		"<option value=\""+j.toString()+"\" "+((((data.HSCALE) || data.HSCALE == "0") && data.HSCALE == j) ? "selected" : "")+">"+j.toString()+"</option>";
			}
			hstr +=		"</select>"+
					"</td>"+
					"<td class=\"proj_all_td\" title=\""+((loary['WORKHTMLOBJ_CHA']) ? loary['WORKHTMLOBJ_CHA'] : 'WORKHTMLOBJ_CHA')+"\">"+ // 改變值執行JS(onChange) 
						"<select id=\"HCHANGE"+"_"+deri+"\" name=\""+ditem+"HCHANGE[]\" class=\"HCHANGE_sect\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
							"<option value=\"0\" "+((((data.HCHANGE) || data.HCHANGE == "0") && data.HCHANGE == "0") ? "selected" : "")+">"+((loary['WORKHTMLOBJ_LOSE']) ? loary['WORKHTMLOBJ_LOSE'] : 'WORKHTMLOBJ_LOSE')+"</option>"+ // 未啟用 
							"<option value=\"1\" "+((((data.HCHANGE) || data.HCHANGE == "0") && data.HCHANGE == "1") ? "selected" : "")+">"+((loary['WORKHTMLOBJ_OPEN']) ? loary['WORKHTMLOBJ_OPEN'] : 'WORKHTMLOBJ_OPEN')+"</option>"+ // 啟用 
						"</select>"+
					"</td>"+
					"<td class=\"proj_all_td\" title=\""+((loary['WORKHTMLOBJ_CLK']) ? loary['WORKHTMLOBJ_CLK'] : 'WORKHTMLOBJ_CLK')+"\">"+ // 單點執行JS(onclick) 
						"<select id=\"HCLICK"+"_"+deri+"\" name=\""+ditem+"HCLICK[]\" class=\"HCLICK_sect\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
							"<option value=\"0\" "+((((data.HCLICK) || data.HCLICK == "0") && data.HCLICK == "0") ? "selected" : "")+">"+((loary['WORKHTMLOBJ_LOSE']) ? loary['WORKHTMLOBJ_LOSE'] : 'WORKHTMLOBJ_LOSE')+"</option>"+ // 未啟用 
							"<option value=\"1\" "+((((data.HCLICK) || data.HCLICK == "0") && data.HCLICK == "1") ? "selected" : "")+">"+((loary['WORKHTMLOBJ_OPEN']) ? loary['WORKHTMLOBJ_OPEN'] : 'WORKHTMLOBJ_OPEN')+"</option>"+ // 啟用 
						"</select>"+
					"</td>"+
					"<td class=\"proj_all_td\" title=\""+((loary['WORKHTMLOBJ_HCR']) ? loary['WORKHTMLOBJ_HCR'] : 'WORKHTMLOBJ_HCR')+"\">"+ // TH顏色(CSS) 
						"<input type=\"text\" id=\"HTBCOR"+"_"+deri+"\" name=\""+ditem+"HTBCOR[]\" class=\"HTBCOR_text\" value=\""+((data.HTBCOR) ? (data.HTBCOR).trim() : "")+"\" placeholder=\""+((loary['BACKGROUND_COLOR']) ? loary['BACKGROUND_COLOR'] : 'BACKGROUND_COLOR')+"\" onchange=\"color_update($(this),$('#HTCORS"+"_"+deri+"'),'B','#0066FF');\">"+
						"<input type=\"text\" id=\"HTFCOR"+"_"+deri+"\" name=\""+ditem+"HTFCOR[]\" class=\"HTFCOR_text\" value=\""+((data.HTFCOR) ? (data.HTFCOR).trim() : "")+"\" placeholder=\""+((loary['TEXT_COLOR']) ? loary['TEXT_COLOR'] : 'TEXT_COLOR')+"\" onchange=\"color_update($(this),$('#HTCORS"+"_"+deri+"'),'F','#FFFFFF');\">"+
						"<input type=\"text\" id=\"HTCORS"+"_"+deri+"\" class=\"HTCORS_text\" value=\"123\" style=\"background-color: "+((data.HTBCOR) ? (data.HTBCOR).trim() : "#0066FF")+" ; color: "+((data.HTFCOR) ? (data.HTFCOR).trim() : "#FFFFFF")+" ; font-weight: bold ;\" readonly>"+
					"</td>"+
					"<td class=\"proj_all_td\" title=\""+((loary['WORKHTMLOBJ_DCR']) ? loary['WORKHTMLOBJ_DCR'] : 'WORKHTMLOBJ_DCR')+"\">"+ // TD顏色(CSS) 
						"<input type=\"text\" id=\"HDBCOR"+"_"+deri+"\" name=\""+ditem+"HDBCOR[]\" class=\"HDBCOR_text\" value=\""+((data.HDBCOR) ? (data.HDBCOR).trim() : "")+"\" placeholder=\""+((loary['BACKGROUND_COLOR']) ? loary['BACKGROUND_COLOR'] : 'BACKGROUND_COLOR')+"\" onchange=\"color_update($(this),$('#HDCORS"+"_"+deri+"'),'B','"+((mdtp == "M" || mdtp == "MP" || mdtp == "DM") ? "#FFFFFF" : "#FFCC66")+"');\">"+
						"<input type=\"text\" id=\"HDFCOR"+"_"+deri+"\" name=\""+ditem+"HDFCOR[]\" class=\"HDFCOR_text\" value=\""+((data.HDFCOR) ? (data.HDFCOR).trim() : "")+"\" placeholder=\""+((loary['TEXT_COLOR']) ? loary['TEXT_COLOR'] : 'TEXT_COLOR')+"\" onchange=\"color_update($(this),$('#HDCORS"+"_"+deri+"'),'F','#000000');\">"+
						"<input type=\"text\" id=\"HDCORS"+"_"+deri+"\" class=\"HDCORS_text\" value=\"123\" style=\"background-color: "+((data.HDBCOR) ? (data.HDBCOR).trim() : ((mdtp == "M" || mdtp == "MP" || mdtp == "DM") ? "#FFFFFF" : "#FFCC66"))+" ; color: "+((data.HDFCOR) ? (data.HDFCOR).trim() : "#000000")+" ; font-weight: bold ;\" readonly>"+
					"</td>"+
					"<td class=\"proj_all_td\" title=\""+((loary['WORKHTMLOBJ_DAN']) ? loary['WORKHTMLOBJ_DAN'] : 'WORKHTMLOBJ_DAN')+"\">"+ // 資料對齊(CSS) 
						"<select id=\"HDALIGN"+"_"+deri+"\" name=\""+ditem+"HDALIGN[]\" class=\"HDALIGN_sect\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
							"<option value=\"0\" "+((((data.HDALIGN) || data.HDALIGN == "0") && data.HDALIGN == "0") ? "selected" : "")+">"+((loary['WORKHTMLOBJ_DAN_ZERO']) ? loary['WORKHTMLOBJ_DAN_ZERO'] : 'WORKHTMLOBJ_DAN_ZERO')+"</option>"+ // 物件預設 
							"<option value=\"1\" "+((((data.HDALIGN) || data.HDALIGN == "0") && data.HDALIGN == "1") ? "selected" : "")+">"+((loary['WORKHTMLOBJ_DAN_ONE']) ? loary['WORKHTMLOBJ_DAN_ONE'] : 'WORKHTMLOBJ_DAN_ONE')+"</option>"+ // 靠右 
							"<option value=\"2\" "+((((data.HDALIGN) || data.HDALIGN == "0") && data.HDALIGN == "2") ? "selected" : "")+">"+((loary['WORKHTMLOBJ_DAN_TWO']) ? loary['WORKHTMLOBJ_DAN_TWO'] : 'WORKHTMLOBJ_DAN_TWO')+"</option>"+ // 靠左 
							"<option value=\"3\" "+((((data.HDALIGN) || data.HDALIGN == "0") && data.HDALIGN == "3") ? "selected" : "")+">"+((loary['WORKHTMLOBJ_DAN_THREE']) ? loary['WORKHTMLOBJ_DAN_THREE'] : 'WORKHTMLOBJ_DAN_THREE')+"</option>"+ // 置中 
						"</select>"+
					"</td>"+
					"<td class=\"proj_all_td\" title=\""+((loary['WORKHTMLOBJ_CPY']) ? loary['WORKHTMLOBJ_CPY'] : 'WORKHTMLOBJ_CPY')+"\">"+ // 複製預設值來源(複製功能) 
						"<select id=\"HCVTYPE"+"_"+deri+"\" name=\""+ditem+"HCVTYPE[]\" class=\"HCVTYPE_sect\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
							"<option value=\"0\" "+((((data.HCVTYPE) || data.HCVTYPE == "0") && data.HCVTYPE == "0") ? "selected" : "")+">"+((loary['WORKHTMLOBJ_CPYVAL']) ? loary['WORKHTMLOBJ_CPYVAL'] : 'WORKHTMLOBJ_CPYVAL')+"</option>"+ // 複製資料(原單據) 
							"<option value=\"1\" "+((((data.HCVTYPE) || data.HCVTYPE == "0") && data.HCVTYPE == "1") ? "selected" : "")+">"+((loary['WORKHTMLOBJ_DAFVAL']) ? loary['WORKHTMLOBJ_DAFVAL'] : 'WORKHTMLOBJ_DAFVAL')+"</option>"+ // 系統預設(預設值) 
						"</select>"+
					"</td>"+
					"<td class=\"proj_all_td\" title=\""+((loary['WORKHTMLOBJ_FMV']) ? loary['WORKHTMLOBJ_FMV'] : 'WORKHTMLOBJ_FMV')+"\">"+ // 物件焦點移動 
						"<select id=\"HFOCMV"+"_"+deri+"\" name=\""+ditem+"HFOCMV[]\" class=\"HFOCMV_sect\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
							"<option value=\"0\" "+((((data.HFOCMV) || data.HFOCMV == "0") && data.HFOCMV == "0") ? "selected" : "")+">"+((loary['WORKHTMLOBJ_LOSE']) ? loary['WORKHTMLOBJ_LOSE'] : 'WORKHTMLOBJ_LOSE')+"</option>"+ // 未啟用 
							"<option value=\"1\" "+((((data.HFOCMV) || data.HFOCMV == "0") && data.HFOCMV == "1") ? "selected" : "")+">"+((loary['WORKHTMLOBJ_OPEN']) ? loary['WORKHTMLOBJ_OPEN'] : 'WORKHTMLOBJ_OPEN')+"</option>"+ // 啟用 
						"</select>"+
					"</td>";
			break;
		case "B":
		default:
			hstr += "<td class=\"proj_all_td\" title=\""+((loary['WORKHTMLOBJ_FLD']) ? loary['WORKHTMLOBJ_FLD'] : 'WORKHTMLOBJ_FLD')+"\">"+ // 欄位名稱 
						"<input type=\"text\" id=\"HFIELD"+"_"+deri+"\" name=\""+ditem+"HFIELD[]\" class=\"HFIELD_text\" value=\""+((data.HFIELD) ? (data.HFIELD).trim() : "")+"\" onchange=\"if(typeof field_name_change == 'function'){field_name_change($(this));}\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
						"<input type=\"button\" value=\"...\" onClick=\"load_popup_box('"+path+"core/cw5e_mqqr_cv.php?sid="+sval+"&mode=qqr&aid=VIEW_WFIELD_QUERY&lang=1&ccv="+table+"&col=HFIELD_"+deri+",HFDNAME_"+deri+"&ret=VIEW_WFIELD.WFIELDENAME,VIEW_WFIELD.WFIELDCNAME','', 0, 0);\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
						"<input type=\"text\" id=\"HFDNAME"+"_"+deri+"\" name=\""+ditem+"HFDNAME[]\" class=\"HFDNAME_text\" value=\""+((data.HFDNAME) ? (data.HFDNAME).trim() : "")+"\" onchange=\"if(typeof field_name_change == 'function'){field_name_change($(this));}\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
						"<input type=\"hidden\" id=\"HIDDCT"+"_"+deri+  "\" name=\""+ditem+"HIDDCT[]\""+  " value=\""+((data.HIDDCT) ? (data.HIDDCT).trim() : "")+"\">"+
						"<input type=\"hidden\" id=\"HDAFVAL"+"_"+deri+ "\" name=\""+ditem+"HDAFVAL[]\""+ " value=\""+((data.HDAFVAL) ? (data.HDAFVAL).trim() : "")+"\">"+
						"<input type=\"hidden\" id=\"HUPLOAD"+"_"+deri+ "\" name=\""+ditem+"HUPLOAD[]\""+ " value=\""+((data.HUPLOAD) ? (data.HUPLOAD).trim() : "")+"\">"+
						"<input type=\"hidden\" id=\"HSCALE"+"_"+deri+  "\" name=\""+ditem+"HSCALE[]\""+  " value=\""+(((data.HSCALE) || data.HSCALE == "0") ? data.HSCALE : "-1")+"\">"+
						"<input type=\"hidden\" id=\"HCHANGE"+"_"+deri+ "\" name=\""+ditem+"HCHANGE[]\""+ " value=\""+(((data.HCHANGE) || data.HCHANGE == "0") ? data.HCHANGE : "0")+"\">"+
						"<input type=\"hidden\" id=\"HCLICK"+"_"+deri+  "\" name=\""+ditem+"HCLICK[]\""+  " value=\""+(((data.HCLICK) || data.HCLICK == "0") ? data.HCLICK : "0")+"\">"+
						"<input type=\"hidden\" id=\"HTBCOR"+"_"+deri+  "\" name=\""+ditem+"HTBCOR[]\""+  " value=\""+((data.HTBCOR) ? (data.HTBCOR).trim() : "")+"\">"+
						"<input type=\"hidden\" id=\"HTFCOR"+"_"+deri+  "\" name=\""+ditem+"HTFCOR[]\""+  " value=\""+((data.HTFCOR) ? (data.HTFCOR).trim() : "")+"\">"+
						"<input type=\"hidden\" id=\"HDBCOR"+"_"+deri+  "\" name=\""+ditem+"HDBCOR[]\""+  " value=\""+((data.HDBCOR) ? (data.HDBCOR).trim() : "")+"\">"+
						"<input type=\"hidden\" id=\"HDFCOR"+"_"+deri+  "\" name=\""+ditem+"HDFCOR[]\""+  " value=\""+((data.HDFCOR) ? (data.HDFCOR).trim() : "")+"\">"+
						"<input type=\"hidden\" id=\"HDALIGN"+"_"+deri+ "\" name=\""+ditem+"HDALIGN[]\""+ " value=\""+(((data.HDALIGN) || data.HDALIGN == "0") ? data.HDALIGN : "0")+"\">"+
						"<input type=\"hidden\" id=\"HCVTYPE"+"_"+deri+ "\" name=\""+ditem+"HCVTYPE[]\""+ " value=\""+(((data.HCVTYPE) || data.HCVTYPE == "0") ? data.HCVTYPE : "1")+"\">"+
						"<input type=\"hidden\" id=\"HFOCMV"+"_"+deri+  "\" name=\""+ditem+"HFOCMV[]\""+ " value=\""+(((data.HFOCMV) || data.HFOCMV == "0") ? data.HFOCMV : "1")+"\">"+
					"</td>"+
					"<td class=\"proj_all_td\" title=\""+((loary['WORKHTMLOBJ_SAT']) ? loary['WORKHTMLOBJ_SAT'] : 'WORKHTMLOBJ_SAT')+"\">"+ // 存檔類型 
						"<select id=\"HTYPE"+"_"+deri+"\" name=\""+ditem+"HTYPE[]\" class=\"HTYPE_sect\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
							"<option value=\"\" "          +(((data.HTYPE) && (data.HTYPE).trim() == "") ? "selected" : "")          +">"+((loary['WHOHTYPE0']) ? loary['WHOHTYPE0'] : 'WHOHTYPE0')+"</option>"+ // 不須存檔(none) 
							"<option value=\"edNormal\" "  +(((data.HTYPE) && (data.HTYPE).trim() == "edNormal") ? "selected" : "")  +">"+((loary['WHOHTYPE1']) ? loary['WHOHTYPE1'] : 'WHOHTYPE1')+"</option>"+ // 字串(edNormal) 
							"<option value=\"edDateEdit\" "+(((data.HTYPE) && (data.HTYPE).trim() == "edDateEdit") ? "selected" : "")+">"+((loary['WHOHTYPE2']) ? loary['WHOHTYPE2'] : 'WHOHTYPE2')+"</option>"+ // 日期(edDateEdit) 
							"<option value=\"edTimeEdit\" "+(((data.HTYPE) && (data.HTYPE).trim() == "edTimeEdit") ? "selected" : "")+">"+((loary['WHOHTYPE3']) ? loary['WHOHTYPE3'] : 'WHOHTYPE3')+"</option>"+ // 時間(edTimeEdit) 
							"<option value=\"edNumeric\" " +(((data.HTYPE) && (data.HTYPE).trim() == "edNumeric") ? "selected" : "") +">"+((loary['WHOHTYPE4']) ? loary['WHOHTYPE4'] : 'WHOHTYPE4')+"</option>"+ // 正整數/下拉/單選/多選(edNumeric) 
							"<option value=\"edFloat\" "   +(((data.HTYPE) && (data.HTYPE).trim() == "edFloat") ? "selected" : "")   +">"+((loary['WHOHTYPE5']) ? loary['WHOHTYPE5'] : 'WHOHTYPE5')+"</option>"+ // 浮點數(edFloat) 
							"<option value=\"edEnNormal\" "+(((data.HTYPE) && (data.HTYPE).trim() == "edEnNormal") ? "selected" : "")+">"+((loary['WHOHTYPE6']) ? loary['WHOHTYPE6'] : 'WHOHTYPE6')+"</option>"+ // 加密(edEnNormal) 
						"</select>"+
					"</td>"+
					"<td class=\"proj_all_td\" title=\""+((loary['WORKHTMLOBJ_OBJ']) ? loary['WORKHTMLOBJ_OBJ'] : 'WORKHTMLOBJ_OBJ')+"\">"+ // HTML物件類型 
						"<select id=\"HINPUT"+"_"+deri+"\" name=\""+ditem+"HINPUT[]\" class=\"HINPUT_sect\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
							"<option value=\"edNormal\" "    +(((data.HINPUT) && (data.HINPUT).trim() == "edNormal") ? "selected" : "")    +">"+((loary['WHOHINPUT00']) ? loary['WHOHINPUT00'] : 'WHOHINPUT00')+"</option>"+ // 單行輸入物件(edNormal) 
							"<option value=\"edEditBtn\" "   +(((data.HINPUT) && (data.HINPUT).trim() == "edEditBtn") ? "selected" : "")   +">"+((loary['WHOHINPUT01']) ? loary['WHOHINPUT01'] : 'WHOHINPUT01')+"</option>"+ // 輸入物件+速查按鈕(edEditBtn) 
							"<option value=\"edEditBtnF\" "  +(((data.HINPUT) && (data.HINPUT).trim() == "edEditBtnF") ? "selected" : "")  +">"+((loary['WHOHINPUT02']) ? loary['WHOHINPUT02'] : 'WHOHINPUT02')+"</option>"+ // 浮點數物件+速查按鈕(edEditBtnF) 
							"<option value=\"edNumeric\" "   +(((data.HINPUT) && (data.HINPUT).trim() == "edNumeric") ? "selected" : "")   +">"+((loary['WHOHINPUT03']) ? loary['WHOHINPUT03'] : 'WHOHINPUT03')+"</option>"+ // 整數輸入(edNumeric) 
							"<option value=\"edFloat\" "     +(((data.HINPUT) && (data.HINPUT).trim() == "edFloat") ? "selected" : "")     +">"+((loary['WHOHINPUT04']) ? loary['WHOHINPUT04'] : 'WHOHINPUT04')+"</option>"+ // 浮點數輸入(edFloat) 
							"<option value=\"edComboList\" " +(((data.HINPUT) && (data.HINPUT).trim() == "edComboList") ? "selected" : "") +">"+((loary['WHOHINPUT05']) ? loary['WHOHINPUT05'] : 'WHOHINPUT05')+"</option>"+ // 下拉選單(edComboList) 
							"<option value=\"edWebHidden\" " +(((data.HINPUT) && (data.HINPUT).trim() == "edWebHidden") ? "selected" : "") +">"+((loary['WHOHINPUT06']) ? loary['WHOHINPUT06'] : 'WHOHINPUT06')+"</option>"+ // 隱藏欄位(edWebHidden) 
							"<option value=\"edWebSpan\" "   +(((data.HINPUT) && (data.HINPUT).trim() == "edWebSpan") ? "selected" : "")   +">"+((loary['WHOHINPUT07']) ? loary['WHOHINPUT07'] : 'WHOHINPUT07')+"</option>"+ // 純顯示不紀錄(edWebSpan) 
							"<option value=\"edWebStr\" "    +(((data.HINPUT) && (data.HINPUT).trim() == "edWebStr") ? "selected" : "")    +">"+((loary['WHOHINPUT08']) ? loary['WHOHINPUT08'] : 'WHOHINPUT08')+"</option>"+ // 純顯示要記錄(edWebStr) 
							"<option value=\"edWebReplace\" "+(((data.HINPUT) && (data.HINPUT).trim() == "edWebReplace") ? "selected" : "")+">"+((loary['WHOHINPUT09']) ? loary['WHOHINPUT09'] : 'WHOHINPUT09')+"</option>"+ // 替換文字(edWebReplace) 
							"<option value=\"edCheckBox\" "  +(((data.HINPUT) && (data.HINPUT).trim() == "edCheckBox") ? "selected" : "")  +">"+((loary['WHOHINPUT10']) ? loary['WHOHINPUT10'] : 'WHOHINPUT10')+"</option>"+ // 多選物件(edCheckBox) 
							"<option value=\"edRadioGroup\" "+(((data.HINPUT) && (data.HINPUT).trim() == "edRadioGroup") ? "selected" : "")+">"+((loary['WHOHINPUT11']) ? loary['WHOHINPUT11'] : 'WHOHINPUT11')+"</option>"+ // 單選物件(edRadioGroup) 
							"<option value=\"edDateEdit\" "  +(((data.HINPUT) && (data.HINPUT).trim() == "edDateEdit") ? "selected" : "")  +">"+((loary['WHOHINPUT12']) ? loary['WHOHINPUT12'] : 'WHOHINPUT12')+"</option>"+ // 日期物件(edDateEdit) 
							"<option value=\"edFileLoad\" "  +(((data.HINPUT) && (data.HINPUT).trim() == "edFileLoad") ? "selected" : "")  +">"+((loary['WHOHINPUT13']) ? loary['WHOHINPUT13'] : 'WHOHINPUT13')+"</option>"+ // 上傳附件(edFileLoad) 
							"<option value=\"edRichEdit\" "  +(((data.HINPUT) && (data.HINPUT).trim() == "edRichEdit") ? "selected" : "")  +">"+((loary['WHOHINPUT14']) ? loary['WHOHINPUT14'] : 'WHOHINPUT14')+"</option>"+ // 換行輸入物件(edRichEdit) 
							"<option value=\"edBotton\" "    +(((data.HINPUT) && (data.HINPUT).trim() == "edBotton") ? "selected" : "")    +">"+((loary['WHOHINPUT15']) ? loary['WHOHINPUT15'] : 'WHOHINPUT15')+"</option>"+ // 按鈕物件(edBotton) 
							"<option value=\"edWebLnStr\" "  +(((data.HINPUT) && (data.HINPUT).trim() == "edWebLnStr") ? "selected" : "")  +">"+((loary['WHOHINPUT16']) ? loary['WHOHINPUT16'] : 'WHOHINPUT16')+"</option>"+ // 語系文字(edWebLnStr) 
							"<option value=\"edEnNormal\" "  +(((data.HINPUT) && (data.HINPUT).trim() == "edEnNormal") ? "selected" : "")  +">"+((loary['WHOHINPUT17']) ? loary['WHOHINPUT17'] : 'WHOHINPUT17')+"</option>"+ // 加密輸入物件(edEnNormal) 
							"<option value=\"edSubBtn\" "    +(((data.HINPUT) && (data.HINPUT).trim() == "edSubBtn") ? "selected" : "")    +">"+((loary['WHOHINPUT25']) ? loary['WHOHINPUT25'] : 'WHOHINPUT25')+"</option>"+ // 子檔按鈕物件(edSubBtn) 
							"<option value=\"edPathImg\" "   +(((data.HINPUT) && (data.HINPUT).trim() == "edPathImg") ? "selected" : "")   +">"+((loary['WHOHINPUT26']) ? loary['WHOHINPUT26'] : 'WHOHINPUT26')+"</option>"+ // 圖片顯示物件(edPathImg) 
							"<option value=\"edUploadImg\" " +(((data.HINPUT) && (data.HINPUT).trim() == "edUploadImg") ? "selected" : "") +">"+((loary['WHOHINPUT27']) ? loary['WHOHINPUT27'] : 'WHOHINPUT27')+"</option>"+ // 圖片上傳物件(edUploadImg) 
							"<option value=\"edViewBtn\" "   +(((data.HINPUT) && (data.HINPUT).trim() == "edViewBtn") ? "selected" : "")   +">"+((loary['WHOHINPUT28']) ? loary['WHOHINPUT28'] : 'WHOHINPUT28')+"</option>"+ // 純顯示資料按鈕物件(edViewBtn) 
							"<option value=\"edProcBtn\" "   +(((data.HINPUT) && (data.HINPUT).trim() == "edProcBtn") ? "selected" : "")   +">"+((loary['WHOHINPUT29']) ? loary['WHOHINPUT29'] : 'WHOHINPUT29')+"</option>"+ // 觸發PROC按鈕物件(edProcBtn) 
							"<option value=\"edExportBtn\" " +(((data.HINPUT) && (data.HINPUT).trim() == "edExportBtn") ? "selected" : "") +">"+((loary['WHOHINPUT30']) ? loary['WHOHINPUT30'] : 'WHOHINPUT30')+"</option>"+ // 匯出檔案按鈕物件(edExportBtn) 
							"<option value=\"edImportBtn\" " +(((data.HINPUT) && (data.HINPUT).trim() == "edImportBtn") ? "selected" : "") +">"+((loary['WHOHINPUT31']) ? loary['WHOHINPUT31'] : 'WHOHINPUT31')+"</option>"+ // 匯入檔案按鈕物件(edImportBtn) 
							"<option value=\"edyymmEdit\" "  +(((data.HINPUT) && (data.HINPUT).trim() == "edyymmEdit") ? "selected" : "")  +">"+((loary['WHOHINPUT32']) ? loary['WHOHINPUT32'] : 'WHOHINPUT32')+"</option>"+ // 年月物件(edyymmEdit) 
							"<option value=\"edYearEdit\" "  +(((data.HINPUT) && (data.HINPUT).trim() == "edYearEdit") ? "selected" : "")  +">"+((loary['WHOHINPUT33']) ? loary['WHOHINPUT33'] : 'WHOHINPUT33')+"</option>"+ // 年份物件(edYearEdit) 
							"<option value=\"edMonthEdit\" " +(((data.HINPUT) && (data.HINPUT).trim() == "edMonthEdit") ? "selected" : "") +">"+((loary['WHOHINPUT34']) ? loary['WHOHINPUT34'] : 'WHOHINPUT34')+"</option>"+ // 月份物件(edMonthEdit) 
							"<option value=\"edTimeEdit\" "  +(((data.HINPUT) && (data.HINPUT).trim() == "edTimeEdit") ? "selected" : "")  +">"+((loary['WHOHINPUT35']) ? loary['WHOHINPUT35'] : 'WHOHINPUT35')+"</option>"+ // 時間物件(edTimeEdit) 
							"<option value=\"edSignature\" " +(((data.HINPUT) && (data.HINPUT).trim() == "edSignature") ? "selected" : "") +">"+((loary['WHOHINPUT36']) ? loary['WHOHINPUT36'] : 'WHOHINPUT36')+"</option>"; // 簽名物件(edSignature) 
			if (mdtp == "M" || mdtp == "MP" || mdtp == "DM") {
				hstr +=		"<option value=\"edGetNoDate\" " +(((data.HINPUT) && (data.HINPUT).trim() == "edGetNoDate") ? "selected" : "") +">"+((loary['WHOHINPUT18']) ? loary['WHOHINPUT18'] : 'WHOHINPUT18')+"</option>"+ // 單號產生用日期(edGetNoDate) 
							"<option value=\"edParaLine\" "  +(((data.HINPUT) && (data.HINPUT).trim() == "edParaLine") ? "selected" : "")  +">"+((loary['WHOHINPUT19']) ? loary['WHOHINPUT19'] : 'WHOHINPUT19')+"</option>"+ // 水平線(edParaLine) 
							"<option value=\"edMtodBtn\" "   +(((data.HINPUT) && (data.HINPUT).trim() == "edMtodBtn") ? "selected" : "")   +">"+((loary['WHOHINPUT20']) ? loary['WHOHINPUT20'] : 'WHOHINPUT20')+"</option>"+ // 主檔帶副檔按鈕物件(edMtodBtn) 
							"<option value=\"edCkEditor\" "  +(((data.HINPUT) && (data.HINPUT).trim() == "edCkEditor") ? "selected" : "")  +">"+((loary['WHOHINPUT21']) ? loary['WHOHINPUT21'] : 'WHOHINPUT21')+"</option>"; // 文字編輯器(edCkEditor) 
			} else {
				hstr +=		"<option value=\"edDelIcon\" "   +(((data.HINPUT) && (data.HINPUT).trim() == "edDelIcon") ? "selected" : "")   +">"+((loary['WHOHINPUT22']) ? loary['WHOHINPUT22'] : 'WHOHINPUT22')+"</option>"+ // 刪除圖示(edDelIcon) 
							"<option value=\"edSerial\" "    +(((data.HINPUT) && (data.HINPUT).trim() == "edSerial") ? "selected" : "")    +">"+((loary['WHOHINPUT23']) ? loary['WHOHINPUT23'] : 'WHOHINPUT23')+"</option>"+ // 序號物件(edSerial) 
							"<option value=\"edCustIcon\" "  +(((data.HINPUT) && (data.HINPUT).trim() == "edCustIcon") ? "selected" : "")  +">"+((loary['WHOHINPUT24']) ? loary['WHOHINPUT24'] : 'WHOHINPUT24')+"</option>"; // 自訂圖示物件(edCustIcon) 
			}
			hstr +=		"</select>"+
					"</td>"+
					"<td class=\"proj_all_td\" title=\""+((loary['WORKHTMLOBJ_WTS']) ? loary['WORKHTMLOBJ_WTS'] : 'WORKHTMLOBJ_WTS')+"\">"+ // 欄位寬度 
						"<input type=\"text\" id=\"HSIZE"+"_"+deri+"\" name=\""+ditem+"HSIZE[]\" class=\"HSIZE_text\" value=\""+(((data.HSIZE) || data.HSIZE == "0") ? data.HSIZE : "0")+"\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
					"</td>"+
					"<td class=\"proj_all_td\" title=\""+((loary['WORKHTMLOBJ_HIS']) ? loary['WORKHTMLOBJ_HIS'] : 'WORKHTMLOBJ_HIS')+"\">"+ // 欄位高度 
						"<input type=\"text\" id=\"HHIGH"+"_"+deri+"\" name=\""+ditem+"HHIGH[]\" class=\"HHIGH_text\" value=\""+(((data.HHIGH) || data.HHIGH == "0") ? data.HHIGH : "0")+"\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
					"</td>"+
					"<td class=\"proj_all_td\" title=\""+((loary['WORKHTMLOBJ_BRS']) ? loary['WORKHTMLOBJ_BRS'] : 'WORKHTMLOBJ_BRS')+"\">"+ // 加入換行標籤(BR標籤) 
						"<select id=\"HSHOWBR"+"_"+deri+"\" name=\""+ditem+"HSHOWBR[]\" class=\"HSHOWBR_sect\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
							"<option value=\"0\" "+((((data.HSHOWBR) || data.HSHOWBR == "0") && data.HSHOWBR == "0") ? "selected" : "")+">"+((loary['WORKHTMLOBJ_LOSE']) ? loary['WORKHTMLOBJ_LOSE'] : 'WORKHTMLOBJ_LOSE')+"</option>"+ // 未啟用(不換行) 
							"<option value=\"1\" "+((((data.HSHOWBR) || data.HSHOWBR == "0") && data.HSHOWBR == "1") ? "selected" : "")+">"+((loary['WORKHTMLOBJ_OPEN']) ? loary['WORKHTMLOBJ_OPEN'] : 'WORKHTMLOBJ_OPEN')+"</option>"+ // 啟用(換行) 
						"</select>"+
					"</td>"+
					"<td class=\"proj_all_td\" title=\""+((loary['WORKHTMLOBJ_TDE']) ? loary['WORKHTMLOBJ_TDE'] : 'WORKHTMLOBJ_TDE')+"\">"+ // TD結束 
						"<select id=\"HSWAPTD"+"_"+deri+"\" name=\""+ditem+"HSWAPTD[]\" class=\"HSWAPTD_sect\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
							"<option value=\"0\" "+((((data.HSWAPTD) || data.HSWAPTD == "0") && data.HSWAPTD == "0") ? "selected" : "")+">"+((loary['WORKHTMLOBJ_NOT']) ? loary['WORKHTMLOBJ_NOT'] : 'WORKHTMLOBJ_NOT')+"</option>"+ // 否 
							"<option value=\"1\" "+((((data.HSWAPTD) || data.HSWAPTD == "0") && data.HSWAPTD == "1") ? "selected" : "")+">"+((loary['WORKHTMLOBJ_YES']) ? loary['WORKHTMLOBJ_YES'] : 'WORKHTMLOBJ_YES')+"</option>"+ // 是 
						"</select>";
			if (mdtp == "M" || mdtp == "MP" || mdtp == "DM") {
				hstr += 
					"</td>"+
					"<td class=\"proj_all_td\" title=\""+((loary['WORKHTMLOBJ_TDS']) ? loary['WORKHTMLOBJ_TDS'] : 'WORKHTMLOBJ_TDS')+"\">"+ // TD格數(橫) 
						"<select id=\"HCOLSPAN"+"_"+deri+"\" name=\""+ditem+"HCOLSPAN[]\" class=\"HCOLSPAN_sect\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">";
				for (var j = 0; j <= 10; j++) {
					hstr += "<option value=\""+j.toString()+"\" "+((((data.HCOLSPAN) || data.HCOLSPAN == "0") && data.HCOLSPAN == j) ? "selected" : "")+">"+j.toString()+"</option>";
				}
				hstr += "</select>"+
					"</td>"+
					"<td class=\"proj_all_td\" title=\""+((loary['WORKHTMLOBJ_TRS']) ? loary['WORKHTMLOBJ_TRS'] : 'WORKHTMLOBJ_TRS')+"\">"+ // TD格數(縱) 
						"<select id=\"HROWSPAN"+"_"+deri+"\" name=\""+ditem+"HROWSPAN[]\" class=\"HROWSPAN_sect\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">";
				for (var j = 0; j <= 20; j++) {
					hstr += "<option value=\""+j.toString()+"\" "+((((data.HROWSPAN) || data.HROWSPAN == "0") && data.HROWSPAN == j) ? "selected" : "")+">"+j.toString()+"</option>";
				}
				hstr += "</select>"+
					"</td>"+"<td class=\"proj_all_td\" title=\""+((loary['WORKHTMLOBJ_THV']) ? loary['WORKHTMLOBJ_THV'] : 'WORKHTMLOBJ_THV')+"\">"+ // 物件標籤名稱(TH名稱) 
						"<select id=\"HSHOWTH"+"_"+deri+"\" name=\""+ditem+"HSHOWTH[]\" class=\"HSHOWTH_sect\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
							"<option value=\"0\" "+((((data.HSHOWTH) || data.HSHOWTH == "0") && data.HSHOWTH == "0") ? "selected" : "")+">"+((loary['WORKHTMLOBJ_HIDE']) ? loary['WORKHTMLOBJ_HIDE'] : 'WORKHTMLOBJ_HIDE')+"</option>"+ // 隱藏(不顯示) 
							"<option value=\"1\" "+((((data.HSHOWTH) || data.HSHOWTH == "0") && data.HSHOWTH == "1") ? "selected" : "")+">"+((loary['WORKHTMLOBJ_SHOW']) ? loary['WORKHTMLOBJ_SHOW'] : 'WORKHTMLOBJ_SHOW')+"</option>"+ // 顯示 
						"</select>"+
					"</td>"+
					"<td class=\"proj_all_td\" title=\""+((loary['WORKHTMLOBJ_TRE']) ? loary['WORKHTMLOBJ_TRE'] : 'WORKHTMLOBJ_TRE')+"\">"+ // TR結束 
						"<select id=\"HSWAPTR"+"_"+deri+"\" name=\""+ditem+"HSWAPTR[]\" class=\"HSWAPTR_sect\""+(((sttext) && sttext == "disabled") ? " disabled" : "")+">"+
							"<option value=\"0\" "+((((data.HSWAPTR) || data.HSWAPTR == "0") && data.HSWAPTR == "0") ? "selected" : "")+">"+((loary['WORKHTMLOBJ_NOT']) ? loary['WORKHTMLOBJ_NOT'] : 'WORKHTMLOBJ_NOT')+"</option>"+ // 否 
							"<option value=\"1\" "+((((data.HSWAPTR) || data.HSWAPTR == "0") && data.HSWAPTR == "1") ? "selected" : "")+">"+((loary['WORKHTMLOBJ_YES']) ? loary['WORKHTMLOBJ_YES'] : 'WORKHTMLOBJ_YES')+"</option>"+ // 是 
						"</select>"+
					"</td>";
			} else {
				hstr += "<input type=\"hidden\" id=\"HCOLSPAN"+"_"+deri+"\" name=\""+ditem+"HCOLSPAN[]\""+" value=\""+(((data.HCOLSPAN) || data.HCOLSPAN == "0") ? data.HCOLSPAN : "0")+"\">"+
						"<input type=\"hidden\" id=\"HROWSPAN"+"_"+deri+"\" name=\""+ditem+"HROWSPAN[]\""+" value=\""+(((data.HROWSPAN) || data.HROWSPAN == "0") ? data.HROWSPAN : "0")+"\">"+
						"<input type=\"hidden\" id=\"HSHOWTH"+"_" +deri+"\" name=\""+ditem+"HSHOWTH[]\""+ " value=\"" +(((data.HSHOWTH) || data.HSHOWTH == "0") ? data.HSHOWTH : "1")+"\">"+
						"<input type=\"hidden\" id=\"HSWAPTR"+"_" +deri+"\" name=\""+ditem+"HSWAPTR[]\""+ " value=\"" +(((data.HSWAPTR) || data.HSWAPTR == "0") ? data.HSWAPTR : "1")+"\">"+
					"</td>";
			}
			break;
	}
	return hstr;
}