function abrirventana(pagina, nombreventana, width, height, windowfeatures) {
	var winl = (screen.width - width) / 2;
	var wint = (screen.height - height) / 2;
	windowfeatures += ', width='+width+',height='+height+',top='+wint+',left='+winl;
	window.open(pagina, nombreventana, windowfeatures);
}
/* Email Validation script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code*/
function checkmail(e){
	var emailfilter=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i
	var returnval=emailfilter.test(e.value)
	if (returnval==false){
		alert("La cuenta de e-mail no es correcta.")
		e.select()
	}
	return returnval
}
function mailAntiSpam1()
{
var usuario = "eliane"
var dominio = "angusuruguay.com"
document.write("<a href=\"mailto:" + usuario + "@" + dominio + "\">" + usuario + "@" + dominio + "</a>")
}
function mailAntiSpam2()
{
var usuario = "jovenes"
var dominio = "angusuruguay.com"
document.write("<a href=\"mailto:" + usuario + "@" + dominio + "\">" + usuario + "@" + dominio + "</a>")
}
//document.getElementById('agregar1').style.display = 'block';
var integIndex = 4;
function agregar() {
  var link = document.getElementById('agregar1');
  link.blur();
  document.getElementById('integ_' + ++integIndex).style.display = 'block';
  if (integIndex >= 5) {
    link.style.display = 'none';
  }
  document.getElementById('quitar1').style.display = 'block';
}
function quitar() {
  var link = document.getElementById('quitar1');
  link.blur();
  document.getElementById('integ_' + integIndex--).style.display = 'none';
  if (integIndex <= 1) {
    link.style.display = 'none';
  }
  document.getElementById('agregar1').style.display = 'block';
}

//document.getElementById('agregar2').style.display = 'block';
var reprIndex = 2;
function agregar2() {
  var link = document.getElementById('agregar2');
  link.blur();
  document.getElementById('repr_' + ++reprIndex).style.display = 'block';
  if (reprIndex >= 3) {
    link.style.display = 'none';
  }
  document.getElementById('quitar2').style.display = 'block';
}
function quitar2() {
  var link = document.getElementById('quitar2');
  link.blur();
  document.getElementById('repr_' + reprIndex--).style.display = 'none';
  if (reprIndex <= 1) {
    link.style.display = 'none';
  }
  document.getElementById('agregar2').style.display = 'block';
};

