function organicaon(elemento) {
  if (elemento.className.substr(elemento.className.length - 3) == "Off") {
     elemento.className = elemento.className.substr(0,elemento.className.length - 3) + "On";
  }
}

function organicaoff(elemento) {
  if (elemento.className.substr(elemento.className.length - 2) == "On") {
     elemento.className = elemento.className.substr(0,elemento.className.length - 2) + "Off";
  }
}

function Click(src) {
	if(event.srcElement.tagName=='TD' && src.children.tags('A').length > 0)
		src.children.tags('A')[0].click();
}

function Window(direccion) 
{
    	var NuevaVentana = window.open(direccion, 'help','resizable=no,width=400,height=200,status=0,menubar=0,scrollbars=0');
}

function Fotox3(direccion) 
{
    	var NuevaFoto = window.open(direccion, 'foto','resizable=yes,width=500,height=350,status=0,menubar=0,scrollbars=0');
}

function ventanita(url, ancho, alto)	{
       resto = 'scrollbars=yes,width=' + ancho + ',height=' + alto + ',screenX=100,screenY=20,resizable=yes,status=yes'
		window.open(url, '_blank', resto);
}

function pres(){
window.open("inicio.htm","popup","width=400,height=250,toolbars=no,resize=no,location=no") 
}


function cierra()
{
   window.close()
}


function anterior()
{
   history.back()
}

function verrotar() {
hoy = new Date();
maximo = 6;
segundos = hoy.getSeconds();
if (segundos == 0) {segundos = 1}
while (segundos > maximo) {segundos = segundos-maximo}
document.write ('<A HREF="'+irhacia[segundos]+'"><IMG SRC="'+fotito[segundos]+'">');
}

function armarvector (v1,v2,v3,v4,v5,v6) {
this[1]=v1
this[2]=v2
this[3]=v3
this[4]=v4
this[5]=v5
this[6]=v6
}

