function maximize() {
if (top.location != location) top.location.href = location.href;
 self.moveTo(0,0);
 self.resizeTo(screen.availWidth,screen.availHeight);
}

function parent() {
if(top==self) { setTimeout("location='http://brinco-line.com/index2.html'",2000)
 }
}

function autotime() {
setTimeout("location='http://brinco-line.com/index2.html'",4000)
}


function display(OP) {
document.foto.src = ("catalog/" + OP + ".jpg");
}

function click() {
if (event.button==2) {
alert('Brinco-line.com © 2004 Todos los derechos reservados');
}
}
document.onmousedown=click

function Validar(form) {

if (form.email.value == "")
{ alert("Por favor ingrese su dirección de e-mail"); form.email.focus(); return; }
if (form.email.value.indexOf('@', 0) == -1 || form.email.value.indexOf('.', 0) == -1 || form.email.value.indexOf(' ') != -1)
{ alert("Dirección de e-mail inválida verifiquela"); 
form.email.focus(); return; }
if (form.Nombre.value == "")
{ alert("Por favor ingrese su nombre"); form.Nombre.focus(); return; }
if (form.Mensaje.value == "")
{ alert("Por favor ingrese su Mensaje"); form.Mensaje.focus(); return; }
form.submit();
}

function setpopup(mypage,myname,w,h) {
 var win=null;
  {
   myleft=(screen.width)?(screen.width-w)/2:100; 
   mytop=(screen.height)?(screen.height-h)/2:100;
  }
   settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes"; 
 win=window.open(mypage,myname,settings);
win.focus();
}


