function byId(x) {
	return document.getElementById(x);
}
function showLogin() {
	var box = byId('boxLogin');
	box.innerHTML = '<form action="/checkLogin.php" method="POST"><div align="center"><table><tr><td style="font-size:11px;">Username</td><td style="font-size:11px;">Password</td></tr>	<tr><td><input type="text" name="username" class="loginField"></td><td><input type="password" name="password" class="loginField"></td></tr></table><input type="submit" value="Log in" class="loginField"></div></form>';
}
function updateGetListed(x) {
	var orangeInfoSqr = byId('orangeInfoSqr');
	if(x == 0) {
		orangeInfoSqr.innerHTML = " A basic listing is free – it lists your contact details so that customers know where you are and how to reach you ";
	} else if(x == 1) {
		orangeInfoSqr.innerHTML = "Having your menu online allows your customers to view it 24 hours a day. For example someone may browse your menu in work, so they can select food to pick up on the way home. It saves time searching for your paper copy and may help to save the print and distribution costs of ordinary menus. It also allows you to keep your listings and prices up-to-date.";
	} else if(x == 2) {
		orangeInfoSqr.innerHTML = "Allowing your customers to order online will mean greater convenience for them and you. No longer will you miss orders because your staff are too busy to answer the phone, or because they're already on it. Our ordering system means that you can accept orders straight to your store instantly using SMS messages. This frees time to focus on the most important thing: serving your customers. ";
	} else {
		orangeInfoSqr.innerHTML = "";
	}
}
function addFave(x) {
	window.open("/addFave.php?id=" + x, "AddFave", "width=310,height=132,scrollbars=no,resizeable=no,menubar=0,toolbar=0,directories=no,menubar=0");
}
