

function OpenMainWindow(linkurl, winname, w, h, scroll)
{
//	var posx = (screen.width - w) / 2;
	var posx = ((screen.width - 760) / 2) - 10;
	var posy = ((screen.height - 550) / 2) - 25;
	properties = 'height='+h+',width='+w+',top='+posy+',left='+posx+',scrollbars='+scroll+',titlebar=no';
	newwindow = window.open(linkurl, winname, properties);
	if (parseInt(navigator.appVersion) >= 4)
	{
		newwindow.window.focus();
	}
}

function OpenDefaultWindow(linkurl, winname, scroll)
{
	var posx = ((screen.width - 760) / 2) - 10;
	var posy = ((screen.height - 550) / 2) - 5;
	properties = 'height=523,width=776,top='+posy+',left='+posx+',scrollbars='+scroll+',titlebar=no';
	newwindow = window.open(linkurl, winname, properties);
	if (parseInt(navigator.appVersion) >= 4)
	{
		newwindow.window.focus();
	}
}

function OpenSizedWindow(linkurl, winname, w, h, scroll)
{
//	var posx = (screen.width - w) / 2;
	var posx = ((screen.width - 760) / 2) - 10;
	var posy = ((screen.height - 550) / 2) - 5;
	properties = 'height='+h+',width='+w+',top='+posy+',left='+posx+',scrollbars='+scroll+',titlebar=no';
	newwindow = window.open(linkurl, winname, properties);
	if (parseInt(navigator.appVersion) >= 4)
	{
		newwindow.window.focus();
	}
}


function OpenStaticWindow(linkurl, winname, w, h)
{
	var posx = (screen.width - w) / 2;
	var posy = (screen.height - h) / 2;
	properties = 'height='+h+',width='+w+',top='+posy+',left='+posx+',scrollbars=no,titlebar=no';
	newwindow = window.open(linkurl, winname, properties);
	if (parseInt(navigator.appVersion) >= 4)
	{
		newwindow.window.focus();
	}
}

