function cambiaImagen(name,imagen,texto){
  name.src=imagen;
  objetoSPAN = document.getElementById("TEXTO1");
if(objetoSPAN.innerHTML=="")
objetoSPAN.innerHTML = texto;
else
objetoSPAN.innerHTML = "" 
}

function getSelText()
{
    
    if (document.getSelection) {
        //alert("primer if");
    var str = document.getSelection();
       
  } else if (document.selection && document.selection.createRange) {
    //alert("segundo if");
    var range = document.selection.createRange();
    var str = range.text;
    
  } else {
    //alert("tercer if");
    var str = "Sorry, this is not possible with your browser.";
  }
  

   
  if (str!='') {
     a=str.indexOf(' ');
     
     if (a!=-1) {
        b=str.split(' ');
        c=b[0];
        document.formen.word.value =c;
     } else {
        document.formen.word.value = str;
     }
  }   
}

function addToFavorites() {
    
/*    agt=navigator.userAgent.toLowerCase();
    
    
    titulo="Explicando Suecia en espaņol";
    direccion="http://blog.sweetsweden.com";
    
    if (agt.indexOf('msie')!=-1) {
        if (window.external) { // IE Favorite
		window.external.AddFavorite(direccion, titulo); }
    }else
    {
    if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(titulo,direccion,'');
	} 
	else if ((window.opera) && (window.print)) { // Opera Hotlist
		return true;
            }
    }*/
}

