{"size": 2277, "ext": "js", "max_stars_repo_path": "js/jr_lap_jual_barang.js", "max_stars_repo_name": "foldism11/jrss", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "js/jr_lap_jual_barang.js", "max_issues_repo_name": "foldism11/jrss", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "js/jr_lap_jual_barang.js", "max_forks_repo_name": "foldism11/jrss", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 29.9605263158, "max_line_length": 101, "alphanum_fraction": 0.5155906895}
function tampilkan(tipe){

    cabang=document.getElementById('cabang').value;
    brg=document.getElementById('brg').value;
    var tanggalx = document.getElementById('reservation').value;
    var tanggal = tanggalx.substr(0,10);
    var tanggal2 = tanggalx.substr(12,11);
    
    param='method=tampilkan'+'&brg='+brg+'&cabang='+cabang+'&tanggal='+tanggal+'&tanggal2='+tanggal2;
    tujuan='jr_slave_lap_jual_barang.php';
    post_response_text(tujuan, param, respog);
    function respog(){
        if(con.readyState==4){
            if (con.status == 200){
                busy_off();
                if (!isSaveResponse(con.responseText)){
                    alert('ERROR TRANSACTION,\n' + con.responseText);
                }else{
                   
                    document.getElementById('container').innerHTML = con.responseText;
                     //cancelIsidetail();
       
                }
            }else{
                busy_off();
          error_catch(con.status);
            }
        }   
    }
}


function lihatDetail(faktur)
{
    form(faktur);
    param = 'faktur=' + faktur+'&method=detail';
    tujuan = 'jr_slave_lap_jual_barang.php';
    post_response_text(tujuan, param, respog);
    function respog()
    {
        if (con.readyState == 4)
        {
            if (con.status == 200)
            {
                busy_off();
                if (!isSaveResponse(con.responseText))
                {
                    alert('ERROR TRANSACTION,\n' + con.responseText);
                }
                else
                {
                    document.getElementById('containerd').innerHTML = con.responseText;
                   // loadfiles(notrans);
                }
            }
            else
            {
                busy_off();
                error_catch(con.status);
            }
        }
    }
}

function form(faktur)
{
    width = '950';
    height = '400';
    //nopp=document.getElementById('nopp_'+id).value;
     content = "<div id=containerd align=center style=\"width=100% height=100% \"></div>";
   // content = "<iframe frameborder=0 width=100% height=100% src='" + tujuan + "'></iframe>"
    ev = 'event';
    title = "Detail Faktur "+faktur;
    showDialog1(title, content, width, height, ev); 
}
