<!--
function openwin(url, win_width, win_height)
{
	if(win_width == undefined || win_width == null)
		win_width=780;
	if(win_height == undefined || win_height == null)
		win_height=550;
		
	var win_param = "width=" + win_width + ",height=" + win_height + ",scrollbars=1";	
	var win_obj=window.open(url,"jj",win_param);
	windowX = (window.screen.width-win_width)/2;
	windowY = (window.screen.height-win_height)/2;
	
	win_obj.moveTo(windowX,windowY);
}

function openimagewin(url)
{
	window.child=window.open(url,"imagewin","width=500,height=300,status=no,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=no");
	
	try
	{		
		var imageWidth = window.child.document.images(0).width;
		var imageHeight = window.child.document.images(0).height;
		window.child.resizeTo(imageWidth+100, imageHeight+100);
		windowX = (window.screen.width-imageWidth)/2;
		windowY = (window.screen.height-imageHeight)/2;
		window.child.moveTo(windowX,windowY);
	}
	catch (e)
	{
		//do nothing
	}
}

function openeditor(fname,sessvar) 
{
	url="editor.php?fname="+fname+"&sessvar="+sessvar;
	vWinCal = window.open(url,"Editor","left=20, top=20, width=700,height=500,scrollbars=0");
	windowX = (window.screen.width-700)/2;
	windowY = (window.screen.height-500)/2;
	vWinCal.moveTo(windowX,windowY);
	vWinCal.opener = self;
}

//-->