anchor.diff:  			
   		return true;
   	}		
  +
  +	makeDirty = function() {
  +		dirty = true;
  +	}
   </script>
  -	
  -       <input id="searchfield" type="text" name="query" value="Search Gemma" size="20"  onClick="clear()" onkeypress="isEnterHit(event)" />
  -       <input id="searchbutton" type="button" value="go" onClick="doSearch()" />+
  +<input id="searchfield" type="text" name="query" value="Search Gemma" size="20" onClick="clear();makeDirty()"
  +	onkeypress="isEnterHit(event)" />
  +<input id="searchbutton" type="button" value="go" onClick="doSearch()" />
positive.code: 		else
  		   return true;
  	}
  	//Place to validate the query the user typed in. 
  	valid = function(query){
  		if (query == null)
  			return false;
  		
  
negative.code: <%@ include file="/common/taglibs.jsp"%>
  
  <script type="text/javascript">
  
  	var dirty = false;
  
  	//Perform serach by creating a bookmark and forwarding to search page. 
  	doSearch = function( ){
  