anchor.diff:  
   <html:hidden property="operation" styleId="operation" value="${requestScope.operation}"/>
   <html:hidden property="id" styleId="id" value="${requestScope.id}"/>
  -<select name="queryId" id="queryId" style="display:none">
  +<select name="queryId" id="queryId"  style="display:none">
  +	<logic:notEmpty name="workflowForm" property="queryId">
  +	<logic:iterate id="singleQueryId" name="workflowForm" property="queryId" indexId="queryIndex" >
  +		<OPTION VALUE="${workflowForm.queryId[queryIndex]}">${workflowForm.queryId[queryIndex]}</OPTION>
  +	</logic:iterate>
  +	</logic:notEmpty>
   </select>
  -<select name="queryTitle" id="queryTitle" style="display:none">
  +<select name="queryTitle" id="queryTitle"  style="display:none">
  +	<logic:notEmpty name="workflowForm" property="queryId">
  +	<logic:iterate id="singleQueryId" name="workflowForm" property="queryTitle" indexId="queryIndex" >
  +		<OPTION VALUE="${workflowForm.queryTitle[queryIndex]}">${workflowForm.queryTitle[queryIndex]}</OPTION>
  +	</logic:iterate>
  +	</logic:notEmpty>
   </select>
  -<select name="queryType" id="queryType" style="display:none">
  +<select name="queryType" id="queryType"  style="display:none">
  +<logic:notEmpty name="workflowForm" property="queryId">
  +	<logic:iterate id="singleQueryId" name="workflowForm" property="queryType" indexId="queryIndex" >
  +		<OPTION VALUE="${workflowForm.queryType[queryIndex]}">${workflowForm.queryType[queryIndex]}</OPTION>
  +	</logic:iterate>
  +	</logic:notEmpty>
   </select>
  -
  - <input type="button" name="btn" id="btn" onclick="updateUI()" style="display:none">
  +<html:hidden property="forwardTo"/>
  +
  + <input type="button" name="btn" id="btn" onclick="updateUI()">
   
   <table width="99%" border="0" valign="top"  cellpadding="0" cellspacing="0" style="padding-left:10px;">
   <tr>
  
positive.code: 					<tr>
  						<td width="12" valign="middle">&nbsp;</td>
  						<td width="10" valign="middle"><img src="images/advancequery/ic_arrow_small.gif" alt=""  align="absmiddle"></td>
  						 <td valign="middle"><a href="javascript:showNextReleaseMsg()" class="blacklink"><bean:message key="query.getcount"/></a></td>
  					</tr>
  					<tr>
  						<td width="12" valign="middle">&nbsp;</td>
  						<td width="10" valign="middle"><img src="images/advancequery/ic_arrow_small.gif" alt=""  align="absmiddle"></td>
  						<td valign="middle"><a href="javascript:showNextReleaseMsg()" class="blacklink"><bean:message key="query.getpatientdata"/></a></td>
  					</tr>
  					<tr>
  						<td valign="middle">&nbsp;</td>
  
negative.code: 	var buttonStatus=document.getElementById("buttonStatus");
  
  
  		buttonStatus.innerHTML= '<table><tr><td align="left" width="70"><img align="absmiddle" src="images/advancequery/b_union_inact.gif" alt="Union" width="60" height="23" border="0">'+
        ' <td width="106" align="left"><img align="absmiddle" src="images/advancequery/b_intersection_inact.gif" alt="Intersection" width="96" height="23" border="0"></td><td width="73" align="left"><img align="absmiddle" src="images/advancequery/b_minus_inact.gif" alt="Minus" width="63" height="23" border="0"></td> </tr></table>';
  	
  
  
  }setButtons();
  
  function updateOpenerUI() 
  { 
    if(document.getElementById)
  	{ 
           elm =document.getElementById("btn");
       } 
  
  	if (document.all)
  		{
  			elm.fireEvent('onclick');
  		}
  	else
  		{
  		var clickEvent = window.document.createEvent('MouseEvent');
          clickEvent.initEvent('click', false, true);
          elm.dispatchEvent(clickEvent);
  		}
   }updateOpenerUI();
   function forwardToWorkflow()
  {
  	
  	<%		
  		String id =(String) request.getAttribute("worflowId");
  	%>
  	
  	if(<%=id%>!=null)
  	{
  		
  		document.forms[0].action ="SearchObject.do?pageOf=pageOfWorkflow&id="+<%=id%>;
  		document.forms[0].submit();
  
  	}
  }forwardToWorkflow();
   
  </script>
  </body>