/***************** FECHA **************/
var pong;

function makeArray(n){
	this.length = n;
	for (i=1;i<=n;i++)
		this[i]=0;
	
	return this;
}



function displayDate() {
  var this_month = new makeArray(12);
  this_month[0]  = "Enero";
  this_month[1]  = "Febrero";
  this_month[2]  = "Marzo";
  this_month[3]  = "Abril";
  this_month[4]  = "Mayo";
  this_month[5]  = "Junio";
  this_month[6]  = "Julio";
  this_month[7]  = "Agosto";
  this_month[8]  = "Septiembre";
  this_month[9]  = "Octubre";
  this_month[10] = "Noviembre";
  this_month[11] = "Diciembre";

  var today = new Date();
  var day   = today.getDate();
  var month = today.getMonth();
  var year  = today.getYear();
  var dia = today.getDay();
    if (year < 1000) {
       year += 1900; }
  return( "<b>" + day + " de " + this_month[month] + " de " + year +"</b>");
}

/************************************************************************************************************/


function AbrirVentana(pagina,nombreventana) 
{
	myWin=window.open(pagina,nombreventana,'width=530,height=580,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,titlebar=no');
}

/************************************************************************************************************/

//popup
function AbrirCentrado(Url,NombreVentana,width,height,extras) {
var largo = width;
var altura = height;
var adicionales= extras;
var top = (screen.height-altura)/2;
var izquierda = (screen.width-largo)/2; nuevaVentana=window.open(''+ Url + '',''+ NombreVentana + '','width=' + largo + ',height=' + altura + ',top=' + top + ',left=' + izquierda + ',features=' + adicionales + ''); 
nuevaVentana.focus();
}


	function validacion_email(nom, tel, ema, com)
{
	var er_email = /^(.+\@.+\..+)$/
	
	
	if((nom.length == 0)||(ema.length == 0)||(tel.length == 0)||(com.length == 0))
	{
		alert("Debe completar todos los campos obligatorios")
		
		return false
	}
	
	if(!er_email.test(email)) 
	{ 
       		alert('Campo e-mail no válido.')
       		return false
    }
}

