function openWithSelfMain(url,name,width,height) {
	var options = "width=" + width + ",height=" + height + "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no";

	new_window = window.open(url, name, options);
	window.self.name = "main";
	new_window.focus();
}

function WinOpen(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function email()
{
var name = "info";
var domain = "vadebolas.com";
document.write('<a href=\"mailto:' + name + '@' + domain + '\">');
document.write('e-mail</a>');
}

function paginicio ()
{
  ie = (document.all)? true:false;
  if (document.all)
    {
            document.write ("<a style='cursor:hand' href='#' onmouseover=\"window.status='Hacer de &eacute;sta su p&aacute;gina de inicio';return true\" onClick='this.style.behavior=\"url(#default#homepage)\"; this.setHomePage(\"<{$xoops_url}>\");'>Página de inicio</a>");

    }
  else
    {
      document.write ("<a>Página de inicio</a>");
    }
}

function favoritos ()
{
  ie = (document.all)? true:false;
  if (document.all)
    {
            document.write ("<a href='#'onmouseover=\"window.status='Agregar esta p&aacute;gina en favoritos';return true\" onClick='window.external.addFavorite(\"<{$xoops_url}>\", \"<{$xoops_sitename}>\");'>Agregar a favoritos</a>");
    }
  else
    {
      document.write ("<a>Agregar a favoritos</a>");
    }
}

function Item(){
this.length = Item.arguments.length
for (var i = 0; i < this.length; i++)
  this[i] = Item.arguments[i]
}

function Fecha() {
var ndia = new Item('Domingo','Lunes','Martes','Miércoles','Jueves','Viernes','Sábado')
var nmes = new Item('enero','febrero','marzo','abril','mayo','junio','julio','agosto','septiembre','octubre','noviembre','diciembre')
var ahora
var fecha = new Date()
var ano = fecha.getYear()
var mes = fecha.getMonth()
var dia = fecha.getDay()
var aux = "" + fecha

if (ano<10) {
 ano2 = "200" + eval(ano)
}
else if (ano<80) {// ano tiene 2 dígitos 19xx (más de 80)
 ano2 = "20" + ano
}
else if (ano<=99) {// ano tiene 2 dígitos 20xx (menor de 80)
 ano2 = "19" + ano
}
else if (ano<1000) {// ano tiene 3 dígitos (100 es 2000)
 ano2 = eval(ano) + eval(1900)
}
else {// ano tiene 4 dígitos
 ano2 = ano
}
ahora = ndia[dia] + ", " + eval(aux.substring(7, 10)) + " de " + nmes[mes] + " del " + ano2
return ahora
}

var startTime=new Date();
startTime=new Date();

function right(e) {
    if (navigator.appName == 'Netscape' && (e.which == 2 || e.which == 3)) {
      alert("© Copyright");
      return false;
    }
    else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button==2 || event.button == 3)) {
      alert("© Copyright");
      return false;
    }
    return true;
  }


//Specify affected tags. Add or remove from list:
var tgs = new Array( 'div','td','tr', 'table', 'a', 'input', 'textarea');

//Specify spectrum of different font sizes:
var szs = new Array( 'xx-small','x-small','small','medium','large','x-large','xx-large' );
var startSz = 1;

function ts( trgt,inc ) {
	if (!document.getElementById) return
	var d = document,cEl = null,sz = startSz,i,j,cTags;

	sz += inc;
	if ( sz < 0 ) sz = 0;
	if ( sz > 6 ) sz = 6;
	startSz = sz;

	if ( !( cEl = d.getElementById( trgt ) ) ) cEl = d.getElementsByTagName( trgt )[ 0 ];

	cEl.style.fontSize = szs[ sz ];

	for ( i = 0 ; i < tgs.length ; i++ ) {
		cTags = cEl.getElementsByTagName( tgs[ i ] );
		for ( j = 0 ; j < cTags.length ; j++ ) cTags[ j ].style.fontSize = szs[ sz ];
	}
}

// Hide/show columns script start -->
var getById = (typeof document.getElementById != "undefined");function toggleDisplay(obj,display1,display2){	if(!getById) return;
obj = getRef(obj);
if(obj.style.display == display2)
obj.style.display = display1;
else
obj.style.display = display2;
repaintFix();}function getRef(obj){
if(getById)
return(typeof obj == "string") ? document.getElementById(obj) : obj;}function repaintFix(obj){
if("undefined" == typeof document.body	  || "undefined" == typeof document.body.style) return;
if(obj == null)
obj == document.body;
else obj = getRef(obj);
document.body.style.visibility = "hidden";
document.body.style.visibility = "visible";
}
// Hide/show columns script end -->