function showWait(){

	var v = document.getElementById("waitImg");	
	v.style.visibility = "visible";
	v.src="../images/pleasewait6.gif";	

	document.getElementById("table1").style.visibility = "hidden";
	document.getElementById("UploadPicture1_uiError").style.visibility = "hidden";
	document.getElementById("UploadPicture1_uiMessage").style.visibility = "hidden";
	document.getElementById("waitDiv").style.visibility = "visible";
}




function openViewChart(address){
	//alert('asdf');
	var w = window.radopen();
	w.SetTitle('Chart of Number of Views');
	w.SetSize(650,391);
	w.SetModal(true);
	w.Center();	
	w.SetUrl(address);
	return false;
}

function GetRadWindow()
{	
    var oWindow = null;
    if (window.radWindow) oWindow = window.radWindow;
    else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
    return oWindow;
} 


function SizeToFit()
{
		window.setTimeout(
		function()
		{
			var oWnd = GetRadWindow();
			oWnd.SetWidth(document.body.scrollWidth + 15);
			oWnd.SetHeight(document.body.scrollHeight + 50);
	        
//	        alert(oWnd.GetWidth());
//	        alert(oWnd.GetHeight());
		}, 1);
}
