	
function testzero(oForm,oField, errstring,strErrorMessage) {

	if ((isZero(oForm, oField)) == true)
		{	
		strErrorMessage += 'You must choose a ' + errstring + 'before saving the record.\n';
		setBgColor(oForm, oField);
		}
		return strErrorMessage;	
}				
function testnumeric(oForm,oField, errstring,strErrorMessage) {

	if ((isNumeric(oForm, oField)) == false)
		{	
		strErrorMessage += 'You must enter a numeric ' + errstring + '\n';
		setBgColor(oForm, oField);
		}
		return strErrorMessage;	
}
function testlength(oForm,oField, errstring,strErrorMessage,fieldlength) {

	if (document.forms[oForm].elements[oField].value.length > fieldlength) 
				{
					strErrorMessage += 'The maximum number of characters in the '+  errstring +' field is '+ fieldlength +' characters.\n';
					strErrorMessage += 'There are currently ' + document.forms[oForm].elements[oField].value.length  + ' characters in this field\n';
					setBgColor(oForm, oField);
				}
		return strErrorMessage;	
}
function testblank(oForm,oField, errstring,strErrorMessage) {

	if (isBlank(oForm, oField)) 
		{	
		strErrorMessage += errstring + '\n';
		setBgColor(oForm, oField);
		}
		return strErrorMessage;	
}
