function setPointer(theRow, thePointerColor)
{
    
	if (thePointerColor == '' || typeof(theRow.style) == 'undefined')
		{
        return false;
	    }
    if (typeof(document.getElementsByTagName) != 'undefined')
		{
        var theCells = theRow.getElementsByTagName('td');
		var theFonts = theRow.getElementsByTagName('font');
    	}
    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;
		//theCells[c].style.color = "red";
		
		
    }
	
    return true;
}



function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->


//=============================================================================================

function validateForm(thisForm, requiredFields, requiredFieldNames) {
	var thisForm = document.getElementById(thisForm);
	var message = "";
	var hasMissing = false;
	var result = true;
	for (var i=0; requiredFields[i]; i++) {
			if (thisForm.requiredFields[i].value == "") {
				hasMissing = true;
				message += "  - " + requiredFieldNames[i] + "\n";
			}
	}
	if (hasMissing) {
		message = "The following fields are required:\n" + message;
		result = false;
		alert(message);
	}
	return result;
}


