anchor.diff:  						var optLen = window.opener.document.GroupForm.associatedIds.options.length++;	
   						window.opener.document.GroupForm.associatedIds.options[optLen].text = document.UserForm.lgName.value;
   						window.opener.document.GroupForm.associatedIds.options[optLen].value = document.UserForm.userId.value;
  +						ischecked = true;
   					}		
   				}
   	  		}
  
positive.code: 
  						window.opener.document.ApplicationForm.associatedIds.options[optLen].text = document.UserForm.lgName[i].value;
  						window.opener.document.ApplicationForm.associatedIds.options[optLen].value = document.UserForm.userId[i].value;
  					}
  				}
  			}
  		}		
  		if(isgroupform)
  
negative.code: 
  						window.opener.document.GroupForm.associatedIds.options[optLen].text = document.UserForm.lgName[i].value;
  						window.opener.document.GroupForm.associatedIds.options[optLen].value = document.UserForm.userId[i].value;
  
  					}
  					ischecked = true;
  				}
  			}
  		}		
  		
  		if(ischecked)
  		      window.close();
  		else
  			alert("Atleast one check box should be checked.");
  	}  
  		// -->
  </script>
  