var Hoy = new Date(hoy1)
var ampm

function Reloj(){ 
    Hora = Hoy.getHours() 
    Minutos = Hoy.getMinutes() 
    Segundos = Hoy.getSeconds() 
		
	if (Hora > 12) {
	  Hora -= 12
	  ampm = "pm"
	}else { ampm = "am" }
	if (Hora == 0) {
	  Hora = 12
	}
	
	if (Hora<=9) Hora = "0" + Hora 
    if (Minutos<=9) Minutos = "0" + Minutos 
    if (Segundos<=9) Segundos = "0" + Segundos 
	
	Dia = Hoy.getDate()
	Mes = Hoy.getMonth() + 1
	Anio = Hoy.getFullYear()
	
	if (Dia<=9) Dia = "0" + Dia 
    if (Mes<=9) Mes = "0" + Mes 
     
    var Fecha = Dia + " / " + Mes + " / " + Anio; 
    
	var Script, Total 
     
    Script = Hora + ":" + Minutos + ":" + Segundos + " " + ampm + '&nbsp;&nbsp;&nbsp;'
	Total = Script +" "+ Fecha
   
    document.getElementById('reloj').innerHTML = Total 
	
    Hoy.setSeconds(Hoy.getSeconds() +1)
	
    setTimeout("Reloj()",1000) 
} 

function setExternalLinks() { if ( !document.getElementsByTagName ) { return null; }  var anchors = document.getElementsByTagName( "a" ); for ( var i = 0; i < anchors.length; i++ ) {  var anchor = anchors[i];  if ( anchor.getAttribute( "href" ) &&  anchor.getAttribute( "rel" ) == "external" ) {  anchor.setAttribute( "target", "_blank" ); } } } 
 
  function onLoadProcess()
  {
      setExternalLinks();
  }
