function getWidgetCode(projectId) {
   $('#widgetCodeDiv').html("<img src=\"/img/icons/progress_bar.gif\"/>&nbsp;Getting Widget Code..");
   $.ajax({
     type: "GET",
     url: "/dy/v2/uk/widget/code.html?projectIds="+projectId+ 
     "&includeSummary=false" +
     "&borderColor=" + "e19b2d" + "&borderWidth=1"  + 
     "&height=" + "240" + "&width=" + "180" +
     "&backgroundColor=" + "fff" + "&hoverColor=" + "f7f7f7",
     contentType: "application/html",
     cache: false,
     error: function(xhr, msg) {                      
         var errors = eval(xhr);         
         $('#widgetCodeDiv').html('<div class=\"errors\"><ul><li><strong>Error:</strong></li><li>There was an unknown error calling the Web Service<br/><br/>' + xhr.responseText + '</li></ul></div>');             
     },
     success: function(msg, textStatus) {
      $('#widgetCodeDiv').html('');
      $('#widgetCodeDiv').append(msg);
      $('#code').focus();
      $('#code').select();
     }
   });
   return false;                  
} 
function getWidgetCodeFundraiser(fundraiserId) {
   $('#widgetCodeDiv').html("<img src=\"/img/icons/progress_bar.gif\"/>&nbsp;Getting Widget Code..");
   $.ajax({
     type: "GET",
     url: "/dy/v2/uk/widget/code.html?fundraiserId="+fundraiserId+ 
     "&includeSummary=false" +
     "&borderColor=" + "e19b2d" + "&borderWidth=1"  + 
     "&height=" + "255" + "&width=" + "180" +
     "&backgroundColor=" + "fff" + "&hoverColor=" + "f7f7f7",
     contentType: "application/html",
     cache: false,
     error: function(xhr, msg) {                      
         var errors = eval(xhr);         
         $('#widgetCodeDiv').html('<div class=\"errors\"><ul><li><strong>Error:</strong></li><li>There was an unknown error calling the Web Service<br/><br/>' + xhr.responseText + '</li></ul></div>');             
     },
     success: function(msg, textStatus) {
      $('#widgetCodeDiv').html('');
      $('#widgetCodeDiv').append(msg);
      $('#code').focus();
      $('#code').select();
     }
   });
   return false;                  
}
