function postData()
{
	reloadAdverts();
	$("#mx-loadingContents").css("display", "block");
	$("#mx-errorContents").css("display", "none");
	$("#mx-loading").fadeIn(intFxDuration);
	cycleProviders(arrProviderList);
	$("#mx-ResultsTable").fadeTo(intFxDuration, 0.4,
	function()
	{
		// ******CHANGE POST VARIABLES HERE******
		$.post("/ajax/loans_helper.ajax.php",
			{
				LoanAmount: $("#mx-loanAmount").val(),
				LivingStatus: $("#mx-status").val(),
				LoanTermMonths: $("#mx-loanTerm").val(),
				LoanType: $("#mx-loanType").val(),
				PropertyValue: $("#mx-propertyValue").val(),
				CurrentMortgageBalance: $("#mx-mortgageBalance").val(),
				CreditProfile: $("#mx-CreditProfile").val(),
				sortOrder: $("#mx-sortOrder").val(),
				sortAttribute: $("#mx-sortAttribute").val(),
				ResultOffset: $("#mx-ResultOffset").val(),
				ResultToReturn: $("#mx-ResultToReturn").val(),
				WhiteLabelMode: $("#mx-WhiteLabelMode").val(),
				affilId: strAffiliateId
			},
			// ******END******
			function(returned_data)
			{
				arrRawProductData = returned_data;
				//Check Response Code and if Response Code 200, Display Results
				if ( returned_data.Response.StatusCode == 200 )
				{
					$("input").removeClass("mx-inputError");
					$("#mx-fullMarketResults").empty();
					$("#mx-topPicksResults").empty();
					if ((returned_data.ResultStats.TotalProducts != 0) || (returned_data.ResultStats.TotalProducts == 0 && returned_data.ResultStats.TotalSponsoredProducts != 0))
					{
						if (returned_data.ResultStats.TotalSponsoredProducts != 0 && returned_data.ResultStats.ResultOffset == 0)
						{
							//******SPONSORED RESULTS START******
							for (i=0; i < returned_data.ResultStats.TotalSponsoredProducts; i++)
							{
								if (i == 0 && !returned_data.Parameters.WhitelabelMode)
								{
									$("#mx-topPicksResults").append("<tr class='mx-resultsHeader'><td colspan='6'>Moneyextra.com's Top Picks</td></tr>");
								}
								if (i%2)
								{
									strRowClass = '';
								}
								else
								{
									strRowClass = ' class="mx-resultRowDark"';
								}
								sponsored_data_item = returned_data.SponsoredResults[i];
								var strIsExistingCustomersOnly = (sponsored_data_item.IsExistingCustomerOnly && sponsored_data_item.IsExistingCustomerOnly.fieldValue == "yes") ? "<p>Existing Customers Only</p>" : "";
								var strTargetBlank = (sponsored_data_item.IsExternalURL == "yes") ? " target=\"_blank\"": "";
								var strApplyButton = (sponsored_data_item.ProductApplicationURL != "") ? "<a" + strTargetBlank + " href=\"" + sponsored_data_item.ProductApplicationURL + "\"" + strTargetBlank +"><img src=\"/images/MX-resultsInfo.gif\" alt=\"More Info\" height=\"26\" width=\"56\" /></a>" : "";
								var strProductImage = (sponsored_data_item.LogoImageSource != "") ? "<img class=\"mx-productLogo\" alt=\"" + sponsored_data_item.ProductName.fieldValue + "\" src=\"" + sponsored_data_item.LogoImageSource + "\" width=\"88\" height=\"31\" /><br \/>" : sponsored_data_item.ProviderName.fieldValue + "<br />";
								var strProductImage = (sponsored_data_item.ProductApplicationURL != "") ? "<a" + strTargetBlank + " href=\"" + sponsored_data_item.ProductApplicationURL + "\"" + strTargetBlank +">" + strProductImage + "</a>" : strProductImage;
								var strProductStrapline = '';
								var intStraplineRowSpan = 1;
								if(sponsored_data_item.ProductStrapline != "")
								{
									strProductStrapline = "<tr" + strRowClass + "><td colspan=\"4\" class=\"mx-productStrapline\" align=\"left\">" + sponsored_data_item.ProductStrapline + "</td></tr>";
									intStraplineRowSpan = 2;
								}
								$("#mx-topPicksResults").append("<tr id='mx-SR_"+ sponsored_data_item.ProductId +"'"+strRowClass+"></tr>");
								$("#mx-SR_" + sponsored_data_item.ProductId).append("<td rowspan=\"" + intStraplineRowSpan + "\">" + strProductImage + sponsored_data_item.ProductName.fieldValue + strIsExistingCustomersOnly +"</td>");
								$("#mx-SR_" + sponsored_data_item.ProductId).append("<td>&pound;"+ sponsored_data_item.SubmittedLoanAmountRepayablePoundMonthly.fieldValue +"</td>");
								$("#mx-SR_" + sponsored_data_item.ProductId).append("<td><span class=\"mx-largeBold\">"+ sponsored_data_item.APRPercent.fieldValue +"%</span></td>");
								$("#mx-SR_" + sponsored_data_item.ProductId).append("<td>"+ sponsored_data_item.RateType.fieldValue +"</td>");
								$("#mx-SR_" + sponsored_data_item.ProductId).append("<td>&pound;"+ sponsored_data_item.SubmittedLoanAmountRepayablePoundTotal.fieldValue +"</td>");
								$("#mx-SR_" + sponsored_data_item.ProductId).append("<td rowspan=\"" + intStraplineRowSpan + "\">" + strApplyButton + "<div class=\"mx-detailsLink " + sponsored_data_item.ProductId + "\"><a onClick=\"popupDetails(" + sponsored_data_item.ProductId + ",'" + sponsored_data_item.LoanType + "');\">Details</a></div></td>");
								$("#mx-topPicksResults").append(strProductStrapline);
							}
						}

						//******FULL MARKET RESULTS START******
						for (i=0; i < returned_data.ResultStats.ResultRealCount; i++)
						{
							if (i == 0 && !returned_data.Parameters.WhitelabelMode)
							{
								$("#mx-fullMarketResults").append("<tr class='mx-resultsHeader'><td colspan='6'>Full Market Results</td></tr>");
							}
							if (i%2)
							{
								strRowClass = '';
							}
							else
							{
								strRowClass = ' class="mx-resultRowDark"';
							}
							
							fullMarket_data_item = returned_data.Results[i]
							var strIsExistingCustomersOnly = (fullMarket_data_item.IsExistingCustomerOnly && fullMarket_data_item.IsExistingCustomerOnly.fieldValue == "yes") ? "<p>Existing Customers Only</p>" : "";
							var strTargetBlank = (fullMarket_data_item.IsExternalURL == "yes") ? " target=\"_blank\"": "";
							var strApplyButton = (fullMarket_data_item.ProductApplicationURL != "") ? "<a" + strTargetBlank + " href=\"" + fullMarket_data_item.ProductApplicationURL + "\"" + strTargetBlank +"><img src=\"/images/MX-resultsInfo.gif\" alt=\"More Info\" height=\"26\" width=\"56\" /></a>" : "";
							var strProductImage = (fullMarket_data_item.LogoImageSource != "") ? "<img class=\"mx-productLogo\" alt=\"" + fullMarket_data_item.ProductName.fieldValue + "\" src=\"" + fullMarket_data_item.LogoImageSource + "\" width=\"88\" height=\"31\" /><br />" : fullMarket_data_item.ProviderName.fieldValue + "<br />";
							var strProductImage = (strProductImage != "" && strApplyButton != "") ? "<a" + strTargetBlank + " href=\"" + fullMarket_data_item.ProductApplicationURL + "\"" + strTargetBlank +">" + strProductImage + "</a>" : strProductImage;
							var strProductStrapline = '';
							var intStraplineRowSpan = 1;
							if(fullMarket_data_item.ProductStrapline != "")
							{
								strProductStrapline = "<tr" + strRowClass + "><td colspan=\"4\" class=\"mx-productStrapline\" align=\"left\">" + fullMarket_data_item.ProductStrapline + "</td></tr>";
								intStraplineRowSpan = 2;
							}
							$("#mx-fullMarketResults").append("<tr id='mx-"+ fullMarket_data_item.ProductId +"'"+strRowClass+"></tr>");
							$("#mx-" + fullMarket_data_item.ProductId).append("<td rowspan=\"" + intStraplineRowSpan + "\">" + strProductImage + fullMarket_data_item.ProductName.fieldValue + strIsExistingCustomersOnly +"</td>");
							$("#mx-" + fullMarket_data_item.ProductId).append("<td>&pound;"+ fullMarket_data_item.SubmittedLoanAmountRepayablePoundMonthly.fieldValue +"</td>");
							$("#mx-" + fullMarket_data_item.ProductId).append("<td><span class=\"mx-largeBold\">"+ fullMarket_data_item.APRPercent.fieldValue +"%</span></td>");
							$("#mx-" + fullMarket_data_item.ProductId).append("<td>"+ fullMarket_data_item.RateType.fieldValue +"</td>");
							$("#mx-" + fullMarket_data_item.ProductId).append("<td>&pound;"+ fullMarket_data_item.SubmittedLoanAmountRepayablePoundTotal.fieldValue +"</td>");
							$("#mx-" + fullMarket_data_item.ProductId).append("<td rowspan=\"" + intStraplineRowSpan + "\">" + strApplyButton + "<div class=\"mx-detailsLink " + fullMarket_data_item.ProductId + "\"><a onClick=\"popupDetails(" + fullMarket_data_item.ProductId + ",'" + fullMarket_data_item.LoanType + "');\">Details</a></div></td>");
							$("#mx-fullMarketResults").append(strProductStrapline);
						}
					}
					else
					{
						//$("#mx-fullMarketResults").append("<tr id='mx-results_header'><td colspan='6'>Full Market Search Results</td></tr>");
						$("#mx-fullMarketResults").append('<tr><td colspan="6">There are no results matching your search criteria.</td></tr>');
						setPagination(1, 1);
					}  
					
					setupDetailsPopups();
					intCurrentPage = calculateCurrentPage($("#mx-ResultOffset").val(), intResultToReturn);
					intTotalPages = (returned_data.Parameters.WhitelabelMode) ? Math.ceil(returned_data.ResultStats.TotalSponsoredProducts/intResultToReturn) : Math.ceil(returned_data.ResultStats.TotalProducts/intResultToReturn);
					setPagination(intTotalPages, intCurrentPage);
					setSortImages(returned_data.SortVariables[0].select, returned_data.SortVariables[0].order);
					
					//Fade in New Data
					$("#mx-ResultsTable").fadeTo(intFxDuration, 1);
					
					if (intCurrentPage == 1)
					{
						$("#mx-topPicksResults").fadeIn(intFxDuration);
					}
					$("#mx-fullMarketResults").fadeIn(intFxDuration);
					if (returned_data.Parameters.WhitelabelMode)
					{
						$("#mx-totalProducts").text(returned_data.ResultStats.TotalSponsoredProducts);
					}
					else
					{
						$("#mx-totalProducts").text(returned_data.ResultStats.TotalProducts);
					}
					
					$("#mx-totalProducts").fadeIn(intFxDuration);
					$("#mx-loading").fadeOut(intFxDuration);
				}
				else //If not Response Code 200 Display Error Message
				{
					$("#mx-loadingContents").css("display", "none");
					$("#mx-errorContents").css("display", "block");
					var strErrorLog = '';
					var arrErrorKeys = new Array();
					for ( var i = 0; i < returned_data.Response.StatusInfo.length; i++ )
					{
						jQuery.each(returned_data.Response.StatusInfo[i],
							function(j, val)
							{
								strErrorLog += "- "+val+"<br />";
								arrErrorKeys[i] = j;
							}
						);
					}
					highlightErrors(arrErrorKeys);
					$("#mx-errorContents").html("<h4>Error: "+returned_data.Response.StatusCode+"</h4><p>"+strErrorLog+"</p>");
				}

				//Synchronise Refine Form With Returned Input Parameters
				$("#mx-searchType").val(returned_data.Parameters.searchType);

				// Resize iFrame for Whitelabels
				if (returned_data.Parameters.WhitelabelMode)
				{
					setCompletion($("body").height()+ 50 +"px");
				}
				
			},
			"json"
		)
	});
}

function setupDetailsPopups()
{
	$(".mx-detailsLink").css("display", "block");

	$(".mx-detailsLink").bind("click",
		function()
		{
			var arrProduct = this.className.split(' ');
			$(".mx-detailsPopup."+arrProduct[1]).css("zIndex", intDetailsPopupZindex + intPopupCount);
			intPopupCount++;
		}//,
		//~ function()
		//~ {
			//~ var arrProduct = this.className.split(' ');
			//~ removePopup(arrProduct[1]);
		//~ }
	);

	$(".mx-detailsPopup").hover(
		function()
		{
			$(this).addClass("mx-hoverOn");
			var intNewZindex = intDetailsPopupZindex + intPopupCount;
			$(this).css("zIndex", intNewZindex);
			intPopupCount++;		
		},
		function()
		{
			if (!$(this).is(".mx-clicked"))
			{
				$(this).remove();
			}
		}
	);
	
	$(".mx-closeDetails").bind("click",
		function()
		{
			$(this).parent().parent(".mx-detailsPopup").remove();
		}
	);
}

function removePopup(intProductID)
{
	function realRemovePopup()
	{
		if (!$('div.mx-detailsPopup.'+intProductID).is('.mx-hoverOn') && !$('div.mx-detailsPopup.'+intProductID).is('.mx-clicked'))
		{
			$('div.mx-detailsPopup.'+intProductID).remove();
		}
	}
	t = setTimeout(realRemovePopup, 100);
}

function createDraggableDetails()
{
	$(".mx-detailsPopup").draggable({
		handle: '.mx-detailsTopBar',
		revert: false,
		refreshPositions: true,
		drag: function(ev, ui)
		{
			$(this).addClass("mx-clicked");
		}
	});
}

function setupDetailsAccordion(intProductID)
{
	var intDuration = 200;
	$(".mx-detailsAccordion."+intProductID).children(".mx-detailsAccordionItem").children(".mx-detailsAccordionHeader").bind("click",
		function()
		{
			//Pin Down Popup if not already
			if (!$(".mx-detailsPopup."+intProductID).hasClass("mx-clicked"))
			{
				$(".mx-detailsPopup."+intProductID).addClass("mx-clicked");
			}
			
			if ($(this).siblings().css("display") == 'none')
			{
				$(".mx-detailsAccordion."+intProductID).children(".mx-detailsAccordionItem").children(".mx-detailsAccordionItemBody").hide(intDuration);
				$(".mx-detailsAccordion."+intProductID).children(".mx-detailsAccordionItem").children(".mx-detailsAccordionHeader").children("img").attr("src", "/images/mx-popupPlus.jpg");
				$(this).parent().siblings().children("div.mx-detailsAccordionHeader").children("img").attr("src", "/images/mx-popupPlus.jpg");
				$(this).siblings().slideDown(intDuration);
				$(this).children("img").attr("src", "/images/mx-popupMinus.jpg");
			}
			else
			{
				$(this).siblings().hide("blind", { direction : "vertical" }, intDuration);
				$(this).children("img").attr("src", "/images/mx-popupPlus.jpg");
			}
		}
	);
	$(".mx-detailsAccordion."+intProductID).children(".mx-detailsAccordionItem").children("div.mx-detailsAccordionItemBody").hide();
	$(".mx-detailsAccordion."+intProductID).children(".mx-detailsAccordionItem").children(".mx-default").show(); // Add a "mx-default" class to the contents div, within "mx-detailsAccordionItem" for items you want to be initially open
	$(".mx-default").siblings().children("img").attr("src", "/images/mx-popupMinus.jpg");
	$(".mx-detailsTopBar, .mx-detailsTopBar h4, .mx-detailsTopBar span").bind("click",
		function()
		{
			if ($(this).hasClass("mx-detailsTopBar"))
			{
				$(this).parent().addClass("mx-clicked");
			}
			else
			{
				$(this).parent().parent().addClass("mx-clicked");
			}
		}
	);
}

function popupDetails(intProductID, strLoanType)
{
	var strThisPopup = '';
	if (!$("body").children("."+intProductID).length > 0)
	{
		strThisPopup = generatePopup(intProductID, strLoanType);
		$("body").append(strThisPopup);
		$(".mx-detailsPopup."+intProductID).css("display", "block");
		$(".mx-detailsPopup."+intProductID).addClass("mx-clicked");
		$(".mx-detailsPopup."+intProductID).css("left", intPosX/2);
		$(".mx-detailsPopup."+intProductID).css("top", intPosY);
		$(".mx-detailsPopup."+intProductID).css("zIndex", intDetailsPopupZindex + intPopupCount);
		$(".mx-detailsPopup."+intProductID).animate({ opacity: 1 });
		createDraggableDetails();
		setupDetailsAccordion(intProductID);
		setupDetailsPopups();
	}
	else
	{
		$(".mx-detailsPopup."+intProductID).children(".mx-detailsTopBar").effect("pulsate", { times: 2 }, 300);
	}
}

function generatePopup(intProductID, strLoanType)
{
	var strThisPopup = "";
	var arrFormattedPopup = new Array();
	var boolProductFound = false;
	//Loops through the Product Details Map (i is an integer representing the row number)
	for (var strSection in arrDetailsPopupMap[strLoanType]) //Go through each section in the popup map (eg, Product Details, Restrictions)
	{
		arrSections = arrDetailsPopupMap[strLoanType][strSection];

		for (var i in arrSections) //Go through each key in the current section in the popup map
		{
			strKeyName = arrSections[i];
			
			for(var j in arrRawProductData['Results']) //Loop through the product data
			{
				if (arrRawProductData['Results'][j].ProductId == intProductID) // If we find the right product
				{
					var strThisProductName = arrRawProductData['Results'][j]['ProductName'].fieldValue;
					var strThisProductApplicationURL = (arrRawProductData['Results'][j]['ProductApplicationURL']) ? arrRawProductData['Results'][j]['ProductApplicationURL'] : '';
					
					boolProductFound = true;
					if (strKeyName in arrRawProductData['Results'][j]) //if the key in the popup map is in the current popup
					{
						if (strSection in arrFormattedPopup)
						{
						}
						else
						{
							arrFormattedPopup[strSection] = new Array();
						}
						//Put the data row in the formatted popup array
						if (arrRawProductData['Results'][j][strKeyName].fieldLabel.simple != null && arrRawProductData['Results'][j][strKeyName].fieldValue !== "" && arrRawProductData['Results'][j][strKeyName].fieldValue !== "-1")
						{
							if(strKeyName == 'LoanIllustrations')
							{
								var strIllustrations = '';
								jQuery.each(arrRawProductData['Results'][j].LoanIllustrations.fieldValue,
									function(intIllustrationCount, val)
									{
										strIllustrations += "<tr><td>&pound;"+val.LoanAmountPound+"</td><td>"+val.LoanTermMonth+"</td><td>&pound;"+val.LoanAmountRepayablePoundTotal+"</td><td>&pound;"+val.LoanAmountRepayablePoundMonthly+"</td></tr>";
									}
								);
								strIllustrations += "</table>";
								var strDataSentence = arrRawProductData['Results'][j][strKeyName].fieldLabel.simple.replace("#VALUE#", strIllustrations);
								arrFormattedPopup[strSection].push(strDataSentence);
							}
							else
							{
								switch (arrRawProductData['Results'][j][strKeyName].fieldValue)
								{
									case 'yes':
									strDataSentence = "<span class='mx-dataFieldLabel'>" + arrRawProductData['Results'][j][strKeyName].fieldLabel.simple + "</span>";
									arrFormattedPopup[strSection].push(strDataSentence);
									break;
									
									case 'no':
									break;
									
									default:
									if (arrRawProductData['Results'][j][strKeyName].fieldValue != -1)
									{
										var strDataSentence = "<span class='mx-dataFieldLabel'>" + arrRawProductData['Results'][j][strKeyName].fieldLabel.simple.replace("#VALUE#", arrRawProductData['Results'][j][strKeyName].fieldValue);
										strDataSentence = strDataSentence.replace(":", ":</span>");
										arrFormattedPopup[strSection].push(strDataSentence);
									}
									break;
								}
							}
						}
					}
				}
			}
			
			if (!boolProductFound)
			{
				for(var k in arrRawProductData['SponsoredResults']) //Loop through the product data
				{
					if (arrRawProductData['SponsoredResults'][k].ProductId == intProductID) // If we find the right product
					{
						var strThisProductName = arrRawProductData['SponsoredResults'][k]['ProductName'].fieldValue;
						var strThisProductApplicationURL = (arrRawProductData['SponsoredResults'][k]['ProductApplicationURL']) ? arrRawProductData['SponsoredResults'][k]['ProductApplicationURL'] : '';

						if (strKeyName in arrRawProductData['SponsoredResults'][k]) //if the key in the popup map is in the current popup
						{
							if (strSection in arrFormattedPopup)
							{
							}
							else
							{
								arrFormattedPopup[strSection] = new Array();
							}
							//Put the data row in the formatted popup array
							if (arrRawProductData['SponsoredResults'][k][strKeyName].fieldLabel.simple != null && arrRawProductData['SponsoredResults'][k][strKeyName].fieldValue !== "" && arrRawProductData['SponsoredResults'][k][strKeyName].fieldValue !== "-1")
							{
								if(strKeyName == 'LoanIllustrations')
								{
									var strIllustrations = '';
									jQuery.each(arrRawProductData['SponsoredResults'][k].LoanIllustrations.fieldValue,
										function(intIllustrationCount, val)
										{
											strIllustrations += "<tr><td>&pound;"+val.LoanAmountPound+"</td><td>"+val.LoanTermMonth+"</td><td>&pound;"+val.LoanAmountRepayablePoundTotal+"</td><td>&pound;"+val.LoanAmountRepayablePoundMonthly+"</td></tr>";
										}
									);
									strIllustrations += "</table>";
									var strDataSentence = arrRawProductData['SponsoredResults'][k][strKeyName].fieldLabel.simple.replace("#VALUE#", strIllustrations);
									arrFormattedPopup[strSection].push(strDataSentence);
								}
								else
								{
									switch (arrRawProductData['SponsoredResults'][k][strKeyName].fieldValue)
									{
										case 'yes':
										var strDataSentence = "<span class='mx-dataFieldLabel'>" + arrRawProductData['SponsoredResults'][k][strKeyName].fieldLabel.simple + "</span>";
										arrFormattedPopup[strSection].push(strDataSentence);
										break;
										
										case 'no':
										break;
										
										default:
										if (arrRawProductData['SponsoredResults'][k][strKeyName].fieldValue != -1)
										{
											var strDataSentence = "<span class='mx-dataFieldLabel'>" + arrRawProductData['SponsoredResults'][k][strKeyName].fieldLabel.simple.replace("#VALUE#", arrRawProductData['SponsoredResults'][k][strKeyName].fieldValue);
											strDataSentence = strDataSentence.replace(":", ":</span>");
											arrFormattedPopup[strSection].push(strDataSentence);
										}
										break;
									}
								}
							}
						}
					}
				}
			}
		}
	}
	
	strThisPopup += "<div class=\"mx-detailsPopup " + intProductID + "\"><div class=\"mx-detailsTopBar\"><span class=\"mx-closeDetails\">Close x</span><span class=\"mx-moveDetails\"><img src=\"/images/mx-popupMove.jpg\" alt=\"move\" /></span><h4>" + strThisProductName + "</h4></div><div class=\"mx-detailsAccordion "+ intProductID +"\">";
	
	// Loop through formatted popup array and add them to the output string
	for (var arrSectionName in arrFormattedPopup)
	{
		var strSectionName = arrFormattedPopup[arrSectionName];
		for (var strDetailRow in strSectionName)
		{
			// If it's the first row in a section, output the section title
			if (strDetailRow == 0)
			{
				strThisPopup += "<div class=\"mx-detailsAccordionItem\"><div class=\"mx-detailsAccordionHeader\"><img class=\"mx-detailsAccordionIndicator\" src=\"/images/mx-popupPlus.jpg\" /><h4 class=\"mx-detailsSectionTitle\">" + arrSectionName + "</h4></div>";

				if (arrSectionName == "Product Details")
				{
					strThisPopup += "<div class=\"mx-detailsAccordionItemBody mx-default\">";
				}
				else
				{
					strThisPopup += "<div class=\"mx-detailsAccordionItemBody\">";
				}
			}
			
			strThisPopup += "<p>" + strSectionName[strDetailRow] + "</p>";
			
			if (strDetailRow == strSectionName.length - 1)
			{
				if (strThisProductApplicationURL == '')
				{
					strThisPopup += "</div></div>";
				}
				else
				{
					strThisPopup += "<p class=\"mx-detailsPopupApplyLink\"><a target=\"_blank\" href=\"" + strThisProductApplicationURL + "\"><img src=\"/images/mx-applyButton.gif\" width\"79\" height=\"26\" alt=\"Apply\" /></a></p></div></div>";
				}
			}
		}
	}
	
	strThisPopup += "</div>";
	
	return strThisPopup;
}

