function onLoad() {
document.getElementById('menu_1').style.display = 'none';
document.getElementById('menu_2').style.display = 'none';
document.getElementById('menu_3').style.display = 'none';
}
function filter(cer,img) {
 document.getElementById(img).style.filter='Alpha(opacity='+cer+')';
}
function url(url) {
  open(url,'','toolbar = 1, location = 1, directories = 1, status = 1, menubar = 1, scrollbars = 1, resizable = 1');
}

function comments(tipo,id) {
  window.open('comments.php?tipo=' + tipo + '&view=' + id,'Radio','width=400, height=450, left=-1, top=-1, scrollbars=1, resize=0');
}

function FormComments() {
  if (document.SendComment.name.value != "") {
    if (document.SendComment.mail.value != "") {
      if (document.SendComment.comment.value != "") {
        return true;
      }
      else {
        alert("Por favor, ingrese el comentario");
        return false;
      }
    }
    else {
      alert("Por favor, ingrese su email (no será publicado)");
      return false;
    }
  }
  else {
    alert("Por favor, ingrese su nombre");
    return false;
  }
}

function iMGP(view) {
  window.open('img/img.php?view='+view,'img','width=100, height=100, left=0, top=0, scrollbars=1, resize=1');
}