
function validate(form)
                       {   
 
                             with(form)
                                   if(title.value=="" ||  content.value=="")
                                   {
                                         alert("Моля попълнете полетата!");
                                         return false;
                                   }
  
                       }    
                      
function validate_new_students(form)
                       {                 
with(form)
                                   if(ime.value=="" ||  prezime.value=="" ||  familia.value=="" ||  egn.value=="" ||  adres.value=="")
                                   {
                                         alert("Моля попълнете полетата!");
                                         return false;
                                   }

var xx=document.newww.telefon.value                     
var x=document.newww.egn.value
var anum=/(^\d+$)|(^\d+\.\d+$)/

if (anum.test(x))
testresult=true
else{
alert("Моля въведете за ЕГН само числа!")
return false;
}

 
if (anum.test(xx))
testresult=true
else{
alert("Моля въведете за Телефон само числа!")
return false;
}


                                  
                       }
function checkban(){
if (document.layers||document.all||document.getElementById)
return validate_new_students()
else
return true
}                                  
      
