function newWindow(url,name,width,height,toolbar,location,status,scrollbars,resizable,menubar,left,top,customprops)
{
	if(width)
	{ } else
	{
		width=screen.width-15;	
		height=screen.height-80;
		left=1;
		top=1;
	}
	if (left==-1 && top==-1)
	{
		ax = (screen.width-width)/2;
		ay = (screen.height-height)/2;
		left = ax;
		top = ay;
	}
	var props="";
	if(width)props+=",width="+width;
	if(height)props+=",height="+height;
	if(toolbar)props+=",toolbar="+toolbar;
	if(location)props+=",location="+location;
	if(status)props+=",status="+status;
	if(scrollbars)props+=",scrollbars="+scrollbars;
	if(resizable)props+=",resizable="+resizable;
	if(menubar)props+=",menubar="+menubar;
	if(left)props+=",screenX="+left+",left="+left;
	if(top)props+=",screenY="+top+",top="+top;
	if(customprops)props+=","+customprops;
	if(props!="")props=props.substring(1);
	var w=window.open(url,name,props);
	w.focus();
	return w;
}

