 
/* Validacija upisa */
function chkFormular () {
  			             
    var e_mail = document.getElementById('e_mail');
    if (e_mail.value.length == 0) {
        alert("E-mail - obavezan upis!");
        document.getElementById('e_mail').style.backgroundColor='#FAEDEA';
        return false;
    } else {
        if (e_mail.value.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) == -1){
            alert("E-mail nije ispravan !");
            document.getElementById('e_mail').style.backgroundColor='#FFF4F4';
            document.getElementById('e_mail').style.border = "1px solid #CDC85C"
            e_mail.focus();
            return false ;
        }
    }


  alert("Zahvaljujemo se na upitu. \n Povratno ćemo Vas kontaktirati na Vašu eMail adresu! ");
 // document.getElementById("upis_ok").style.display = 'block';
 //  document.getElementById("button_ok").style.display = 'block';

   return true;
  
}  



 