function initFields()  {
	if (processFields!=true) return;

	for (var x=0; x<=fieldValues.length-1; x++)
	{
		if (MM_findObj(fieldNames[x]).value.length==0) {
			if (fieldValues[x]!='') {MM_findObj(fieldNames[x]).value=fieldValues[x]}
					else
						{MM_findObj(fieldNames[x]).value=fieldLabels[x]}
			}
	}

}

function enterField(fn) {
	//	If the field has the default label, clear it.  Otherwise, leave the contents alone when we enter it.
	if (processFields!=true) return;
	if (MM_findObj(fieldNames[fn]).value==fieldLabels[fn]) {
		MM_findObj(fieldNames[fn]).value='';
		MM_findObj(fieldNames[fn]).className='InputBoxCompleted';
		}
	}

function leaveField(fn) {
	//	If the field has been left blank, restore the label.
	if (processFields!=true) return;
	if (MM_findObj(fieldNames[fn]).value=='') {
			MM_findObj(fieldNames[fn]).value=fieldLabels[fn];
			MM_findObj(fieldNames[fn]).className='FullSizeInputBox';
			}
	}

function leaveAddressDropDown(f) {
	if (processFields!=true) return;
		if (f.value!='XX') {f.className='AddressDropDownCompleted';} else {f.className='AddressDropDown';}
	}	

	function hideLabels() {
		//	Scan through the page, and hide all labels with a classs of "FieldLabel."  Also, change the classes for
		//	elements that have a current class of "LeftColumn" or "RightColumn."
		if (processFields!=true) return;	// Exit immediately if we're not doing field processing for this form
		 var paras = document.getElementsByTagName('div'); 
		  for (var i = 0; i < paras.length; i++) 
		  { 
				    paras[i].className = (paras[i].className == 'FieldLabel') ? 'hideLabel' : paras[i].className; 
				    paras[i].className = (paras[i].className == 'LeftColumn') ? 'LeftColumnPadded' : paras[i].className; 
				    paras[i].className = (paras[i].className == 'RightColumn') ? 'RightColumnPadded' : paras[i].className; 
		  } 
		 var cells = document.getElementsByTagName('td'); 
		  for (var i = 0; i < cells.length; i++) 
		  { 
				    cells[i].className = (cells[i].className == 'LeftColumn') ? 'LeftColumnPadded' : cells[i].className; 
				    cells[i].className = (cells[i].className == 'RightColumn') ? 'RightColumnPadded' : cells[i].className; 
		  } 
		initFields();
	}
