function loadGalleryImage(image_node_id, myDivId, imageSize, encodedUrl)
{ 
	var myDiv = document.getElementById(myDivId);
	if (myDiv == undefined)
	{
		throw new Error("div not found:" + myDivId);
	}
	if (myDiv == null)
	{
		throw new Error("div must not be null:" + myDivId);
	}
	try
	{
		var time = ezjscore_getTime();
		window.open('/index.php/' + encodedUrl + '?pi=1&is=w510','image','toolbar=no,resizable=yes,top=100,scrollbars=yes');
		
	}
	catch (e)
	{
		alert (e);
	}
}

ezjscore_getTime = function() 
{     
    //alert ("start event" + evnt ); // javascript MouseEvent
	/*
	jQuery.ez( 'ezjsc::time', {postData: 'hi!'}, function(data){ alert(data.content) } );
	*/
	//try
	//{
		// build an "::" separated string for getdata. should be Urlencoded anyway, i think
		var callArgs = 'aaa' + '::' + "bbb" + '::' + "ccc";
		//alert (callArgs);	
		// what about postData
		YUI( YUI3_config ).use('io-ez', function( Y )
		{
			try
			{
				Y.io.ez( 'ezjsc::time' + '::' + callArgs, 
					{
						data: 'postData=hi&test=aaa&node=42', // UrlEncding needed?
						on: {
								success: function(id,r)
										{ 
											return(r.responseJSON.content) 
										}
							}
					} );
			}
			catch(YioEx)
			{
				alert (YioEx);
			}
		});
		
		/*
		'ezjsc::time' + '::' +  getdata
		Y.io.ez( 'ezjsc::time' + '::' + getdata, {method: 'POST', data: 'postData=hi!', on: {success: function(id,r){ alert(r.responseJSON.content) }}} );
		*/	
	//}
	//catch (e)
	//{
	//	var myException = e;
	//	alert (myException);
	//}
};