function mOvr(src,color) {
 if (!src.contains(event.fromElement)) {
	if (color == null || color == "") { var caplicar = "#FFE67D"; }
	else { var caplicar = color; }
	
	src.style.cursor = 'hand';
	src.bgColor = caplicar;
 }
}

function mOut(src,color) {
 if (!src.contains(event.toElement)) {
	if (color == null || color == "") { var caplicar = "#FFCF18"; }
	else { var caplicar = color; }
	
	src.style.cursor = 'default';
	src.bgColor = caplicar;
 }
}

function mClk(src) {
 if(event.srcElement.tagName=='TD') {
	src.children.tags('A')[0].click();
 }
}

function callejero() {
        window.open('/callejero/','callejero', 'width=700,height=600,scrollbars=yes');
}
function eltiempo() {
        window.open('/eltiempo/', 'tiempoim', 'width=330,height=580,scrollbars=no');
}
function iniciarsesion() {
        window.open('/infomanacor/registro/iniciarsesion.fcgi', 'imlogin', 'width=220,height=200,scrollbars=no');
}
function callejerohome() {
	var nombre = document.callejero.nombre.value;
        window.open('/callejero/buscar.cgi?nombre='+nombre, 'callejero', 'width=700,height=600,scrollbars=yes');
}
function onizate() {
	window.open('http://on.infobalear.com/onweb/','onweb','width=417,height=500,scrollbars=yes');
}
function verperfil(nick) {
        window.open('/gente/'+nick);
}
function vermafia(codigo) {
        window.open('/gente/vermafia.fcgi?codigo='+codigo, 'vermafiaim', 'width=570,height=500,scrollbars=yes');
}
function buscarnick() {
	var nick = document.buscar.nick.value;
        window.open('/gente/'+nick);
	return false;
}
function cerrarsesion() {
        window.open('/infomanacor/registro/iniciarsesion.fcgi?accion=cerrar', 'imlogin', 'width=200,height=137,scrollbar=yes');
}
function recuperarpass() {
        window.open('/infomanacor/registro/recuperarpass.cgi', 'recuperarpass', 'width=220,height=200,scrollbars=no');
}
function moduser(opcion) {
	if (opcion == null || opcion == "undefined" || opcion == "") {
		location.href='/zonausuario';
	}
	else {
		location.href='/zonausuario/'+opcion;
	}
}
function mensajeria(opcion) {
	if (opcion == null || opcion == undefined || opcion == "") {
		window.open('/infomanacor/registro/mensajeria.fcgi', 'mensajeriaim', 'width=552,height=500,scrollbars=yes');
	}
	else {
		window.open('/infomanacor/registro/mensajeria.fcgi?accion='+opcion, 'mensajeriaim', 'width=552,height=500,scrollbars=yes');
	}
}
function enviarmensaje(nick) {
	window.open('/infomanacor/registro/mensajeria.fcgi?para='+nick+'&accion=nuevo', 'mensajeriaim', 'width=552,height=500,scrollbars=yes');
}
function registro() {
	location.href='/infomanacor/registro/';
}
function abrirventana(theURL,winName,features) {
	window.open(theURL,winName,features);
}
function layer(id, NNtype, IEtype, WC3type) {
    if (document.getElementById) {
        eval('document.getElementById(id).style.visibility = "' + WC3type + '"');
    } else {
        if (document.layers) {
            document.layers[id].visibility = NNtype;
        } else {
            if (document.all) {
                eval('document.all.' + id + '.style.visibility = "' + IEtype + '"');
            }
        }
    }
}
