//ABRIR VENTANA IMPRIMIR NOTA
function Abrir_nota (pagina) {
var opciones="toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=no,width=690,height=540,top=0,left=0";
window.open(pagina,"",opciones);
}
//ABRIR VENTANA POPUP
function Abrir_ventana2 (pagina) {
var opciones="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=715,height=695,top=0,left=0";
window.open(pagina,"",opciones);
}
//ABRIR RADIO
function Abrir_radio (pagina) {
var opciones="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=300,height=320,top=0,left=0";
window.open(pagina,"",opciones);
}


// JavaScript Document
// Array de los meses
var monthNames = new makeArray(12);
monthNames[0] = "enero";
monthNames[1] = "febrero";
monthNames[2] = "marzo";
monthNames[3] = "abril";
monthNames[4] = "mayo";
monthNames[5] = "junio";
monthNames[6] = "julio";
monthNames[7] = "agosto";
monthNames[8] = "septiembre";
monthNames[9] = "octubre";
monthNames[10] = "noviembre";
monthNames[11] = "diciembre";

// Array de los días

var dayNames = new makeArray(7);
dayNames[0] = "Domingo";
dayNames[1] = "Lunes";
dayNames[2] = "Martes";
dayNames[3] = "Mi&eacute;rcoles";
dayNames[4] = "Jueves";
dayNames[5] = "Viernes";
dayNames[6] = "S&aacute;bado";

var now = new Date();
var year = now.getYear();

if (year < 2000) year = year + 1900;

function makeArray(len) 
{
for (var i = 0; i < len; i++) this[i] = null;
this.length = len;
}

// HORA DIGITAL
zone=0;
isitlocal=true;
ampm='';

function updateclock(z){
zone=z.options[z.selectedIndex].value;
isitlocal=(z.options[0].selected)?true:false;
}

function WorldClock(){
now=new Date();
ofst=now.getTimezoneOffset()/60;
secs=now.getSeconds();
sec=-1.57+Math.PI*secs/30;
mins=now.getMinutes();
min=-1.57+Math.PI*mins/30;
hr=(isitlocal)?now.getHours():(now.getHours() + parseInt(ofst)) + parseInt(zone);
hrs=-1.575+Math.PI*hr/6+Math.PI*parseInt(now.getMinutes())/360;
if (hr < 0) hr+=24;
if (hr > 23) hr-=24;
ampm = (hr > 11)?"PM":"AM";
statusampm = ampm.toLowerCase();

hr2 = hr;
if (hr2 == 0) hr2=12;
(hr2 < 13)?hr2:hr2 %= 12;
if (hr2<10) hr2="0"+hr2

var finaltime=hr2+':'+((mins < 10)?"0"+mins:mins)+':'+((secs < 10)?"0"+secs:secs)+' '+statusampm;

if (document.all)
worldclock.innerHTML=finaltime
else if (document.getElementById)
document.getElementById("worldclock").innerHTML=finaltime
else if (document.layers){
document.worldclockns.document.worldclockns2.document.write(finaltime)
document.worldclockns.document.worldclockns2.document.close()
}


setTimeout('WorldClock()',1000);
}

window.onload=WorldClock
// FIN HORA DIGITAL

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->

function verifica() {
if ((document.form1.nombre.value == "") || (document.form1.nombre.value== null)) {
alert("Por favor ingrese su Nombre"); 
document.form1.nombre.focus();
return false;
}
else 
if ((document.form1.email.value == "") || (document.form1.email.value== null)) {
alert("Debe ingresar su e-mail"); 
document.form1.email.focus();
return false;
}
else 
if ((document.form1.comentario.value == "") || (document.form1.comentario.value== null)) {
alert("Ingrese un Comentario"); 
document.form1.comentario.focus();
return false;
}
else 
return true;
}

