window.history.forward(1);

function PopUpContextMenu(cmId)
{
	var cmObj = document.getElementById(cmId);

	var hidden = 'HIDDEN';
	var visible = 'VISIBLE';
	
	var pos1 = cmObj.className.indexOf(hidden);
	var pos2 = cmObj.className.indexOf(visible);
	
	if(pos1 >= 0)
		cmObj.className = cmObj.className.substring(0, pos1) + visible;
	else
	if(pos2 >= 0)
		cmObj.className = cmObj.className.substring(0, pos2) + hidden;
		
	return false;
}
function SetWindowProps()
{
	window.status = 'dialogwidth=40';
	return true;
}
//clientInformation, closed, defaultStatus, dialogArguments, dialogHeight, dialogLeft, dialogTop, 
//dialogWidth, document, event, history, length*, location, name, navigator, offscreenBuffering, 
//opener, parent*, returnValue, screen, self, status, top
function SetStatusLine(line)
{
	window.status = unescape(line);
	return true;
}

function OpenWindowWithParams(url, wndName, parameters)
{
	window.open(url, wndName, parameters, true);
	return false;
}

function OpenWindow(url, wndName, wndWidth, wndHeight)
{
	var parameters = 'location=no,toolbar=no,status=no,statusbar=no,scrollbars=no,resizable=no,dependent=yes,top=1,left=1,width=' + (wndWidth + 0) + 'px,height=' + (wndHeight + 0) + 'px';
	return OpenWindowWithParams(url, wndName, parameters);
}

function CloseWindow(url, wndName)
{
	return OpenWindow(url, wndName, 10, 10);
}
