$(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'
    }; 
 
    // bind to the form's submit event 
    $('#myform').submit(function() { 
        $(this).ajaxSubmit(options); 
        return false; 
    }); 
    
    // malsup.com/jquery/form/#code-samples
    var options1 = { 
        target:     '#form_echo1',   // target element(s) to be updated with server response 
        type:      'post'
    }; 
 
    // bind to the form's submit event 
    $('#myform1').submit(function() { 
        $(this).ajaxSubmit(options1); 
        return false; 
    }); 

    var options2 = { 
        target:     '#myspan',   // target element(s) to be updated with server response 
        url:       '/include/ajax.form_prijava.php',
        type:      'post'
    }; 
 
 // bind to the form's submit event 
    $('#prijava').click(function() { 
        $('#myform').ajaxSubmit(options2); 
        return false; 
    });
    
    var options3 = { 
        target:     '#myspan',   // target element(s) to be updated with server response 
        url:       '/include/ajax.form_odjava.php',
        type:      'post'
    }; 
 
 // bind to the form's submit event 
    $('#odjava').click(function() { 
        $('#myform').ajaxSubmit(options3); 
        return false; 
    }); 
    
}); 

function validateUploadForm(){
    if (document.getElementById("ime_priimek").value != "" 
        && document.getElementById("naslov").value != "" 
        && document.getElementById("posta").value != "" 
        && document.getElementById("telefon").value != ""
        && document.getElementById("my_file").value != ""        
        ){
  $('#info_form_upload').resetForm();
 }
}

