

function showKontextMenu(intId, strAppContext){
	if(boolLockEvents != true){
		IF_KTX01.location.href	= "about:blank";
		obj 			= document.getElementById('winKontextMenu01');
		obj.style.left	= MouseX;
		obj.style.top	= MouseY;
		
		IF_KTX01.location.href	= "/kontext.htm?rsAppMode=dHTTP01&strMode=ContextMenu&strAppContext=" + strAppContext + "&intId="+intId;
	}
	return false;
}
function showExtKontextMenu(intId, strAppContext){
	if(boolLockEvents != true){
		IF_KTX01.location.href	= "about:blank";
		obj 			= document.getElementById('winKontextMenu01');
		obj.style.left	= MouseX;
		obj.style.top	= MouseY;
		IF_KTX01.location.href	= "/kontext.htm?nAuthOvrId=24&rsAppMode=dHTTP01&strMode=ContextMenu&strAppContext=" + strAppContext + "&intId="+intId;
	}
	return false;
}

function hideKontextMenu01()
{
	obj = document.getElementById('winKontextMenu01');
		if(obj != null){
		obj.style.left	= "-1000px";
		obj.style.top	= "-1000px";
		obj.style.width	= "0px";
		obj.style.height= "0px";
		IF_KTX01.location.href	= "about:blank";
	}
	return false;
}

function showStatusBar(intId){
	boolLockEvents = true;
	IF_STATUS.location.href	= "about:blank";
	obj 			= document.getElementById('winStatusBar');
	obj.style.left	= "330px";
	obj.style.top	= "110px";
	var strUrl = "/window.htm";
	strUrl +=    "?rsAppMode=dHTTP01";
	strUrl +=    "&strAppContext=FileSystem";
	strUrl +=    "&strMode=ShowStatusbar";
	strUrl +=    "&intId="+intId;
		
	IF_STATUS.location.href	= strUrl;
	return false;
}

function hideStatusBar()
{
	boolLockEvents = false;
	obj 			= document.getElementById('winStatusBar');
	obj.style.left	= "-1000px";
	obj.style.top	= "-1000px";
	obj.style.width	= "0px";
	obj.style.height= "0px";
	IF_STATUS.location.href	= "about:blank";
	return false;
}

var intVCMSInnerWidth = 0;
var intVCMSInnerHeight = 0;
var intVCMSInnerWorkAreaTop = 0;
var intVCMSInnerWorkAreaWidth = 0;
var intVCMSInnerWorkAreaHeight = 0;

function recalculateInnerDimension()
{
	intVCMSInnerWidth = document.body.clientWidth;
	intVCMSInnerHeight = document.body.clientHeight;
	
	intVCMSInnerWorkAreaWidth = intVCMSInnerWidth;
	intVCMSInnerWorkAreaHeight = intVCMSInnerHeight-(intVCMSInnerWorkAreaTop+35);
	
	//nXPos = intVCMSInnerWorkAreaWidth;

	return false;
}

function loadFileSystem(intDirectoryId)
{
	var strUrl = "/filesystem.htm?rsAppMode=xHTTP01&strMode=loadFileSystem&intDirectoryId="+intDirectoryId;
	var strDestination = "oFileSystem";
	var strMode = "";
	var intMax = 10;
	startHTTPRequest(0, strUrl, strDestination, strMode, intMax);
}

function fDownloadFile(sLocation)
{
	window.open(sLocation);
}

var boolLockEvents = false;