function isNotSelectEmptyNiCero(camp,mis)
{
	//alert(camp.selectedIndex);
	if( camp.selectedIndex==-1 || camp.selectedIndex==0 ){
		camp.focus();
    		statBar(mis);
    		alert(mis);
    		return false;
	}
	else
  	  return true;
}
//3-. pone el mensaje en la barra de estado
function statBar (mis)
{
   window.status = mis;
   setTimeout("erase()",10000);
   return true;
}

if (document.layers)
{
  doc = "document.";
  style= ".";
  hidden="hide";
  finid = "";
}
if (document.getElementById)
{
    doc = "document.getElementById('";
    style= "').style.";
	finid = "').";
    hidden="hidden";
}
if (document.all)
{
    doc = "document.all.";
    style= ".style.";
    hidden="hidden";
    finid = ".";
}

function mueveMarco(marco)
{
  var timer;
  eval("var alto = " + doc + marco + style+"top");
  eval("var izq = " + doc + marco + style+"left");
  alto = alto.substring(0, alto.length-2);
  izq = izq.substring(0, izq.length-2);
  alto = (alto-200)%200+200;
  izq = (izq-300)%300+300;
  eval(doc + marco + style + "top = '"+(alto-0+1)+"'");
  eval(doc + marco + style + "left = '"+(izq-0+1)+"'");
  timer = setTimeout("mueveMarco('"+marco+"')", 30);
  
}

function right(e) { 
if (navigator.appName == 'Netscape' && 
(e.which == 3 || e.which == 2)) 
{
alert("Lo siento, el botón derecho del ratón está inhabilitado"); 
return false; 
}
else if (navigator.appName == 'Microsoft Internet Explorer' && 
(event.button == 2 || event.button == 3)) { 
alert("Lo siento, el botón derecho del ratón está inhabilitado"); 
return false; 
} 
return true; 
} 




function mostrarCursor(target) 
{
  eval(doc + target + style + "cursor = 'hand'");
}

function cambiaColor(target, col)
{
  eval(doc + target + style + "color = '"+col+"'");
}

function cambiaColor2(target, col)
{
  if (document.all || document.layers)
    eval(doc + target + style + "color = '"+col+"'");
  else
  {
  }
}


function cambiaVisibilidad(target, visible)
{
  if (visible == true)
  {
    eval(doc + target + style + "visibility = 'visible'");
  }
  else
  {
    eval(doc + target + style + "visibility = "+hidden);
  }
}

function getanio()
{
		var date = new Date();
		var year = date.getYear();
		var dato = year + ". Tfno: 91 659 71 00"
		return dato;
}

function esEntero(form, it)
{
	eval("var cond = parseInt(document."+form+"."+it+".value)");
	if (! cond)
	{
		return false;
	}
    return true;

}

  /*
var textos = new Array();
textos[0] ='noticias'
textos[1] ='sac'
textos[2] ='ayto'
textos[3] ='ciudad'
textos[4] ='busqueda'
function cambiasec(pagina, indtexto)
{
  eval("top."+doc+"framesec"+finid+"src='"+pagina+"'");
  cambiaVisibilidad("top.layercontenidoppal", false);
    cambiaVisibilidad("top.pie2", false);
    cambiaVisibilidad("top.cabecera2", false);
    cambiaVisibilidad("top.layernovedades", false);
    cambiaVisibilidad("top.layerbannersnovedades", false);
    cambiaVisibilidad("top.cabecera3", false);
    cambiaVisibilidad("top.pie3", false);
    cambiaVisibilidad("top.layercopy", false);
//	eval(doc+"layercontenidosec"+style+"height='588px'")
//    eval(doc+"framesec"+finid+"height='588'");
  cambiaVisibilidad("top.layercontenidosec", true);
//  cambiaVisibilidad("pieppal", true);

  for (var i = 0; i < textos.length; i++)
  {
	if (i == indtexto)
      cambiaVisibilidad("top.texto1"+textos[i], true);
	else
      cambiaVisibilidad("top.texto1"+textos[i], false);
	
  }
  
}
*/
