function open_window(path, name_win, width, height, top, left) {
	if (top == -1) top = screen.availHeight/2 - height/2;
	if (left == - 1) left = screen.availWidth/2 - width/2;
	var newWin=window.open(path, name_win, 'toolbar=no,width='+width+',height='+height+',directories=no,status=no,scrollbars=yes,resize=no,menubar=no,left='+left+',top='+top);
}
function open_window_resized(path, name_win, width, height, top, left) {
	if (top == -1) top = screen.availHeight/2 - height/2;
	if (left == - 1) left = screen.availWidth/2 - width/2;
	var newWin=window.open(path, name_win, 'toolbar=no,width='+width+',height='+height+',directories=no,status=no,scrollbars=yes,resize=yes,menubar=no,left='+left+',top='+top);
}
function open_window_ordinary(path, name_win, width, height, top, left) {
	if (top == -1) top = screen.availHeight/2 - height/2;
	if (left == - 1) left = screen.availWidth/2 - width/2;
	var newWin=window.open(path, name_win, 'toolbar=yes,width='+width+',height='+height+',directories=yes,status=yes,scrollbars=yes,resize=yes,menubar=yes,left='+left+',top='+top);
}
