anchor.diff:  			  '</td>'+
   		  '</tr>';
   		  
  -	    $('#'+tableID+' tr:last').after(rowData);
  +	    $('#'+tableID).append(rowData);
  +	}
  +	
  +	function addRowVcloud(tableID,id,protocol,fromPort,toPort,cidrIps) {
  +		var rowData = '<tr valign="top">'+
  +			  '<input type="hidden" name="ids" id="ids" value=0>'+
  +			  '<td style="width: 5%;"><input type="text" name="rname" id="rname" size="10" class="required"></td>'+
  +			  '<td style="width: 5%;"><select name="direction" id="direction" style="width:80px;" class="required"></select></td>'+
  +			  '<td style="width: 5%;"><input type="text" name="sourceIP" id="sourceIP" size="10" class="required"></td>'+
  +			  '<td style="width: 5%;"><select name="sourcePort" id="sourcePort" style="width:80px;" class="required"></select></td>'+
  +			  '<td style="width: 5%;"><input type="text" name="destinationIP" id="destinationIP" size="10" class="required"></td>'+
  +			  '<td style="width: 5%;"><select name="destinationPort" id="destinationPort" style="width:80px;" class="required number"></select></td>'+
  +			  '<td style="width: 5%;"><select name="protocol" id="protocol" style="width:80px;" class="required number"></select></td>'+
  +			  '<td style="width: 5%;"><select name="action" id="action" style="width:80px;" class="required number"></select></td>'+
  +			  '<td style="width: 5%;"><input type="checkbox" name="status" id="status" size="10" ></td>'+
  +			  '<td style="width: 5%;">'+
  +					'<a title="Remove Rule" onclick="deleteRow(this,null)"><img src=../images/minus.png></a>'+
  +			  '</td>'+
  +		  '</tr>';
  +		  
  +	    $('#'+tableID).append(rowData);
  +	}
  +	
  +	function addRowWithDataVcloud(tableID, ipPermissionP) {
  +		var rowData = '<tr valign="top">'+
  +			  '<input type="hidden" name="ids" id="ids" value=0>'+
  +			  '<td style="width: 5%;"><input type="text" name="vcloudName" id="vcloudName" size="10" value=\''+ipPermissionP.vcloudName+'\' class="required"></td>'+
  +			  '<td style="width: 5%;"><select name="vcloudDirection" id="vcloudDirection" style="width:80px;" class="required">'+ 
  +			  		'<option value=\''+ipPermissionP.vcloudDirection+'\'>'+ipPermissionP.vcloudDirection+'</option></select></td>'+
  +			  '<td style="width: 5%;"><input type="text" name="vcloudSourceIp" id="vcloudSourceIp" size="10" value=\''+ipPermissionP.vcloudSourceIp+'\' class="required"></td>'+
  +			  '<td style="width: 5%;"><select name="vcloudSourcePort" id="vcloudSourcePort" style="width:80px;" class="required">'+ 
  +			  		'<option value=\''+ipPermissionP.vcloudSourcePort+'\'>'+ipPermissionP.vcloudSourcePort+'</option></select></td>'+
  +			  '<td style="width: 5%;"><input type="text" name="vcloudDestinationIp" id="vcloudDestinationIp" size="10" value=\''+ipPermissionP.vcloudDestinationIp+'\' class="required"></td>'+
  +			  '<td style="width: 5%;"><select name="vcloudDestinationPort" id="vcloudDestinationPort" style="width:80px;" class="required number">'+
  +			  		'<option value=\''+ipPermissionP.vcloudDestinationPort+'\'>'+ipPermissionP.vcloudDestinationPort+'</option></select></td>'+
  +			  '<td style="width: 5%;"><select name="protocol" id="protocol" style="width:80px;" class="required number">'+
  +			  		'<option value=\''+ipPermissionP.protocol+'\'>'+ipPermissionP.protocol+'</option></select></td>'+
  +			  '<td style="width: 5%;"><select name="action" id="action" style="width:80px;" class="required number">'+ 
  +			  		'<option value=\''+ipPermissionP.protocol+'\'>'+ipPermissionP.protocol+'</option></select></td>'+
  +			  '<td style="width: 5%;"><input type="checkbox" name="vcloudEnabled" id="vcloudEnabled" size="10" checked=\''+ipPermissionP.vcloudEnabled+'\' ></td>'+
  +			  '<td style="width: 5%;">'+
  +					'<a title="Remove Rule" onclick="deleteRow(this,null)"><img src=../images/minus.png></a>'+
  +			  '</td>'+
  +		  '</tr>';
  +		  
  +	    $('#'+tableID).append(rowData);
   	}
   	
   	function deleteRow(row,id) {
  
positive.code:   				dwr.util.removeAllOptions('product');
    				dwr.util.addOptions('product', p,'id','name');
    				//dwr.util.setValue(id, sel);
    			});
  			
  			$("#thisform").validate({
  
negative.code: 	}
  
  	var viewed_secgroup = -1;	
  	$(function(){
  		$("#popupbutton_secgroup").click(function(){
  			viewed_secgroup = -1;
  			centerPopup_secgroup();
  			loadPopup_secgroup();
  			var groupDescriptionp = {  id:null,name:null, url:null };
  		  	dwr.util.setValues(groupDescriptionp);
  		  	clearTable('secTable');
  		  	addRowLabel('secTable');
  		  	addRow('secTable');
  		});
  		
  		$("#popupbutton_secgrouplist").click(function(){
  			
  				dwr.engine.beginBatch();
  				start =0;
  				$('#SearchField').val('');
  				GroupDescriptionP.findAll4Edit(start,max,'',findAll_secgroup);
  			  dwr.engine.endBatch();
  		} );
  		
  		$("#popupbutton_previous").click(function(){
  			if(start>16){
  				start=start -17;
  			}
  			var text2Search = dwr.util.getValue("SearchField");
  			GroupDescriptionP.findAll4Edit(start,max,text2Search,findAll_secgroup);
  		} );
  		
  		$("#popupbutton_next").click(function(){
  			start = start +17;
  			var text2Search = dwr.util.getValue("SearchField");
  			GroupDescriptionP.findAll4Edit(start,max,text2Search,findAll_secgroup);
  		} );
  		
  		$("#popupbutton_search").click(function(){
  			
  			var text2Search = dwr.util.getValue("SearchField");
  			start = 0;
  			GroupDescriptionP.findAll4Edit(start,max,text2Search,findAll_secgroup);
  			
  		} );
  
  		ProjectService.findAll(function(p){
  			dwr.util.removeAllOptions('projectId');
  			//dwr.util.addOptions('project', p, 'id', 'name');
  			dwr.util.addOptions('projectId', p, 'id', function(p) {
  				return p.name+' @ '+p.department.name;
  			});
  			//dwr.util.setValue(id, sel);
  			
  		});
  	});
  
  		$("#popupContactClose_secgroup").click(function(){
  			viewed_secgroup = -1;
  