function cambiarIdioma()
{
	//location.href=document.getElementById("CEHS_SeleccionIdioma").value;
location.href = "http://translate.google.com/translate?hl=es&ie=UTF-8&sl=es&tl=" +  document.getElementById("CEHS_SeleccionIdioma").value+ "&u=" + location.href;
}

function cargarEnlacesRedesSociales()
{
	var pagina = document.URL;
	var tituloPagina = document.title;
	
if (document.getElementById("CEHS_enlBarraPermanenteFacebook"))
{
	document.getElementById("CEHS_enlBarraPermanenteFacebook").setAttribute("href","http://www.facebook.com/sharer.php?u=" + pagina + "&t=" + tituloPagina);
}
if (document.getElementById("CEHS_enlBarraPermanenteTwitter"))
{
	document.getElementById("CEHS_enlBarraPermanenteTwitter").setAttribute("href","http://twitthis.com/twit?url=" + pagina + "&title=" + tituloPagina);
}
	//document.getElementById("CEHS_enlBarraPermanenteLive").setAttribute("href","http://favorite.live.com/quickadd.aspx?marklet=1&mkt=en-us&url=" + pagina + "&title=" + tituloPagina);
}

function cambiarPaginaBusqueda(numPagina)
{
	document.getElementById('tx_indexedsearch_pointer').value=numPagina;
	document.getElementById('tx_indexedsearch_freeIndexUid').value='-1';
	document.getElementsByName('tx_indexedsearch[sword]')[0].value=document.getElementsByClassName('tx-indexedsearch-sw')[0].innerHTML;
	document.getElementById('tx_indexedsearch').submit();
}
