function actividad()
{  
  wtes=window.open("../actividades/indice.html",'Índice_de_actividades','width=550,height=450,scrollbars=1');
  wtes.window.focus();
}

function RecibeActividad(activi)
{
 document.buscador.mnuSic.value = activi;
}

function EnviaActividad(activi)
{
   window.opener.RecibeActividad(activi);
   window.close();
 }
function anuncio()
{  
  wtes=window.open("../actividades/anuncio_indice.html",'Índice_de_actividades','width=670,height=450,scrollbars=1');
  wtes.window.focus();
}

function RecibeAnuncio(anun)
{
 document.buscador.Actividades.value = anun;
}

function EnviaAnuncio(anun)
{
   window.opener.RecibeAnuncio(anun);
   window.close();
 }

<!-- Begin		Desactivar boton derecho del mouse
//function click(){if (event.button==2){alert('Bienvenido a megem, proveedor de servicios integrales para la empresa en Internet')}}document.onmousedown=click
// End -->


<!-- Begin		Nombre en la barra de estado
function scrollit(seed) {
	var m1  = "M E G E M, P r o v e e d o r   d e   s e r v i c i o s   p a r a   e m p r e s a s";
	var msg=m1;
	var out = " ";
	var c   = 1;
	if (seed > 125) {
		seed--;
		cmd="scrollit("+seed+")";
		timerTwo=window.setTimeout(cmd,100);
	}
	else if (seed <= 125 && seed > 0) {
		for (c=0 ; c < seed ; c++) {
			out+=" ";
			}
		out+=msg;
		seed--;
		window.status=out;
		cmd="scrollit("+seed+")";
		timerTwo=window.setTimeout(cmd,100);
		}
		else if (seed <= 0) {
			if (-seed < msg.length) {
				out+=msg.substring(-seed,msg.length);
				seed--;
				window.status=out;
				cmd="scrollit("+seed+")";
				timerTwo=window.setTimeout(cmd,100);
			}
			else {
				window.status=" ";
				timerTwo=window.setTimeout("scrollit(125)",100);
			}
	   }
}
// End -->

<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->

function MM_checkBrowser(NSmin,IEmin) 
{ 
        var newURL = '', version = parseFloat(navigator.appVersion);
        if (navigator.appName.indexOf('Netscape') != -1)
        {
                if (version < NSmin) alert("Con la versión anterior a la 4.x.\n de Netscape, puede que no vea correctamente estas páginas.");
        }
        else 
                if (navigator.appName.indexOf('Microsoft') != -1) 
                {
                        if (version < IEmin) alert("Con la versión anterior a la 4.x.\n de Microsoft Explorer, puede que no vea correctamente estas páginas.");
                }
                else 
                        alert("Procure mantener actualizada la versión de su navegador para que estas páginas se visualicen correctamente.");
                        document.MM_returnValue = false;

                }

        var isNav, isIE;
        var coll = "";
        var styleObj = "";
        
        
        if (parseInt(navigator.appVersion) >=4) {
                if (navigator.appName == "Netscape") {
                        isNav = true
                                } else {
                
                isIE = true;
                coll = "all.";
                styleObj = ".style";
                                }
        }
                else 
                {
                        alert("Procure mantener actualizada la versión de su navegador para que estas páginas se visualicen correctamente.");
                }

function entrar(src,color_entrada) 
{ 
if (!src.contains(event.fromElement)) 
	{ 
	src.style.cursor = "hand"; 
	src.bgColor = color_entrada; 
	src.FontColor="ff0000"; 
	} 
} 

function sortir(src,color_default) 
{ 
if (!src.contains(event.toElement)) 
	{ 
	src.style.cursor = "default"; 
	src.bgColor = color_default;
	}
}

function MM_showHideLayers() { 
var i, visStr, args, theObj;
args = MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) { 
        visStr   = args[i+2];

        if (navigator.appName == 'Netscape' && document.layers != null) {
                theObj = eval(args[i]); 
                if (theObj) theObj.visibility = visStr;

                } else if (document.all != null) { 
                        if (visStr == 'show') visStr = 'visible'; 
                        if (visStr == 'hide') visStr = 'hidden';

                        theObj = eval(args[i+1]);

                        if (theObj) theObj.style.visibility = visStr;

                } 
        }
}


function validar() {
	a=document.forms[0].elements
	if (a[0].options.selectedIndex != 0 ) {
		provincia = a[0].options[a[0].options.selectedIndex].value
		location = provincia + ".htm"
	}
	return false
}

function abrirpopup(nombre,ancho,alto) {
dat = 'width=' + ancho + ',height=' + alto + ',left=0,top=0,scrollbars=yes,resize=yes';
window.open(nombre,'',dat)
}
