anchor.diff:  //method to search for the given term in vocabularies
   function serachForTermInVocab()
   {
  -	label=document.getElementById("searhLabel");
  -    label.innerHTML="  Searching .... Please Wait";
  -    waitCursor();
  +	var searchTerm=document.getElementById("searchtextfield").value;
  +	void(d=document);
  +	var vocabCheckboxes=d.getElementsByName("vocabNameAndVersionCheckbox");
   	var targetVocabsForSearchTerm="";
  -	void(d=document);
  -	void(vocabCheckboxes=d.getElementsByName("vocabNameAndVersionCheckbox"));
  -	for(i=0;i<vocabCheckboxes.length;i++)
  -	{
  -		if(vocabCheckboxes[i].checked==1)
  -		{
  -			targetVocabsForSearchTerm=targetVocabsForSearchTerm+vocabCheckboxes[i].value+"@";
  -			uncheckAllAndDeleteFromArray(vocabCheckboxes[i].id.replace("vocab_",""));
  -		}
  -	}
  -	var searchTerm=document.getElementById("searchtextfield").value;
  -	var request = newXMLHTTPReq(); 
  -	if(request == null)
  -	{
  -		alert ("Your browser does not support AJAX!");
  -		return;
  -	}
  -		// send request only first time when user click on the check box for other click  just hide and show the div 
  -		var param = "searchTerm="+searchTerm+"&targetVocabsForSearchTerm="+targetVocabsForSearchTerm;
  -		var actionUrl="SearchPermissibleValues.do";
  -		request.onreadystatechange=function(){getSearchTermResult(request)};
  -		request.open("POST",actionUrl,true);
  -		request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
  -		request.send(param);
  +			
  +			for(i=0;i<vocabCheckboxes.length;i++)
  +			{
  +				if(vocabCheckboxes[i].checked==1)
  +				{
  +					targetVocabsForSearchTerm=targetVocabsForSearchTerm+vocabCheckboxes[i].value+"@";
  +					uncheckAllAndDeleteFromArray(vocabCheckboxes[i].id.replace("vocab_",""));
  +				}
  +			}
  +			
  +	if(! checkForSplChar(searchTerm)  && checkForEmptyText(searchTerm) && isVocabSelected(targetVocabsForSearchTerm))
  +	{
  +	
  +			label=document.getElementById("searhLabel");
  +		    label.innerHTML="  Searching .... Please Wait";
  +		    waitCursor();
  +			
  +			var request = newXMLHTTPReq(); 
  +			if(request == null)
  +			{
  +				alert ("Your browser does not support AJAX!");
  +				return;
  +			}
  +			// send request only first time when user click on the check box for other click  just hide and show the div 
  +			var param = "searchTerm="+searchTerm+"&targetVocabsForSearchTerm="+targetVocabsForSearchTerm;
  +			var actionUrl="SearchPermissibleValues.do";
  +			request.onreadystatechange=function(){getSearchTermResult(request)};
  +			request.open("POST",actionUrl,true);
  +			request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
  +			request.send(param);
  +	}
   }
   	
   function getSearchTermResult(request)
  
positive.code: 					<table bgcolor="#FFFFFF">
  					<tr>
  					<td style="padding:5px;">
  						<div style="width: 250px; height:313px; border:1px solid Silver; overflow:auto;"  >
  						<table cellpadding="0" cellspacing="0"  border="0">
  						<logic:iterate name="Vocabulries" id="vocabs">
  							<tr><td><div id = "selectedPermValues_Div_${vocabs.name}@${vocabs.version}" style="display:none">
  
negative.code: 							<c:if test="${vocabs.version eq srcVocabVer}" >
  								<tr>
  								<td valign="top">
  									<div id="main_div_vocab_${vocabs.name}${vocabs.version}" style="">
  									<% String treeData = (String)request.getSession().getAttribute(Constants.MED_PV_HTML); %>
  									<%=treeData%>
  									</div>
  