
function openwin(data,ww,hh)
{
	leftmargin = (screen.width  - ww) / 2;
	topmargin = (screen.height - hh) / 2;

	openWin = window.open('' + data + '.htm', ''+ data +'', 'width=' + ww + ',left=' + leftmargin +',top=' + topmargin +',height=' + hh + ',menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizaeable=yes');
}

function openwin2(data,ww,hh,hname)
{
leftmargin = (screen.width  - ww) / 2;
topmargin = (screen.height - hh) / 2;

	var openWin = window.open('' + data + '', 'popup', 'left=' + leftmargin + ',top=' + topmargin + ',width=' + ww + ',height=' + hh + ',menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizaeable=yes');
	openWin.window.location.hash = hname;

}

function openwin3(data,windtitle,ww,hh)
{
	leftmargin = (screen.width  - ww) / 2;
	topmargin = (screen.height - hh) / 2;
	var url = data + '.htm';
	openWin = window.open(url, windtitle, 'width=' + ww + ',left=' + leftmargin +',top=' + topmargin +',height=' + hh + ',menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizaeable=yes');
}
