function thumbClick(result, ctx)
{
	try
	{
		var dom = new dnn.xml.createDocument();
		// Load the result-xml document
		dom.loadXml(result);

		// Get the top node
		var topNode = dom.childNodes(0);
		
		var ctlNode;
		var elmt;
		var prop;
		var val;
		var i;
		// Loop through the child elements
		for(i=0; i<=topNode.childNodeCount()-1; i++)
		{
			ctlNode = topNode.childNodes(i);
			// Get the element that the Node is about
			elmt = document.getElementById( ctlNode.getAttribute('ctl', 'x') );
			
			if ( elmt != null )
			{
				// element was found, now get the property and it's new value
				prop = ctlNode.getAttribute('prop', 'x');
				val  = ctlNode.getAttribute('value', 'x');
				
				// if both are found: try to set the new property
				if ( (prop != null) && (val != null) )
				{
					var stmt;
					// Build the statement to set the property
					stmt = 'elmt.' + prop + '=\'' + val + '\'';
					// Do it
					eval(stmt);
				}
			}
			else
			{
				// element not found, do nothing for now
				// 
			}
		}
	}
	catch(exc)
	{
		// alert('Oeps:' + exc);
	}
}

function thumbClickError(result, ctx)
{
	// alert('error: ' + result + '\ncontext:' + ctx.id);
}

