
/**** Lagerkochbuch.js *****/

function lkb_init()
{
    table_setup();
}

function table_setup()
{
    try {
     var table;
     var rows;
     var cells;
     var i;
     var j;
     var tables = document.getElementsByName('iTable'); 
     for ( var tc = 0 ; tc < tables.length; tc++ )
     {
           table = tables[tc];
           table.className = "iTable";
           rows = table.getElementsByTagName("tr");  
           for(i = 0; i < rows.length; i++)
           {   
                 cells = rows[i].getElementsByTagName("td");
                 for ( j = 0 ; j< cells.length ; j++ )
                 {
                     cells[j].className = "iTableTD";
                 }
                 cells = rows[i].getElementsByTagName("th");
                 for ( j = 0 ; j< cells.length ; j++ )
                 {
                     cells[j].className = "iTableTH";
                 }                 
                 if(i % 2 == 0)
                 {
                      rows[i].className = "iTableRow0";
                 }else{
                      rows[i].className = "iTableRow1";
                 }      
           }
     }
    } catch ( e ) {
        // noop
    }
}



function RCAW_selectRecipeCategoryDo(name,id,text)
{
    //alert(name+' has '+text);
}








function setDisp(id,value)
{
    document.getElementById(id).style.display = value;
}



