function cambia(elemento){
elemento.style.color="000000";
elemento.style.backgroundColor="00FF00";
}

function restaura(anterior){
anterior.style.color="00FF00";
// restaura normalmente sobre fondo negro
//anterior.style.backgroundColor="000000";
// restaura sobre cualquier fondo
anterior.style.backgroundColor="";
}

function goUrl(url){//carga las paginas webs en la ventana
window.location=url;
}

function Ventana(){

    var miVentana;

    miVentana=open("","miVentana","menubar=0,width=250,height=150,top=100,left=100");

    miVentana.document.write("<HTML>");
    miVentana.document.write("<HEAD>");
    miVentana.document.write("<TITLE>Nuevo objeto Window</TITLE>");
    miVentana.document.write("</HEAD>");
    miVentana.document.write("<BODY>");
    miVentana.document.write("<CENTER>");
    miVentana.document.write("<H4>PULSA</H4><P><h3>Ctrl + D</h3><P><H5>PARA AŅADIRNOS A TUS FAVORITOS</H5><P>");
    miVentana.document.write("<FORM>");
    miVentana.document.write('<INPUT TYPE=BUTTON VALUE="Cerrar" onClick="self.close()">');
    miVentana.document.write("</FORM>")
    miVentana.document.write("</CENTER>");
    miVentana.document.write("</BODY>");
    miVentana.document.write("</HTML>");
  }


function favoritos() {
	var direccion = "http://www.incorrecto.com"
	var titulo = "El Incorrecto"
	if ((navigator.appName == "Microsoft Internet Explorer") &&
		(parseInt(navigator.appVersion) >= 3)) {
			window.external.AddFavorite(direccion, titulo);
			}else{
					Ventana();

}
}

function abreVentana(direc){
window.open(direc,"ventana","menubar=0,width=500,height=400,top=100,left=150");
}

function nuevaVentana(dir){
window.open(dir,"ventana2","menubar=0,width=500,height=500,top=100,left=150,scrollbars=yes");
}

