function updateJSON(request, json)
{
	var responses = json;
//	if you don't use the json tips then evaluate the renderedText instead
	if (!json)
	{
		responses = request.responseText;
		$('myDebug').update(responses.toString());
	}
	
	for (p in responses)
	{
		if (p.indexOf(".") == -1) // no specification of what to update beyond the element name
		{
			$(p).update(responses[p]);
		}
		else
		{
			var s = new Array();
			s = p.split(".");
			var v = responses[p];
			if (s.length == 2)
			{			
				switch (s[1])
				{
					case 'checked':
						$(s[0]).checked = v;
						break;
					case 'disabled':
						$(s[0]).disabled = v;
						break;
					case 'readonly':
						$(s[0]).readOnly = v;
						break;
					case 'value':
						$(s[0]).value = v;
						break;
					default:
						$(s[0]).innerHTML = v;
						break;
				}
			}
		}
	}
}