<mce:script language="javascript"><!-- array_workerBasicPrint = new Array("lwNo","db","actFlag","name","cardNo","areaId","enterpriseId","enterpriseName","personStatus","personOfType","workerPrintFlag"); function ToCard(str) { if(str.indexOf("#",0) != -1) { var n = str.length; var x = 0; for(0;x < n;x++) { if(str.indexOf("#",x) != -1) { str = str.replace("#","%23"); } } } return str; } function getCondition(objName) { var doc = document; var f = doc.forms[0]; var obj = doc.getElementById(objName); var condition = ""; if (obj == undefined){ }else{ if(obj.value != "") { if(objName.indexOf("T_") != -1) { objName = objName.replace("T_",""); condition = "&"+objName+"="+ToCard(obj.value); }else{ condition = "&"+obj.name+"="+ToCard(obj.value); } }else{ } } return condition; } function getQueryLink(arrayName) { var queryLink = ""; for(i=0;i<arrayName.length;i++) { queryLink = queryLink + getCondition(arrayName[i]); } return queryLink; } function createLink() { var actionValue = document.forms[0].action.value; link = "/jgcWeb/worker/workBasicPrint.do?action="+actionValue + getQueryLink(array_workerBasicPrint); parent.path.value = link; } // --></mce:script>