// -------------------------------------------------------------
// Copyright (c) 2007 carERP Software, All Rights Reserved.
// url: http://www.carERP.com
// -------------------------------------------------------------

function changeClassName(objName,className) {
	if (document.layers) {
	    document.layers[objName].className = className ;
    }
    else if (document.all) {
        document.all[objName].className = className ;
    }
    else if (document.getElementById) {
        document.getElementById(objName).className = className ;
    }
}

function highlightRow(row, bhighlight) {
    if (bhighlight == "true") {
        changeClassName( row+'type',   'cell-typehighlight' ) ;
        changeClassName( row+'version','cell-descriptionshighlight' ) ;
        changeClassName( row+'date',   'cell-descriptionshighlight' ) ;
        changeClassName( row+'size',   'cell-descriptionshighlight' ) ;
    }
    else {
        changeClassName( row+'type',   'cell-type2' ) ;
        changeClassName( row+'version','cell-descriptions' ) ;
        changeClassName( row+'date',   'cell-descriptions' ) ;
        changeClassName( row+'size',   'cell-descriptions' ) ;
    }
}

function highlightRow2(row, bhighlight) {
    highlightRow(row,bhighlight) ;
    if (bhighlight == "true") {
        changeClassName( row+'order',  'cell-descriptionshighlight' ) ;
        changeClassName( row+'expires','cell-descriptionshighlight' ) ;
    }
    else {
        changeClassName( row+'order',  'cell-descriptions' ) ;
        changeClassName( row+'expires','cell-descriptions' ) ;
    }
}

