function imageOpen(image_loc)
{
  HTML = "<html><title>Gourmandia</title> <style> body{margin:0px 0px 0px 0px}</style><body><img src='" + image_loc + "' border=0 name=load_image onLoad='window.resizeTo(document.load_image.width+10, document.load_image.height+30)'></body></html>";
  popupImage = window.open("", "_blank", "toolbar=no,scrollbars=no,height=20,width=20, top=20, left=20");
  popupImage.document.open();
  popupImage.document.write(HTML);
  popupImage.document.close();
}

function napkinFolding(image_loc,title)
{
  HTML = "<html><title>" + title + "</title> <style> body{margin:0px 0px 0px 0px}</style><body><img src='" + image_loc + "' border=0 name=load_image onLoad='window.resizeTo(document.load_image.width+10, document.load_image.height+30)'></body></html>";
  popupImage = window.open("", "_blank", "toolbar=no,scrollbars=no,height=20,width=20, top=20, left=20");
  popupImage.document.open();
  popupImage.document.write(HTML);
  popupImage.document.close();
}

function toggleshow(layerID, mode)
{
var currentRef = document.getElementById(layerID).style
modes = new Array
modes[0] = 'none'
modes[1] = 'block'

if(isNaN(mode))
currentRef.display = (currentRef.display == 'none') ? 'block' : 'none'
else
currentRef.display = modes[mode]
}

function showAdBox(layerID)
{
var currentRef = document.getElementById(layerID).style
currentRef.display = 'block'
}
function dismissAdBox(layerID)
{
var currentRef = document.getElementById(layerID).style
currentRef.display = 'none'
}

function selectAddress(val)
{
	if( val == "Address" ) {
	document.getElementById("AddressBlock").style.display='block';
	document.getElementById("RestaurantBlock").style.display='none';
	} else {
	document.getElementById("RestaurantBlock").style.display='block';
	document.getElementById("AddressBlock").style.display='none';
	}
}

function toggle_showhide(field_name)
{
	if (field_name.style.visibility == "hidden"){
	field_name.style.visibility='visible';
	field_name.style.position='relative';
	field_name.focus();
	} else {
	field_name.style.visibility='hidden';
	field_name.style.position='absolute';
	}
}

function changeMultipleGuests(selected_no)
{
	for(k=2; k<=selected_no; k++)
	{
		document.getElementById("row"+k).style.display="block";
	}

	for(i=k;i<=100;i++)
	{
		document.getElementById("row"+i).style.display="none";
	}
	//alert (selected_no);
}
/*-----------------WORLDMAP FUNCTIONS ------------------------*/
function showWorldMapToolTip(inputObj)
{
	document.getElementById(inputObj).style.display = 'block';
	document.getElementById(inputObj).style.left=window.event.x;
	document.getElementById(inputObj).style.top=window.event.y;
}
function hideWorldMapToolTip(inputObj)
{
	document.getElementById(inputObj).style.display='none';
}
