/*** Validates a field of type Text to ensure that the user has not left it blank.** Example call: msg += checkTextField("document.forms[0]","thatField","That Requried Field");** @param	form  		The name of the form in which the field is located (ex: "document.forms[0]").*		fieldName 	The name of the field you wish to validate.*    		label		The text label on the form that describes the field to the user.** @return	String tmpMsg.  The validation error message.*/function checkTextField (form, fieldName, label){	var tmpMsg = "";	hasStyle = eval(form + '.' + fieldName + '.style');	val = eval(form + '.' + fieldName + '.value');	// Check to see if a value was entered into the field	if(val=="")	{		tmpMsg +=" - The field '" + label + "' is required.\n";		if(hasStyle)		{			invalidBorder = "solid 1px red";			eval(form + '.' + fieldName + '.style.border=invalidBorder');		}	}	else	{		if(hasStyle)		{			validBorder = "solid 1px #808080";			eval(form + '.' + fieldName + '.style.border=validBorder');		}	}	return tmpMsg;}function checkDialogField(form, fieldName, label){	var tmpMsg = "";	fieldLength = eval(form + '.' + fieldName + '.options.length');	valid = 0; //Assume invalid		for (i=0; i< fieldLength; i++)	{		if(eval(form + "." + fieldName + ".options[" + i + "].selected"))		{			valid = 1;		}			}		if(valid==0)	{		tmpMsg +=" - The field '" + label + "' is required.\n";	}	return tmpMsg;}function checkRadioField (form, fieldName, label){	var tmpMsg = "";	fieldLength = eval(form + '.' + fieldName + '.length');	valid = 0; //Assume invalid		for (i=0; i< fieldLength; i++)	{		if(eval(form + "." + fieldName + "[" + i + "].checked"))		{			valid = 1;		}	}		if(valid==0)	{		tmpMsg +=" - The field '" + label + "' is required.\n";	}	return tmpMsg;	}