//PHP's urlencode is used to encode the data and javascript unescape is used to decode it.
//The one difference is that PHP's urlencode converts spaces to plus signs but javascript's
//unescape does not convert the plus signs back to spaces so this is done manually below.
//Actual plus signs are safe as they are encoded by PHP....

function fsBuildAnswers( p_sLaunchData )
{
	var asTempAnswers = p_sLaunchData.split("|");
	for ( var i = 0; i < asTempAnswers.length; i++ )
	{
		var oTemp = g_asAnswers;
		var asTempAnswerData = asTempAnswers[i].split(",");
		var nNumAnswers = asTempAnswerData.length;
		for ( var j = 0; j < nNumAnswers - 1; j++ )
		{
			if ( j < nNumAnswers - 2 )
			{
				if ( oTemp[asTempAnswerData[j]] == null )
					oTemp[asTempAnswerData[j]] = new Array();
				oTemp = oTemp[asTempAnswerData[j]];
			}
			else
				oTemp[asTempAnswerData[j]] = unescape(asTempAnswerData[asTempAnswerData.length - 1].replace(/\+/g,' '));
		}
	}
}
