$(document).ready(function() { 

// malsup.com/jquery/form/#code-samples
    var options = { 
        target:     '#form_echo',   // target element(s) to be updated with server response 
        type:      'post',
        url:       '/include/ajax/ajax.form_registracija_vv.php'
    }; 
 
    // bind to the form's submit event 
    $('#pridobitev_gesla').submit(function() { 
        $(this).ajaxSubmit(options); 
        return false; 
    }); 
    
    //vprašajte farmacevta
    var options2 = { 
         target:     '#form_echo',  
         type:      'post',
         url:       '/include/ajax/ajax.vpr_farmacevta.php'
    }; 
     
    $('#info_form').submit(function() { 
        $(this).ajaxSubmit(options2); 
        return false; 
    });
    
   
    var options_enovice = { 
        target:     '#enovice_return',   // target element(s) to be updated with server response 
        type:      'post',
        url:       '/include/ajax/ajax.prijava_enovice.php'
    }; 
 
    // bind to the form's submit event 
    $('#newsletter_prijava').submit(function() { 
        $(this).ajaxSubmit(options_enovice); 
        return false; 
    });
    
    var options_enovice2 = { 
        target:     '#enovice_return2',   // target element(s) to be updated with server response 
        type:      'post',
        url:       '/include/ajax/ajax.prijava_enovice.php'
    }; 
 
    // bind to the form's submit event 
    $('#newsletter_prijava2').submit(function() { 
        $(this).ajaxSubmit(options_enovice); 
        return false; 
    });
    
    var options_enovice_odjava = { 
      target:     '#form_echo',   // target element(s) to be updated with server response 
      type:      'post',
      url:       '/include/ajax/ajax.enovice_odjava.php'
    }; 
 
    // bind to the form's submit event 
    $('#enovice_odjava').submit(function() { 
        $(this).ajaxSubmit(options_enovice_odjava); 
        return false; 
    })
 
 });
