var par_menu;
par_menu =
	"channelmode	= no"	+ ", " +
	"directories	= no"	+ ", " +
	"fullscreen		= no"	+ ", " +
	"height			= " + screen.availHeight + ", " +
	"left			= 0"	+ ", " +
	"location		= no"	+ ", " +
	"menubar		= no"	+ ", " +
	"resizable		= no"	+ ", " +
	"scrollbars		= no"	+ ", " +
	"status			= no"	+ ", " +
	"titlebar		= yes"	+ ", " +
	"toolbar		= no"	+ ", " +
	"top			= 0"	+ ", " +
	"width			= " + screen.availWidth + ", " +
	"";

function start_menu(menu_name, home_flag){
	var debug = "FALSE";
	var module_name = "start_menu";

	write_log(debug,
		"NA",
		"debug",
		module_name,
		"started",
		"menu_name: " + menu_name,
		"home_flag: " + home_flag);

	try {
		if (		home_flag === undefined
				||	home_flag != "TRUE"){
			home_flag = "FALSE";
		}
		var directory;
		if (home_flag == "TRUE"){
			directory = "home/html_files/";
		} else {
			directory = "";
		}
		var menu_window;
		menu_window = window.open(directory + "level_0.php?menu_name=" + menu_name, "_top", par_menu, "TRUE");
		if (menu_window === undefined){
			write_log("TRUE",
				"NA",
				"error",
				module_name,
				"Not possibele to open menu window",
				"menu_name: " + menu_name,
				"home_flag: " + home_flag);
		}

		write_log(debug,
			"NA",
			"debug",
			module_name,
			"valid return",
			"menu_name: " + menu_name,
			"home_flag: " + home_flag);

		return "OK";
	} catch(error) {
		catch_error(error, module_name);
		return undefined;
	}
}