/*
 * Copyright 2003
 * SVFnet Desarrollos Digitales Multimedia
 * Author: Julio Varela
 * Date: Noviembre 20, 2002
 */
<!--

//*******************************************
// Validador de Formulario   
//*******************************************

function Form1_Validator(theForm)
{
  if (theForm.nombre.value == "")
  {
    alert("Debe indicarnos su \"Nombre, por favor\".");
    theForm.nombre.focus();
    return (false);
  }

  if (theForm.apellido.value == "")
  {
    alert("Debe indicarnos su \"Apellido, por favor\".");
    theForm.apellido.focus();
    return (false);
  }

  if (theForm.email.value == "")
  {
    alert("Escriba por favor su dirección de \"email\".");
    theForm.email.focus();
    return (false);
  }

  if (theForm.email.value.length < 8)
  {
    alert("Escriba por lo menos 8 caracteres en la dirección de \"email\".");
    theForm.email.focus();
    return (false);
  }

  if (theForm.email.value.length > 40)
  {
    alert("Escriba como máximo 40 caracteres en ladirección de \"email\".");
    theForm.email.focus();
    return (false);
  }

  return (true);
}

//*******************************************
// script de fecha
//*******************************************

function doClock(){ // By Paul Davis - www.kaosweaver.com
  var t=new Date(),a=doClock.arguments,str="",i,a1,lang="5";
  var month=new Array('Enero','Enero', 'Febrero','feb', 'Marzo','marzo', 'Abril','abr', 'Mayo','mayo', 'Junio','jun', 'Julio','jul', 'Agosto','agosto', 'Septiembre','sept', 'Octubre','oct', 'Noviembre','nov', 'Diciembre','dic');
  var tday= new Array('Domingo','dom','Lunes','lun', 'Martes','mar', 'Miércoles','mié','Jueves','jue','Viernes','vie','Sábado','sáb');
  for(i=0;i<a.length;i++) {a1=a[i].charAt(1);switch (a[i].charAt(0)) {
  case "M":if  ((Number(a1)==3) && ((t.getMonth()+1)<10)) str+="0";
  str+=(Number(a1)>1)?t.getMonth()+1:month[t.getMonth()*2+Number(a1)];break;
  case "D": if ((Number(a1)==1) && (t.getDate()<10)) str+="0";str+=t.getDate();break;
  case "Y": str+=(a1=='0')?t.getFullYear():t.getFullYear().toString().substring(2);break;
  case "W":str+=tday[t.getDay()*2+Number(a1)];break; default: str+=unescape(a[i]);}}return str;
}


//*******************************************
// script de fecha en Status
//*******************************************
  var hoy = new Date();
  var anio = hoy.getYear();
  var mName = hoy.getMonth() + 1;
  var dName = hoy.getDay() + 1;
  var diaNr = ((hoy.getDate()<10) ? "" : "") + hoy.getDate();
  if(dName==1) Dia = "Domingo";
  if(dName==2) Dia = "Lunes" ;
  if(dName==3) Dia = "Martes";
  if(dName==4) Dia = "Miércoles";
  if(dName==5) Dia = "Jueves";
  if(dName==6) Dia = "Viernes";
  if(dName==7) Dia = "Sábado";
  if(mName==1) Mes = "Enero" ;
  if(mName==2) Mes = "Febrero";
  if(mName==3) Mes = "Marzo" ;
  if(mName==4) Mes = "Abril" ;
  if(mName==5) Mes = "Mayo" ;
  if(mName==6) Mes = "Junio" ;
  if(mName==7) Mes = "Julio" ;
  if(mName==8) Mes = "Agosto";
  if(mName==9) Mes = "Septiembre";
  if(mName==10) Mes = "Octubre";
  if(mName==11) Mes = "Noviembre";
  if(mName==12) Mes = "Diciembre";
  window.defaultStatus = "Infinita FM Online - " + Dia + " " + diaNr + " de " + Mes + " de " + anio


//*******************************************
// script de boton derecho   
//*******************************************
function click(){
if(event.button==2){
alert("© INFINITA FM ONLINE\n San Juan - Argentina");
}
}
document.onmousedown=click


//*******************************************
// script para abrir ventana   
//*******************************************
function AbreVentana(URL)
{
sw = (screen.width-(screen.width/20));
sh = (screen.height-(screen.height/5));
sl = (screen.width/40);
st = (screen.height/35);
ss ='';
ss+='scrollbars'+','+'toolbar'+',';
ss+='width='+sw+','+'height='+sh+','+'left='+sl+','+'top='+st;
var hWnd = window.open(URL,'radio',ss);
if (!hWnd.opener) hWnd.opener = self;
if (hWnd.focus != null) hWnd.focus();
return
}


//-->
