function openMapWindow(loc)

	{
	
	
		// loc - Code relating to client
	
		if (loc == "coral" || loc == "duncannon" || loc == "ingoldale" || loc == "greenacres" || loc == "water" || loc == "water1" || loc=="clemco" || loc=="goldenbeach") map = 1;								//	Ingoldmells
		if (loc == "tomlinsons" || loc=="sandfield" || loc=="merryfield" || loc=="south-sands" ) map = 2;	// Chapel
		if (loc == "dainville" || loc == "royaloak") map = 3;							// Winthorpe
		if (loc == "northshoreHC") map = 4;												// Skegness											
		

		
		if (map == 1) 					// Ingoldmells Map
		
			{
				mapWin = window.open("","","width = 500, height = 650, scrollbars = yes, left = 350, top = 50");
				mapWin.document.write("<html><head></head><body>");
				mapWin.document.write('<p align="center"><iframe name="I1" height="555" width="460" src="../java/ingoldmells_map/map.php?location=' + loc +'" scrolling="no" style="border-style: solid; border-width: 1">');
                mapWin.document.write('Your browser does not support inline frames or is currently configured not to display inline frames.</iframe></p>');
			}
		
		if (map == 2)					// Chapel Map 
		
			{
				mapWin = window.open("","","width = 550, height = 900, scrollbars = yes, left = 350, top = 50");
				mapWin.document.write("<html><head></head><body>");
				mapWin.document.write('<p align="center"><iframe name="I1" height=790" width="510" src="../java/chapel_map/map.php?location=' + loc + '">');
        		mapWin.document.write('Your browser does not support inline frames or is currently configured not to display inline frames.</iframe></p>');
				
			}
			
		if (map == 3)					// Winthorpe Map 
		
			{
				mapWin = window.open("","","width = 550, height = 900, scrollbars = yes, left = 350, top = 50");
				mapWin.document.write("<html><head></head><body>");
				mapWin.document.write('<p align="center"><iframe name="I1" height=790" width="510" src="../java/winthorpe_map/map.php?location=' + loc + '">');
        		mapWin.document.write('Your browser does not support inline frames or is currently configured not to display inline frames.</iframe></p>');
				
			}
		
		if (map == 4)					// Skegness Map 
		
			{
				mapWin = window.open("","","width = 550, height = 900, scrollbars = yes, left = 350, top = 50");
				mapWin.document.write("<html><head></head><body>");
				mapWin.document.write('<p align="center"><iframe name="I1" height=790" width="510" src="../java/skegness_map/map.php?location=' + loc + '">');
        		mapWin.document.write('Your browser does not support inline frames or is currently configured not to display inline frames.</iframe></p>');
				
			}
		

		
		mapWin.document.write("<p align='center'><a href='' onMouseOver='self.close()'>Roll over to close.</a></p>");
		mapWin.document.write("</body></html>");	
	
	
	}
	
function click_handler1()
{
	index=document.form1.select1.selectedIndex;
	if (document.form1.select1.options[index].value != "none")
	{
		code = document.form1.select1.options[index].value;
		chosen = "../java/skegness_map/map.php?location=" + code;
		window.I1.location = chosen;
		
		chosen1 = "url_iframe.php?location=" + code;
		window.I2.location = chosen1;

	}
	
}

function click_handler2()
{

	index=document.form1.select2.selectedIndex;
	if (document.form1.select2.options[index].value != "none")
	{
		code = document.form1.select2.options[index].value;
		chosen = "../java/skegness_map/map.php?location=" + code;
		window.I1.location = chosen;
		
		chosen1 = "url_iframe.php?location=" + code;
		window.I2.location = chosen1;
	}	

}


function click_handler3()
{

	index=document.form1.select3.selectedIndex;
	if (document.form1.select3.options[index].value != "none")
	{
		code = document.form1.select3.options[index].value;
		chosen = "../java/skegness_map/map.php?location=" + code;
		window.I1.location = chosen;
		
		chosen1 = "url_iframe.php?location=" + code;
		window.I2.location = chosen1;

	}	

}


function getLocation()

	{
		
		index=document.form1.select4.selectedIndex;
		if (document.form1.select4.options[index].value != "none")
		{
			
											// Skegness											
		
			//mapWin = window.open("","","width = 500, height = 650, scrollbars = yes, left = 350, top = 50");
			code = document.form1.select4.options[index].value;
			
			if (code == "cherrytree" || code == "coral" || code == "duncannon" || code == "ingoldale" || code == "greenacres" || code == "water" || code == "water1" || code=="clemco" || code=="goldenbeach") map = "../java/ingoldmells_map/map.php";								//	Ingoldmells
			if (code == "tomlinsons" || code=="sandfield" || code=="merryfield" ) map = "../java/chapel_map/map.php";		// Chapel
			if (code == "dainville" || code == "royaloak") map = "../java/winthorpe_map/map.php";							// Winthorpe
			if (code == "northshoreHC") map = "../java/skegness_map/map.php";
			
			if (code == "country" || code == "topyard" || code == "havenhouse")map = "../java/lincolnshire_map/map.php";
			
			
			chosen = map + "?location=" + code;
			window.I1.location = chosen;
			
			
			
			//openMapWindow(code);
			
			chosen1 = "url_iframe.php?location=" + code;
			window.I2.location = chosen1;

			
			
			
		
		}
		
		
		
	}

function getLocationC()

	{
		
		index=document.form1.select5.selectedIndex;
		if (document.form1.select5.options[index].value != "none")
		
		{
			code = document.form1.select5.options[index].value;
			map = "../java/lincolnshire_map/map.php";
			
			chosen = map + "?location=" + code;
			window.I1.location = chosen;
			
			//openMapWindow(code);
			
			chosen1 = "url_iframe.php?location=" + code;
			window.I2.location = chosen1;
		}
		
	}
			








	