function formato_tag(formulario) {

	if (formulario._formato.value > 0) {
		var aTag1=new Array(4);

		aTag1[0]='<P Class="titulo">';
		aTag1[1]='<P Class="subtitulo">';
		aTag1[2]='<P Class="textoj">';
		aTag1[3]='<P Align=CENTER Class="texto">';
		aTag1[4]='<P Class="redtext">';

		formulario._tag1.value = aTag1[formulario._formato.value-1];
		formulario._tag2.value = '</P>';
	}
}


function Launch(page) { 
OpenWin = this.open(page, "fotogal_", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=610,height=650"); 
}

function Launch1(page) { 
OpenWin = this.open(page, "foto_", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=610,height=500"); 
}

function rolloverer() {
  if (!document.getElementById) {return}

  var tables=document.getElementsByTagName('TABLE');
  for (var i=0;i<tables.length;i++) {

    var tds=tables[i].getElementsByTagName('TD');

    for(var j=0;j<tds.length;j++) { 
      if (tds[j].getAttribute('hcolor')) {
        if (!tds[j].getAttribute('bcolor')) {tds[j].setAttribute('bcolor', tds[j].getAttribute('bgcolor'));}

        tds[j].onmouseover=function(){this.setAttribute('bgColor',this.getAttribute("hcolor"))}
        tds[j].onmouseout= function(){this.setAttribute('bgColor',this.getAttribute("bcolor"))}
      }
    }
  }
}

onload=rolloverer;
