// Sets/unsets row's shade colors when hovering over them
 
/* Usage: <tr onmouseover="rowColour(this, 'hilightclass')" onmouseout="rowColour(this, 'normalclass')">
 * @param   object   the table row
 * @param   object   the color to use for this row
 * @return  boolean  whether pointer is set or not */
function rowColour(theRow, theNewClass) {
    if (typeof(theRow.style) == 'undefined' || typeof(theRow.cells) == 'undefined') {
        return false;
    }
    theRow.className = theNewClass ;
    return true;
}

function isEmpty(aStr) {  
// Checks, if a value (any type) is empty
	aStr=aStr+""; // forces value into a string
	if (aStr=="null" || aStr=="" || aStr=="undefined" || aStr.length==0) return true;
	else return false;
}

function isNumeric(textobj) {
        for (var i=0; i<textobj.length; ++i) {
			if (textobj.charAt(i)<'0' || textobj.charAt(i)>'9') return false;       
        }
        return true;
}

function goToPage(){
// Jump to page selected from Drop Down Box
    var jumpList = document.forms.JumpForm.urlList;
    if (jumpList.options[jumpList.selectedIndex].value != 0)  location = jumpList.options[jumpList.selectedIndex].value;
}
