<!-- 
function rTrim(value) {
	while ((value.length > 0) && (value.charAt(0) == ' '))
		value = value.substr(1, value.length-1);
	return value;
}

function lTrim(value) {
	while ((value.length > 0) && (value.charAt(value.length-1) == ' '))
		value = value.substr(0, value.length-1);
	return value;
}

function Trim(value) {
  return rTrim(lTrim(value));
}

function isNumber(value) {
	tv=Trim(value);
	if ( tv.length == 0 )
		return true
	else
		return !isNaN(value);
}
function isInteger(value) {
	if (isNumber(value)) {
		if (value.indexOf('.') == -1)
			return true
		else
			return false
	}
	else
		return false;
} 

function openPopUp(sourcefile, w, h) {
    window.open(sourcefile,"menu1","width="+w+",height="+h+",scrollbars=yes,menubar=no,toolbar=no,screenX=100,screenY=30,left=100,top=30");
}

function newWindow(address,width,height,scroll) {
    contentsWindow = window.open(address, "contentsWin","width="+width+",height="+height+",scrollbars="+scroll+"");
    return false;
}

var focusStyle = "font-weight:bold; background-color:#d7dce0";
var blurStyle = "font-weight:normal;background-color:#f0f0f0";
var hasFocus = "";

function labelFocus(field) {
	hasFocus = field.name;
	elem = field.name + '_label';
	document.getElementById(elem).style.cssText = focusStyle;
}
function labelBlur(field)  {
	elem = field.name + '_label';
	document.getElementById(elem).style.cssText = blurStyle;
	hasFocus = "";
}

function showDetails(rowid,imgid) {
	if (rowid.style.display == "none") {
		rowid.style.display = "";
		imgid.src = "/images/contract2.gif";
	}
	else {
		rowid.style.display = "none";
		imgid.src = "/images/expand2.gif";
	}
}

-->













