var newWin;

function openWnd(ref,name,flag) {
	newWin = window.open(ref, name, flag);
	newWin.focus();
}
// end of openWnd

function delItem(loc, data) {
	var agree = confirm ('Apakah Anda ingin:\n' + data + '?');
	if (agree)
	{
		loc.href = href;
	}
	return agree;
}
// end of delItem


function askConfirm(str) {
	var agree = confirm (str);
	return agree;
}
// end of askConfirm

function setPointer(theRow, thePointerColor)
{
    if (thePointerColor == '' || typeof(theRow.style) == 'undefined') {
        return false;
    }
    if (typeof(document.getElementsByTagName) != 'undefined') {
        var theCells = theRow.getElementsByTagName('td');
    }
    else if (typeof(theRow.cells) != 'undefined') {
        var theCells = theRow.cells;
    }
    else {
        return false;
    }

    var rowCellsCnt  = theCells.length;
    for (var c = 0; c < rowCellsCnt; c++) {
        theCells[c].style.backgroundColor = thePointerColor;
    }

    return true;
} // end of the 'setPointer()' function