function getTagById2(tagId2)
	{var selectedTag2;if (document.all){selectedTag2 = document.all.item(tagId2);}
  	else {selectedTag2 = document.getElementById(tagId2);}return selectedTag2;}

function getrestlist(country)						
	{var chpage = this.document.location.href = "restaurant-listing-uk.html?country="+country+"";}
	
function getrestlist2(country)						
	{var chpage = this.document.location.replace("restaurant-listing-uk.html?country="+country+"");}

function highlight_dyn_flag(elem4)
		{var idOfCellToHighlight2 = elem4;
		getTagById2(idOfCellToHighlight2).style.border = "#FFFF47 solid 1px";
		document.getElementById("countrytext").innerHTML = elem4;}

function unhighlight_dyn_flag(elem4)
		{var idOfCellToHighlight2 = elem4;
		getTagById2(idOfCellToHighlight2).style.border = "#000000 solid 1px";
		document.getElementById("countrytext").innerHTML = "&nbsp;";}
		
function highlight_rest_name(elem4)
	{var idOfCellToHighlight2 = elem4;getTagById2(idOfCellToHighlight2).style.color = "yellow"; 
	getTagById2(idOfCellToHighlight2).style.textDecoration = "underline"; }

function unhighlight_rest_name(elem4)
	{var idOfCellToHighlight2 = elem4;getTagById2(idOfCellToHighlight2).style.color = "#3399ff";
	getTagById2(idOfCellToHighlight2).style.textDecoration = "none";}
	
function getrest_details(restindex,website)
	{if(website != "")
		   {var chpage = this.document.location.href = website}
		else {var chpage = this.document.location.href = "restaurant-details-uk.html?restindex="+restindex+"";}}

function highlight_links(elem4)
	{var idOfCellToHighlight2 = elem4;getTagById2(idOfCellToHighlight2).style.color = "yellow"; 
	getTagById2(idOfCellToHighlight2).style.textDecoration = "underline"; 
	getTagById2(idOfCellToHighlight2).style.cursor = "hand"; }

function unhighlight_links(elem4)
	{var idOfCellToHighlight2 = elem4;getTagById2(idOfCellToHighlight2).style.color = "#C0C0C0"; 
	getTagById2(idOfCellToHighlight2).style.textDecoration = "none"; }
	
function load_search_page()
	{var pcode = document.indexpage.postcode.value;
	if(pcode == ""){alert("Please enter a post code to continue..")}
	else{var chpage2 = this.document.location.href = "search-page.html?test2="+pcode+"";}}















