function obtenerLocation_alv()
	{	
		var enlace;
		var url_par= new String(document.location) ;
		sznohtm = url_par.split(".");
		szvmptweb = sznohtm[2].indexOf("VMPTWEB");
		szdirectorios = sznohtm[2].split("/");
		if (szvmptweb!=-1)
		{
			var n;
			n = szdirectorios.length - 1;
			enlace = "http://www.mifarmacia.es/producto.asp?Producto=" + szdirectorios[n];
		}
		else 
		{
			enlace = "http://www.mifarmacia.es/producto.asp?Producto=..";	
			for (i=1;i<szdirectorios.length;++i)
			{
				enlace = enlace + "/" + szdirectorios[i];	
			}
		}
	return enlace;
	}
	
	function reCargaMarcos_alv()
	{
	if ( parent == self )
		parent.location.href = obtenerLocation_alv();
	}

