ccImageSrc = new Array ("images/arrow_red.gif", "images/arrow_black.gif", "images/arrow_blank.gif", "images/arrow_dot_blue.gif", "images/arrow_dot_red.gif")
ccImageList = new Array ();

for (counter in ccImageSrc) {
	ccImageList[counter] = new Image();
	ccImageList[counter].src = ccImageSrc[counter];
}
function LinkIn(LinkName,StatusBarText,ArrowColor){
	if(document.images){
		LinkName.src = "images/" + "arrow_" + ArrowColor + ".gif";
	}
	if(StatusBarText){
		window.status = StatusBarText;
	}
}
function LinkOut(LinkName, ArrowBlank){
	if(document.images){
		LinkName.src = "images/" + "arrow_" + ArrowBlank + ".gif"
	}
	window.status = "Done";
}
/**
 * Sets/unsets the pointer in browse mode
 *
 * @param   object   the table row
 * @param   object   the color to use for this row
 *
 * @return  boolean  whether pointer is set or not
 */
function Set_Pointer(objRow, objClassName)
{
    if (typeof(objRow.style) == 'undefined' || typeof(objRow.cells) == 'undefined') {
        return false;
    }
	var row_cells_cnt           = objRow.cells.length;
    for (var c = 0; c < row_cells_cnt; c++) {
        objRow.cells[c].className = objClassName;
    }

    return true;
} // end of the 'Set_Pointer()' function


/**
 * Check/Uncheck/Invert selection on checkbox
 *
 * @param   string   the type of action
 *
 * @return  boolean  whether pointer is set or not
 */
function Check_Action(strAct) {
	var obj_len = document.getElementsByName("cboSelect[]").length;
	switch(strAct) {
	case "All":
		for(i=0;i<obj_len;i++) {
			document.getElementsByName("cboSelect[]")[i].checked = true;
		}
		break;
	case "Not":
		for(i=0;i<obj_len;i++) {
			document.getElementsByName("cboSelect[]")[i].checked = false;
		}
		break;
	case "Inv":
		for(i=0;i<obj_len;i++) {
			document.getElementsByName("cboSelect[]")[i].checked = !document.getElementsByName("cboSelect[]")[i].checked;
		}
		break;
	}
} // end of the 'Check_Action()' function


/**
 * Check at least one row is selected
 *
 * @param   string   the type of action
 *
 * @return  boolean  whether pointer is set or not
 */
function Check_Selected() {
	var obj_len = document.all("cboSelect[]").length - 1;

	for (i=0;i<obj_len;i++) {
		if (document.all("cboSelect[]",i).checked == true) { return true; }
	}
	alert("Error !\n\ncheck at least\none row before action.");
	return false;
}