function delFbDialog(siBoxId, siTextAreaId){
   this.sBoxId = siBoxId;
   this.sTextAreaId = siTextAreaId;
   this.iCurFbId = 0; //The current id of fb elem to process.
   this.iCurFbTypeCode = 0; //Type current id: concur, fav or pers note.
   this.show = delFbShow;   
   this.yesSelected = delFbYesSelected;
   this.noSelected = delFbNoSelected;
   this.privComplete = delFbComplete;
}


function delFbYesSelected(){
   var url = csServerUrlRoot + '/del_fb_update';
   
   var myAjax = new Ajax.Request(
      url,
      {
         method: 'post',
         parameters: {content_id: this.iCurFbId, content_type_code:this.iCurFbTypeCode},
         onComplete: this.privComplete
      });
}

/*
Desc.:
In:

*/
function delFbNoSelected(){
   //We just don't proceed if the user presses no.
}

/*

Note: All ajax on complete function are callback where only the func is passed and not the obj.  Inside callbacks, you cannot access 
   object data members.
*/
function delFbComplete(iRequest){
   
   if (csAjaxRespPass == iRequest.responseText){      
      notifBoxJsObj.show("Deletion complete.");
      setTimeout("",csNotifTimeout);      
      window.location.reload();
   }
   else{
      notifBoxJsObj2.show("An error occured while trying to delete element.");  
   }
}

function delFbShow(iiContentTypeCode, iiContentId, siMsg){      
   this.iCurFbId = iiContentId; //The current id of fb elem to process.
   this.iCurFbTypeCode = iiContentTypeCode;
   
   //For FF
   document.getElementById(this.sTextAreaId).defaultValue = siMsg;
   //For IE
   document.getElementById(this.sTextAreaId).value = siMsg;
   return sm(this.sBoxId, csStdConfDialogWidth, csStdConfDialogHeight);
}
