// JavaScript Document

function GoBack()
{
	if (history.length > 0)
	{
		history.back();
		return true;
	}
	else
		return false;
}

function ShowPop(winUrl, winName, winWidth, winHeight, e)
{
	var wLeft = e.screenX + 20;
	if (wLeft + winWidth > screen.width)
		wLeft = e.screenX - winWidth - 20;

	var wTop = e.screenY - 30;
	if (wTop + winHeight > screen.height)
		wTop = screen.height - winHeight - 50;
	
	var wref = window.open(winUrl, winName, 'left=' + wLeft + ',top=' + wTop + ',width=' + winWidth + ',height=' + winHeight
		+ ',toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes'
		+ ',directories=no,personalbar=no,dependent=yes,dialog=yes')

	wref.focus();
	return false;
}
