anchor.diff:  			 }
           }         
   	</script>
  +	
  +	<script type="text/javascript">
  +		function insertAtCursor() {
  +			var myField = document.getElementById('plannedNotifications.message');
  +			var myValue = document.getElementById('subVar');
  +			//IE support
  +			if (document.selection) {
  +				myField.focus();
  +				//in effect we are creating a text range with zero
  +				//length at the cursor location and replacing it
  +				//with myValue
  +				sel = document.selection.createRange();
  +				sel.text = myValue.value;
  +			}
  +			//Mozilla/Firefox/Netscape 7+ support
  +			else if (myField.selectionStart == '0' || myField.selectionStart == '0') {
  +				//Here we get the start and end points of the
  +				//selection. Then we create substrings up to the
  +				//start of the selection and from the end point
  +				//of the selection to the end of the field value.
  +				//Then we concatenate the first substring, myValue,
  +				//and the second substring to get the new value.
  +				var startPos = myField.selectionStart;
  +				var endPos = myField.selectionEnd;
  +				myField.value = myField.value.substring(0, startPos)+ " ${" + myValue.value + "} " + myField.value.substring(endPos, myField.value.length);
  +			} else {
  +				myField.value += " ${" + myValue.value + "} ";
  +			}
  +		}
  +	</script> 
   	</head>
   	
   	<body>
  
positive.code: 						</c:forEach>
  					</table>
  		      		</td>
  		   
  			      	<td align="center" colspan="2">
  			      		<table id="table2" width="50%">
  			      			<tr></tr>
  							<c:forEach var="role" varStatus="roleStatus" items="${command.plannedNotifications[nStatus.index].roleBasedRecipient}">
  								<tr id="table2-${roleStatus.index}">
  								<td class="alt">
  
negative.code: 	        </tr>
  	        
  	        <tr><td align="right">Frequency:</td>
  	            <td>
  		            <select id="plannedNotifications[PAGE.ROW.INDEX].frequency" 
  		            		name="plannedNotifications[PAGE.ROW.INDEX].frequency" class="validate-notEmpty">
  	                    <c:forEach items="${notificationFrequencyRefData}" var="frequency">
  							<option value="${frequency.code}">${frequency.desc}</option>
  						</c:forEach>
  	                </select>
  	        	</td>
  	        	<td></td>
  