function sendResponse()
{
	showLoadingSpinner($('#wrap'), 'Please wait...')
	try
	{
		var sessionUSID= participatingGetSessionUSID(); //function is from participatingSession.js
		var iteration= $.trim($('#participantSessionIteration').text());
		var table= getGridTable($('#participatingSessionResponseGridForm'));
		var nAlternatives= getNumberOfAlternatives(table);
		var nConcerns= getNumberOfConcerns(table);
		var form= $('#participatingSessionResponseGridForm');
		var strD= '';
		//serialize the disabled inputs
		form.find('input:disabled').each(function(){
			strD = strD + '&' + $(this).attr('name') + '=' + $(this).val();
		});
		var str=  'nConcerns=' + nConcerns + '&nAlternatives=' + nAlternatives + '&iteration=' + iteration + '&gridType=response&sessionUSID=' + sessionUSID + '&' + form.serialize() + strD;
		$.post('/sessions/respond/', str, function(data){
			try
			{
				if($(data).find('error').length <= 0)
				{
					var dateTime = $(data).find('dateTime').text();
					$('#responseStatusA').attr('class', 'green');
					$('#responseStatusSpan').text('Response was sent at: ' + dateTime);
					if($(data).find('extra').find('nResponses').length >= 1)
					{
						$('#nReceivedResponses').text($(data).find('extra').find('nResponses').text());
						console.log($(data).find('extra').find('nResponses').text());
					}
					hideLoadingSpinner($('#wrap'));
					showMessageInDialogBox('Response was sent.');
					//$('.participatingSessionsResponseHighlight').effect('highlight', {color: '#AFDCEC'}, 1500);
				}
				else
				{
					hideLoadingSpinner($('#wrap'));
					showMessageInDialogBox($(data).find('error').text());
				}
			}
			catch(err)
			{
				console.log(err);
				hideLoadingSpinner($('#wrap'));
			}
		})
	}
	catch(err)
	{
		console.log(err);
		hideLoadingSpinner($('#wrap'));
	}
}

function getResponseFromIteration(iteration)
{
	showLoadingSpinner($('#wrap'), 'Please wait...')
	var currentIteration = false;
	try
	{
		
		var sessionUSID= participatingGetSessionUSID(); //function is from participatingSession.js
		if(iteration == null || iteration == '')
		{
			iteration= $('#responseSelection option:selected').val();
		}
		if(iteration != null && iteration != 'null')
		{
			if(iteration == 'current')
			{
				currentIteration = true;
				iteration= $('#participantSessionIteration').text();
			}
			str= 'sessionUSID=' + sessionUSID + '&iteration=' + iteration;
			$.post('/sessions/response/', str, function(data){
				try
				{
					if($(data).find('error').length <= 0)
					{
						$('#participationSessionsContentDiv').html($(data).find('htmlData').text());
						if (currentIteration){
							$('#participatingSessionCurrentSessionGridHeader').html('Session Grid of Current Iteration');
						} else {
							$('#participatingSessionCurrentSessionGridHeader').html('Session Grid of Iteration <b style="color: red;">'+iteration+'</b>');
						}
						$('#participationSessionsContentGridsDiv').find('.gridTrableContainerDiv').each(function(){
							prepareForNewGrid($(this));	
						});
						hideLoadingSpinner($('#wrap'));
					}
					else
					{
						hideLoadingSpinner($('#wrap'));
						showMessageInDialogBox($(data).find('error').text());
					}
				}
				catch(err)
				{
					console.log(err);
					hideLoadingSpinner($('#wrap'));
				}
			})
		}
		else
		{
			hideLoadingSpinner($('#wrap'));
		}
	}
	catch(err)
	{
		console.log(err);
		hideLoadingSpinner($('#wrap'));
	}
}

@@ -2842,31 +2842,8 @@
 ion 
-%3Cb style=%22color: red;%22%3E
 '+it
@@ -2853,15 +2853,8 @@
 tion
-+'%3C/b%3E'
 );%0A%09

change color on the nubmer of iteration to black