// Script by Infinite Communication - http://www.infinite.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);


// Zenmed newsletter form check
function checkForm_newsletter(a) {
         if (isEmpty(a.newsletter_email.value)) {alert('Az "E-mail" mező nem lehet üres!');return false;}
         if (!emailTest(a.newsletter_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);
}

// -->