function imprimir()
	{
	  var texto;
	  var textoImprimible;
	  var inicioImprimir;
	  var finImprimir;
	  texto = document.body.innerHTML;
	  inicioImprimir = texto.indexOf("<!-- Begin Print -->");
	  finImprimir = texto.indexOf("<!-- End Print -->");
	  textoImprimible = texto.substring(inicioImprimir, finImprimir);
	  textoImprimible = textoImprimible.replace("button=soporte_es", "button=trans");
	  textoImprimible = textoImprimible.replace("button=soporte_es", "button=trans");
	  textoImprimible = unescape(textoImprimible);
	  window.getSource.txtImprimible.value = textoImprimible;
	  
	  //window.getSource.action="/CmsPanda/imprimir.asp";
	  window.getSource.action="/CmsPanda/Programaticos/Imprimir.aspx";
	  window.getSource.submit();
	}
	
function pagInicio(urlInicio)
	{
  	  var texto;
	  var posBarra;

	  textoUrl = location.href;
	  textoUrl = textoUrl.replace("http://", "**");
	  posBarra = textoUrl.indexOf("/");
	  textoUrl = textoUrl.substring(0, posBarra)
	  textoUrl = textoUrl.replace("**", "http://");
	  urlInicio.style.behavior="url(#default#homepage)";
	  urlInicio.setHomePage(textoUrl);
	}

function URLEncodeClient(texto)
{
        var re;
 
        texto = texto.replace(/xE9/g, "%E9");
        texto = texto.replace(/xED/g, "%ED");
        texto = texto.replace(/xF3/g, "%F3");
        texto = texto.replace(/xFA/g, "%FA");
        texto = texto.replace(/xC1/g, "%C1");
        texto = texto.replace(/xC9/g, "%C9");
        texto = texto.replace(/xCD/g, "%CD");
        texto = texto.replace(/xD3/g, "%D3");
        texto = texto.replace(/xDA/g, "%DA");
        texto = texto.replace(/xA1/g, "%A1");
        texto = texto.replace(/xBF/g, "%BF");
        texto = texto.replace(/xF1/g, "%F1");
        texto = texto.replace(/xD1/g, "%D1");
 
        re= new RegExp("\"","g");
        texto = texto.replace(re, "%22");
        re= new RegExp("'","g");
        texto = texto.replace(re, "%27");
        re= new RegExp("&","g");
        texto = texto.replace(re, "%26");
        re= new RegExp("/","g");
        texto = texto.replace(re, "%2F");
        texto = texto.replace(/\\/g, "%5C");
        return (texto);
}
	
function EnviarCorreoEntorno()
	{
	  texto = location.href;
	  //window.open('/CmsPanda/Programaticos/EnviarPagina.aspx?SubjectMail='+ URLEncodeClient(SubjectMail) + '&texto=' + URLEncodeClient(texto),'Enviar_a_un_amigo' ,'resizable=no,width=296,height=368,left=0, top=0');
	  window.open('/CmsPanda/Programaticos/EnviarPagina.aspx?texto=' + URLEncodeClient(texto),'Enviar_a_un_amigo' ,'resizable=no,width=320,height=405,left=0, top=0');
	  //window.open('/CmsPanda/Programaticos/send.asp?texto=' + URLEncodeClient(texto),'Send_to_a_friend' ,'resizable=no,width=296,height=368,left=0, top=0');
	}
	
function abrirEncuesta()
{
	window.open('http://www.tech-marketresearch.com/pag_transito/trans_web_es.html', '', 'menubar=no,scrollbars=yes');	
	//window.open('http://www.tech-marketresearch.com/alede/survey.php?encu_id=ZNxYSSEb4u', '', 'menubar=no,scrollbars=yes');		 
}
