anchor.diff:  <script>
   function activateAndSaveStudy(){
   	if (${fn:length(errors)} > 0){
  -		var d = $('errorsDiv');
  +		var d = $('errorsOpenDiv');
   		Dialog.alert(d.innerHTML, 
   		{width:500, height:200, okLabel: "close", ok:function(win) {debug("validate alert panel"); return true;}});
   	} else {
  
positive.code: 
  function createStudy(){
  	if (${fn:length(errors)} > 0){
  		var d = $('errorsDiv');
  		Dialog.alert(d.innerHTML, 
  		{width:500, height:200, okLabel: "close", ok:function(win) {debug("validate alert panel"); return true;}});
  	} else {
  
negative.code: 			</span></div>
  			</div>
  </chrome:box>
  <div id="errorsOpenDiv" style="display:none">
  	<div class="value" align="left">
  		<font size="2" face="Verdana" color="red">
  			Cannot Open Study. Please review the data.
  		</font>
  	</div>
  	
  