function showLayer(id) {
	if (document.getElementById(id).style.display == "none") {
		document.getElementById(id).style.display = "block";
	}
}

function hideLayer(id) {
	if (document.getElementById(id).style.display != "none") {
		document.getElementById(id).style.display = "none";
	}
}

function toggleLayer(id) {
	document.getElementById(id).style.display = (document.getElementById(id).style.display == "none") ? "block" : "none";
}

// Expand Division
function toggleDiv(id) {
	document.getElementById(id).style.display = (document.getElementById(id).style.display == "none") ? "block" : "none";
}

function popup(url,name,w,h,scroll,status,resize) {
	L = (screen.width - w) / 2;
	T = (screen.height - h) / 2;
	winProps = "width=" + w;
	winProps += ",height=" + h;
	winProps += ",scrollbars=" + scroll;
	winProps += ",status=" + status;
	winProps += ",resizable=" + resize;
	winProps += ",left=" + L;
	winProps += ",top=" + T;
	popupWindow = window.open(url,name,winProps);
}

function formRater(form){
	var URL = document.form.index.options[document.form.index.selectedIndex].value;
	window.location.href = URL;
}

function formCuisine(cuisine){
	var URL = document.cuisine.cuisine.options[document.cuisine.cuisine.selectedIndex].value;
	window.location.href = URL;
}

function formName(rest_name){
	var URL = document.rest_name.restName.value;
	window.location.href = URL;
}

