var DO_PRINT_DOCUMENT=0;

function onCompleteImageTablePrint(lastAction) {
	DO_PRINT_DOCUMENT = 0;
	
	document.getElementById('progressBarId').style.display='none';
	document.getElementById('contentAreaWithMarginal').style.display='';
	
	var actionId=lastAction[0];
	var isSuccess=lastAction[1];
	
	if (actionId == "" || isSuccess == "false")
		return;
	
	if (actionId == "print") {
		DO_PRINT_DOCUMENT = 1;
		doSHIHTMLPrint(lastAction[2]);
		return;
	}
	
	if (actionId == "pdf") {
		document.getElementById('downloadDivOutputLink').href="./wmresource/binary.load?filePath=" + lastAction[2]; 
		document.getElementById('downloadDiv').style.display='block';
		doSHIBinaryDownload(lastAction[2]);
		return;
	}
}

function onActionExecute() {
	document.getElementById('contentAreaWithMarginal').style.display='none';
	document.getElementById('imageTableHandler_flyout').style.display='none';
	document.getElementById('progressBarId').style.display='block';
}
