	function Google(kml)
	{
		map = window.open("http://www.centpeus.cat/seccions/maps.php?id=" + kml, "Google Maps", "height=600,width=740, resizable=yes,scrollbars=yes");
	}
	function Perfil(per)
	{
		map = window.open("http://www.centpeus.cat/seccions/perfil.php?perfil=" + per, "Perfil", "height=300, width=800, resizable=yes, scrollbars=yes");
	}
	function Mapa(mapa)
	{
		map = window.open("http://www.centpeus.cat/seccions/mapa.php?mapa=" + mapa, "Mapa", "height=600, width=740, resizable=yes, scrollbars=yes");
	}
	function Video(video)
	{
		pantalla = window.open("http://www.centpeus.cat/seccions/video.php?video=" + video, "Video", "height=390, width=470, resizable=yes, scrollbars=yes");
	}
	function Video3(video)
	{
		pantalla = window.open("http://www.centpeus.cat/seccions/video3.php?video=" + video, "Video", "height=390, width=470, resizable=yes, scrollbars=yes");
	}
function getkey(e)
{	
	if (window.event)
	   return window.event.keyCode;
	else if (e)
	   return e.which;
	else
	   return null;
}

function SubmitForm(e)
{
	if (getkey(e) == 13)
	   {
	   	document.form.submit();
	   	return true;
	   }
	else
		return false;
}