function showmenu(elmnt)
{
document.getElementById(elmnt).style.visibility="visible"
}

function hidemenu(elmnt)
{
document.getElementById(elmnt).style.visibility="hidden"
}




function popUpEvent(URL) {
day = new Date();
id = day.getTime();
id = 'EventPopup';
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=250,left = 427.5,top = 213');");
}





function gotoLink(form)
{
	var OptionIndex=form.ListBoxURL.selectedIndex;
	var optionValue=form.ListBoxURL.options[OptionIndex].value;
	if(optionValue!="")
	{
		var tempURL = "mymapofseychelles.php";
		tempURL = tempURL + form.ListBoxURL.options[OptionIndex].value;
		parent.location=tempURL;
	}
}

//parent.location = form.ListBoxURL.options[OptionIndex].value;}



function gotoLink2(form) 
{
	var OptionIndex=form.ListBoxURL.selectedIndex;
	var optionValue=form.ListBoxURL.options[OptionIndex].value;
	if(optionValue!="")
	{
		var tempURL = "mymapofhotel.php";
		tempURL = tempURL + form.ListBoxURL.options[OptionIndex].value;
		parent.location=tempURL;
	}
}

function gotoLinktester(form) 
{

	
	var OptionIndex=form.ListBoxURL.selectedIndex;
	var optionValue=form.ListBoxURL.options[OptionIndex].value;
	if(optionValue!="")
	{

			var tempURL = "http://www.mymapofseychelles.com/";
			tempURL = tempURL + form.ListBoxURL.options[OptionIndex].value;
			parent.location=tempURL;
	}
}


function gotoLink3(form,placeName) 
{
	var OptionIndex=form.ListBoxURL.selectedIndex;
	var optionValue=form.ListBoxURL.options[OptionIndex].value;
	if(optionValue!="")
	{
		var firstPart = "mymapof";
		var secondPart = placeName;
		
		tempURL = firstPart + secondPart + ".php" + form.ListBoxURL.options[OptionIndex].value;
		parent.location=tempURL;	
	}
}





	  function setDrops(theForm) 
  {  
   
  var now = new Date();  
  var theday = now.getDate()-1;  
  var themonth = now.getMonth();  
  var theyear = now.getFullYear();     	
  quoteRequest.optDays.selectedIndex = theday;     
	quoteRequest.optMonths.selectedIndex = themonth;          
	var found = 0;     
	for(i=1;i<quoteRequest.optYears.options.length;i++) 
	{      
		if (quoteRequest.optYears.options[i].value == theyear) 
		{       
				found = i;
		        break;      
		}    
	}     
	quoteRequest.optYears.selectedIndex = found; 
	preFill();
}

	function preFill()
{
var contents = document.searchform2.postcodeOrTown.value;
	if(contents ==" " | contents =="" )
		document.searchform2.postcodeOrTown.value = document.location.town.value;
}
 