<!-- 

// Sniffer
OP = (window.opera) ? 1:0; 
IE4 = (document.all && !OP) ? 1:0; 
IE5 = (IE4 && document.getElementById) ? 1:0; 
NN4 = (document.layers) ? 1:0; 
NN6 = (!IE4 && !NN4 && document.getElementById) ? 1:0; 
NOT = (!OP && !IE4 && !IE5 && !NN4 && !NN6) ? 1:0;

window.status = "Club Plein Air BdS - Palermo."

function j() {
  return;
}

function validate_Mail() {
  var email_reg_exp = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;
  if (!email_reg_exp.test(document.form1.email.value)) {
    alert("Email non valida") ;
    return false;
  }
}

function mostra(testo){
  document.getElementById(testo).style.display='';
  document.getElementById(testo+'A').style.display='none';
  document.getElementById(testo+'C').style.display='';
}

function nascondi(testo){
  document.getElementById(testo).style.display='none';
  document.getElementById(testo+'A').style.display='';
  document.getElementById(testo+'C').style.display='none';
}

function adduma(cosa){
  document.getElementById(cosa).style.display='';
}

function astuta(cosa){
  document.getElementById(cosa).style.display='none';
}

function hideDiv() {
document.getElementById("divflash").style.display = "none";
}

function validate_gb(){
  if (!document.gb.mittente.value) {
    alert("Inserire Nome e Cognome o Nickname");
    return false;
  }

  if (!document.gb.posta.value) {
    alert("Inserire Email") ;
    return false;
  } else {
    var email_reg_exp = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;
    if (!email_reg_exp.test(document.gb.posta.value)) {
      alert("Email non valida") ;
      return false;
    }
  }      
  return true;
}


function imposta(ss){
  document.gb.SN.value = ss ;
}


function c(lettera){
  document.write('<img align=left src=images/' + lettera + '.png alt="' + lettera + '">');
}

function dx(foto,testo){
  document.write('<table border="0" cellpadding="0" cellspacing="0" align="right" width="1">');
  document.write('<tr>');
  document.write('<td><img src="images/pixel.gif" width="6"></td>');
  document.write('<td style="border:1px solid #c0c0c0; padding:6px;" bgcolor="#ffffff"><img src=images/' + foto + '><br></td>');
  document.write('</tr>');
  if (testo != ""){
    document.write('<tr>');
    document.write('<td></td>');
    document.write('<td align="center" class=rosso9>' + testo + '<br></td>');
    document.write('</tr>');
  }
  document.write('<tr>');
  document.write('<td colspan=2><img src="images/pixel.gif" height="4"></td>');
  document.write('</tr>');
  document.write('</table>');
}


function sx(foto,testo){
  document.write('<table border="0" cellpadding="0" cellspacing="0" align="left" width="1">');
  document.write('<tr>');
  document.write('<td style="border:1px solid #c0c0c0; padding:6px;" bgcolor="#ffffff">');
  document.write('<img src=images/' + foto + '><br></td>');
  document.write('<td><img src="images/pixel.gif" width="6"></td>');
  document.write('</tr>');
  if (testo != ""){
    document.write('<tr>');
    document.write('<td align="center" class=rosso9>' + testo + '<br></td>');
    document.write('<td></td></tr>');
  }
  document.write('<tr>');
  document.write('<td colspan=2><img src="images/pixel.gif" height="4"></td>');
  document.write('</tr>');
  document.write('</table>');
}


function cn(foto,testo){
  document.write('<br><br><table border="0" cellpadding="0" cellspacing="0" align="center" width="1">');
  document.write('<tr>');
  document.write('<td style="border:1px solid #c0c0c0; padding:6px;" bgcolor="#ffffff">');
  document.write('<img src=images/' + foto + '><br></td>');
  document.write('</tr>');
  if (testo != ""){
    document.write('<tr>');
    document.write('<td align="center" class=rosso9>' + testo + '<br></td>');
    document.write('</tr>');
  }
  document.write('</table><br>');
}


function ctl_login() {
  if (!document.f2.utnt.value) {
    alert("Inserire l'identificativo utente");
    document.f2.utnt.focus();
    return false;
  }

  if (!document.f2.pssw.value) {
    alert("Inserire password");
    document.f2.pssw.focus();
    return false;
  }
  document.f2.h1.value = document.f2.utnt.value ;
  document.f2.h2.value = document.f2.pssw.value ;
  document.f2.submit();
}


var aa=null
function pag_club(url) {
   aa=window.open(url,'aa')
   aa.focus();
}





//-->
