﻿/* Erro de Ajax Anthem */
function Anthem_Error(result_error) {
	alert('Error: ' + result_error.error);
}

/* Funcion que se lanza antes de la llamada Ajax */
function Anthem_PreCallBack() { 

}

/* Funcion que se lanza despues de la llamada Ajax */
function Anthem_PostCallBack() {

}

/***************************************/
/************** UTILES *****************/
/***************************************/

function clickButton(e, buttonid){ 
      var bt = document.getElementById(buttonid); 
      if (typeof bt == 'object'){ 
            if(navigator.appName.indexOf("Netscape")>(-1)){ 
                  if (e.keyCode == 13){ 
                        bt.click(); 
                        return false; 
                  } 
            } 
            if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1)){ 
                  if (event.keyCode == 13){ 
                        bt.click(); 
                        return false; 
                  } 
            } 
      } 
}

//**** copiarPortapapeles(txt): Copia txt al portapapeles de windows
function copiarPortapapeles(txt) {
	//holdtext.innerText = document.getElementById(txt).innerText;
	Copied = document.getElementById(txt).createTextRange();
	Copied.execCommand("Copy");
}