//Funcion para sacar un producto dstinto de la misma gama
function OtrasPresentaciones(strCodicata,strzona,strMarca)
{
/*	alert(strCodicata);
	alert(strzona);
	alert(strMarca);*/
	if (strMarca == "" && strzona != 'B')
	{
		window.location.href="producto.asp?CodigoCatalogo=" + strCodicata + "&CodigoZona=" + strzona;
	}
	else
	{
		window.location.href="producto.asp?CodigoCatalogo=" + strCodicata + "&CodigoZona=" + strzona + "&CodigoMarca=" + strMarca;
	}
	
}
function cambiarProductoGamas(strzona,strMarca,frmGa)
{

	if (strMarca == "" && strzona != 'B')
	{
		if (frmGa.sltGamas.options[frmGa.sltGamas.selectedIndex].value != "")
		{
			window.location.href="producto.asp?CodigoCatalogo=" + frmGa.sltGamas.options[frmGa.sltGamas.selectedIndex].value + "&CodigoZona=" + strzona;
		}
		else
		{
			return false;
		}
		
	}
	else
	{
		if (frmGa.sltGamas.options[frmGa.sltGamas.selectedIndex].value != "")
		{
			window.location.href="producto.asp?CodigoCatalogo=" + frmGa.sltGamas.options[frmGa.sltGamas.selectedIndex].value + "&CodigoZona=" + strzona + "&CodigoMarca=" + strMarca;
		}
		else
		{
			return false;
		}
			
	}
	
}
function cambiarProductoOtros(strCodiGama, strNavegacion)
{
	window.location.href="producto.asp?CodigoCatalogo=" + strCodiGama ;
}
//Funcion para mostrar una ventana flotante de la misma imgen pero ampliada
function ImagenAmpliada(strDIMGGRAN)
{
   var altoPantalla = window.screen.height;
   var anchoPantalla = window.screen.width;
   var sPropsVentana;
  
   var left = (anchoPantalla / 2) - (300 / 2);
   var top = (altoPantalla / 2) - (300 / 2);
	
   //var strPropiedadesVentana = "top=" + top + ",left=" + left + ",width=300,height=300,toolbar=no,resizable=no";
   sPropsVentana  = 'width=275,height=275';
   sPropsVentana += ',top=' + top + ',left=' + left;
   sPropsVentana += ',scrollbars=no,resizable=no';
   var url = "mostrar_Imagen.asp?sImagen=" + escape(strDIMGGRAN);
   window.open( url , 'imagen',sPropsVentana);
}
function AbrirVentana2(Modo,CODICATA)
{
	if(Modo == 'A'){
		window.open("../../VerEnlace/ASP/enlace.asp?strModo_rq=A&strCODICATA_rq=" + CODICATA + "","ventanilla","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=450,height=325");
	}else{
		window.open("../../VerEnlace/ASP/enlace.asp?strModo_rq=T&strCODICATA_rq=" + CODICATA + "","ventanilla","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=450,height=325");
	}
	return;
}
function VerSpot(strSpot)
{
	var altoPantalla = window.screen.height;
   var anchoPantalla = window.screen.width;
  
   var left = (anchoPantalla / 2) - (300 / 2);
   var top = (altoPantalla / 2) - (300 / 2);
	
   var strPropiedadesVentana = "dialogTop=" + top + "px;dialogLeft=" + left + "px;dialogWidth=" + 300 + "px;dialogHeight=" + 300 + "px;center=yes;help=no;status=no;";
   var url = "mostrar_spot.asp?sSpot=" + strSpot;
   var arrayRetorno = window.showModalDialog( url , 'SPOT PUBLICITARIO',strPropiedadesVentana);

}
