MSFPhover = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) ||
  ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )));

function MSFPpreload(img)
{
  var a=new Image(); a.src=img; return a;
}

function OpenAWindow( PageToLoad, WinName, Width, Height ) {
		xposition=0; yposition=0;
		Args = "width=" + Width + ",height=" + Height + "," 
		+ "location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,hotkeys=0"
		window.open( PageToLoad,WinName,Args );
	}

function OpenAWindow2( PageToLoad, WinName, Width, Height ) {
		xposition=0; yposition=0;
		Args = "width=" + Width + ",height=" + Height + "," 
		+ "location=0,menubar=0,resizable=0,scrollbars=1,status=0,titlebar=0,toolbar=0,hotkeys=0"
		window.open( PageToLoad,WinName,Args );
	}

function cambia_color1(objeto, color){
  var celdas = null;
  celdas = objeto.getElementsByTagName('td');
  tamanno = celdas.length;
  for(i=0;i<tamanno;i++) {
    celdas[i].setAttribute('bgcolor', color, 0);
  }
}

function cambia_color2(objeto, color){
  var celdas = null;
  celdas = objeto.getElementsByTagName('td');
  tamanno = celdas.length;
  for(i=0;i<tamanno;i++) {
    celdas[i].setAttribute('bgcolor', color, 0);
  }
}

function ColorOut(el, bg) {
	if (el.style) {
		el.style.cursor = 'default';
		el.style.backgroundColor = bg;
	}
}

function ColorIn(el, bg) {
	if (el.style) {
		el.style.cursor = 'hand';
		el.style.backgroundColor = bg;
	}
}


function CambiarColorIn(el, bg, textColor) {
	if (el.style) {
		el.style.cursor = 'hand';
		el.style.backgroundColor = bg;
		el.children.tags('A')[0].style.color = textColor;
	}
}

function CambiarColorOut(el, bg, textColor) {
	if (el.style) {
		el.style.cursor = 'default';
		el.style.backgroundColor = bg;
                el.children.tags('A')[0].style.color = textColor;
	}
}

function CambiarColorClick(el, bg, textColor) {
	if(event.srcElement.tagName=='TD') {
		el.style.backgroundColor = bg;
                el.children.tags('A')[0].style.color = textColor;
		el.children.tags('A')[0].click();
	}
}
