
function change_location(boxmenu) {
	var url = boxmenu[boxmenu.selectedIndex].value;
	if (url != '') {
		window.location = url;
	}
}

function open_window(boxmenu) {
	var url = boxmenu[boxmenu.selectedIndex].value;
	if (url != '') {
		window.open(url);
	}
}

function openImageNews(vLink, vHeight, vWidth) {
	var sLink = (typeof(vLink.href) == 'undefined') ? vLink : vLink.href;

	if (sLink == '') {
		return false;
	}

	winDef = 'status=no,resizable=yes,scrollbars=no,toolbar=no,location=no,fullscreen=no,titlebar=yes,height='.concat(vHeight).concat(',').concat('width=').concat(vWidth).concat(',');
	winDef = winDef.concat('top=').concat((screen.height - vHeight)/2).concat(',');
	winDef = winDef.concat('left=').concat((screen.width - vWidth)/2);
	newwin = open('', '_blank', winDef);

	newwin.document.writeln('<title>Nhà hàng Hà Nội Hà Nội</title><body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">');
	newwin.document.writeln('<a href="" onClick="window.close(); return false;"><img src="', sLink, '" alt="', 'Đóng = Click', '" border=0 width=100% height=100%></a>');
	newwin.document.writeln('</body>');

	if (typeof(vLink.href) != 'undefined') {
		return false;
	}
}

function openImage(sLink, vWidth, vHeight) {
	try {
		winDef = 'status=no,resizable=no,scrollbars=no,toolbar=no,location=no,fullscreen=no,titlebar=yes,height='.concat(vHeight).concat(',').concat('width=').concat(vWidth).concat(',');
		winDef = winDef.concat('top=').concat((screen.height - vHeight)/2).concat(',');
		winDef = winDef.concat('left=').concat((screen.width - vWidth)/2);
		newwin = open('', '_blank', winDef);

		 newwin.document.writeln('<title>Nhà Hàng Hà Nội Hà Nội</title><body style="margin: 0;">');
		 newwin.document.writeln('<a href="javascript: window.close();"><img src="', sLink, '" alt="', 'Đóng lại', '" border=0  width=100% height=100%></a>');
		 newwin.document.writeln('</body>');
	}
	catch (e) {}
	 return false;
}
