
/*function muestraImagen(foto,ancho,alto){
	//funcio para mostrar un imagen
	//se debe indica la foto, el ancho y el alto
	if (typeof ventanaCalendario.document == "object") {
		ventanaCalendario.close()
	}
	ventanaCalendario = window.open("mf.php?foto="+foto+"&an="+ancho+"&al="+alto+,"calendario","width="+ancho+",height="+alto+",left=300,top=100,scrollbars=no,menubars=no,statusbar=NO,status=NO,resizable=NO,location=NO")
}*/
function muestraImagen(foto,ancho,alto,enca){
	//funcio para mostrar un imagen
	//se debe indica la foto, el ancho y el alto
	if (typeof ventanaImagen.document == "object") {
		ventanaImagen.close()
	}
	ventanaImagen = window.open("mf.php?foto="+foto+"&an="+ancho+"&al="+alto+"&tit="+enca,"Imagen","width="+ancho+",height="+alto+",left=300,top=100,scrollbars=no,menubars=no,statusbar=NO,status=NO,resizable=NO,location=NO")
}
function muestraWall(foto,ancho,alto,enca){
	//funcio para mostrar un imagen
	//se debe indica la foto, el ancho y el alto
	if (typeof ventanaWall.document == "object") {
		ventanaWall.close()
	}
	ventanaWall = window.open("wf.php?foto="+foto+"&an="+ancho+"&al="+alto+"&tit="+enca,"Wallpaper","width="+ancho+",height="+alto+",left=300,top=100,scrollbars=no,menubars=no,statusbar=NO,status=NO,resizable=NO,location=NO")
}

//Creada por Henry F.C y modificada por Guillermo Arias Cruz para Zews S.A
  function PopUp(img,enca){
  foto1= new Image();
  foto1.src=(img);
  Control(img,enca);
  }

function Control(img,enca){
if((foto1.width!=0)&&(foto1.height!=0)){
  verFoto(img,enca);
}
  else{
funcion="Control('"+img+"')";
intervalo=setTimeout(funcion,20);
}
}
function verFoto(img,enca){
  ancho=foto1.width;
  alto=foto1.height;
  if (typeof ventanaImagen.document == "object") {
		ventanaImagen.close()
	}
  ventana = window.open("mf.php?foto="+img+"&an="+ancho+"&al="+alto+"&tit="+enca,"Imagen","width="+ancho+",height="+alto+",left=190,top=110,scrollbars=no,menubars=no,statusbar=NO,status=NO,resizable=NO,location=NO")
  ventana.moveTo((screen.width - ancho)/2,(screen.height - (alto))/2)//centra la ventana
  }


