var AjaxObject = 
{
 handleSuccess_delete_adda_photo_comment:function(o){
        document.getElementById("photos_comments_view").innerHTML = o.responseText;        
  },
 handleFailure_delete_adda_photo_comment:function(o){
    // Failure handler                                                                                                                                   
  },
 handleStart_photo_comment:function(){
  },
 handleComplete_photo_comment:function(){
  },
 handleAbort_photo_comment :function(){
    // Abort handler
  } 
}


/* Callback object with custom events defined */ 
var callback_delete_adda_photo_comment =
{ 
    customevents:{ 
	        onStart:AjaxObject.handleStart_photo_comment, 
	        onComplete:AjaxObject.handleComplete_photo_comment,     
	        onAbort:AjaxObject.handleAbort_photo_comment
    },
    success:AjaxObject.handleSuccess_delete_adda_photo_comment,
    failure:AjaxObject.handleFailure_delete_adda_photo_comment,
    scope: AjaxObject
}


function deleteAddaPhotoComments(comment_id)
{
  var photo_id = document.getElementById('photo_post_id').value;
  var photo_comment_id = comment_id;
  var postData ='comment_id='+photo_comment_id+'&photo_post_id='+photo_id;

  YAHOO.util.Connect.asyncRequest('POST',system_base_url+'ajax/adda/_delete_adda_photo_comment/',callback_delete_adda_photo_comment,postData);
if(env_value == 'Online')
    {
	var url = system_base_url+'ajax/adda/_delete_adda_photo_comment/';
	pageTracker._trackPageview(url);
    }
    	    
}