var commonGridObj_log;

function $(id){
    return document.getElementById(id);
}

function createGrid(){
    //header
    var headerArgs_log = new Array("日志名称","日志类型","日志记录时间","日志内容","操作人");
    //width
    var widthArgs_log = new Array("150","150","150","500","150");
    //column align                       
    var colAlignArgs_log = new Array("center","center","center","center","center");
    //column sort               
    var colSortArgs_log = new Array("txt","txt","txt","txt","txt");
    //column type
    var colTypeArgs_log = new Array("ro","ro","ro","ro","ro");
 
    
    commonGridObj_log = new TGridCommon("mygrid_container_log","form1",headerArgs_log,widthArgs_log,colAlignArgs_log,colSortArgs_log,colTypeArgs_log);
    
    commonGridObj_log.setResponseUrl("loggridsource.aspx");
    commonGridObj_log.setRequest("loggridsource.aspx?handle=list&show_page=15&cur_page=1&uid="+commonGridObj_log.newGuid());
    commonGridObj_log.setSourceType("json");
    commonGridObj_log.setSkin("xp");
    commonGridObj_log.setImageUrl("../images/");
    commonGridObj_log.initGrid();
    commonGridObj_log.bind();
    
    commonGridObj_log.initPageByHandle("list");
}