function openwin(url ,winname)
{
	newswin = window.open(url,winname,"");
	newswin.focus();
}


function openwin6(url,winname,width,height,left,topsize)
{
	newswin = window.open(url,winname,"resizable=yes,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,width="+width+",height="+height+",left="+left+",top="+topsize);
	newswin.focus();
}

function openwin5(url,winname,width,height,iscenter)
{
	left=(window.screen.width-width)/2;
	topsize=(window.screen.height-height)/2;
	openwin6(url,winname,width,height,left,topsize);
}

function openwin_org(url,winname,width,height,left,topsize)
{
	newswin = window.open(url,winname,"toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,width="+width+",height="+height);
	newswin.focus();
}


function openwin7(url,winname,width,height,iscenter,left,topsize)
{
	if(width==0)
	{
		openwin(url,winname)
	}
	else
	{
		if(iscenter==null || iscenter==0)
			openwin6(url,winname,width,height,left,topsize);
		else openwin5(url,winname,width,height,iscenter);
	}
}
