// gramy.hu

<!-- //
function MM_reloadPage(init) {  // reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


// hirlevel hun
function checkForm_hirlevh(a) {
         if (isEmpty(a.emailh.value)) {alert('Az "E-mail" mező nem lehet üres!');return false;}
         if (isEmpty(a.status.value)) {alert(' ');return false;}
         if (!emailTest(a.emailh.value)) {alert('Hibás "E-mail" cím!');return false;}
         return true;
}


// kapcsolat hun
function checkForm_kapcsh(a) {
         if (isEmpty(a.nev.value)) {alert('A "Név" mező nem lehet üres!');return false;}
         if (isEmpty(a.cim.value)) {alert('A "Cím" mező nem lehet üres!');return false;}
         if (isEmpty(a.telefon.value)) {alert('A "Telefon" mező nem lehet üres!');return false;}
         if (isEmpty(a.email.value)) {alert('Az "E-mail" mező nem lehet üres!');return false;}
         if (isEmpty(a.tema.value)) {alert('Az "Téma" mező nem lehet üres!');return false;}
         if (isEmpty(a.leiras.value)) {alert('A "Leírás" mező nem lehet üres!');return false;}
         if (!emailTest(a.email.value)) {alert('Hibás "E-mail" cím!');return false;}
         return true;
}

function isEmpty(a) {
         if (/^\s*$/.test(a)) return true;
         else return false;
}

function emailTest(a) {
        return /^[^@\s]+\@[^@\s.]+\.[^@\s]+$/.test(a);
}

// -->
