function GetPicture_Async(sTest)
// sTest is the value passed in by the onClick event of the .aspx page (should be the image name)
{
	//	This is what gets called by the click event.
	//	alert('Initial step') ;
//	document.getElementById("spanTime").innerHTML = 'Getting time' ;

	var thisLabel ;
	thisLabel = "lblResult" ;
//	document.getElementById(thisLabel).innerHTML = 'Processing 2 ...' ;

//	document.getElementById("mySpan").innerHTML = 'Getting time 3' ;

	// NOTE Syntax <namespace>.<classname>.method (params, callbackfunction)
	BZB_ImageViewer_II.Main.GetPicture(sTest,GetPicture_Async_Callback);
	// Here we call the GetServerTime function which is located in the .aspx.vb page.
	// From that function, we must return the Image name (sTest) as well as the height & width of the image

	//	alert('Callback has been executed')
	
}

function GetPicture_Async_Callback(response)
{

	str = response.value ;
	imageInfo = new Array() ;
	imageInfo = str.split('|') ;
	
//	document.getElementById("spanTime").innerHTML = imageInfo[0] ;
//	document.getElementById("lblResult").innerHTML = imageInfo[1] ;
//	document.getElementById("mySpan").innerHTML = imageInfo[2] ;

// alert(document.Form1.Image1.width) ;

document.aspnetForm.ctl00_ContentPlaceHolder1_imgLarge.style.width = imageInfo[1] ;
document.aspnetForm.ctl00_ContentPlaceHolder1_imgLarge.style.height = imageInfo[2] ;

document.aspnetForm.ctl00_ContentPlaceHolder1_imgLarge.src = imageInfo[0] ;

var objImageLink = document.getElementById('lblImageLink');

objImageLink.href = document.aspnetForm.ctl00_ContentPlaceHolder1_imgLarge.src;


}