
<!--

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);


function emailaddressCheck(){
    txt=document.maillist.address.value;
    if(txt=="" ){
        alert("wpisz e-mail");    
        return false;
        }
        else if(txt!=""){
        str="";          
            if (txt.indexOf("@")<3){
            str+="e-mail niepoprawny. Powinien byc tekst przed @.";
            }

            if ((txt.indexOf(".com")<5)&&(txt.indexOf(".org")<5)
            &&(txt.indexOf(".gov")<5)&&(txt.indexOf(".net")<5)
            &&(txt.indexOf(".mil")<5)&&(txt.indexOf(".fm")<5)&&(txt.indexOf(".uk")<5)&&(txt.indexOf(".edu")<5)&&(txt.indexOf(".pl")<5)){
            str+="Sprawd? sufiks - np: .com, .edu, .net, .org, .gov, .mil lub .pl";
            }
      if(str==""){
        return true;
        }else{
        alert(str);
        str="";
        return false;
        }
        }
}

function loginCheck(){
    log=document.logAndPass.login.value;
    has=document.logAndPass.password.value;
    str="";
    if(log==""){
        str+=": wpisz login"; 
        }
    if(has==""){
        str+=": wpisz haslo";
        }
    if(str==""){
        return true;
        }else{
        alert(str);
        str="";
        return false;
        }
}
 
// -->

