function TruncateField(fieldID){

	var Contents = getElement(fieldID);

	if (Contents.value == 'enter your username')
	{
		Contents.value = '';
	}

}

function getElement (fieldID) {
	
	return document.getElementById(fieldID);
	
}

function OnField(fieldID, Bcolor, size) {
	
		if (!Bcolor) { Bcolor = '#CC0000'; }	
		if (!size) { size = 2; }
		
		var theField = getElement(fieldID);
		
		theField.style.border=size+"px solid "+Bcolor;
	
}

function OffField(fieldID) {
	
		var theField = getElement(fieldID);
		
		theField.style.border="";
	
}

function RowBGOn(fieldID, bgColor) {
	
	if (!bgColor) { bgColor = '#E8F2FF'; }
	
	var theField = getElement(fieldID);
	
	theField.style.backgroundColor=bgColor;

}

function RowBGOff(fieldID) {
	
	var theField = getElement(fieldID);
	
	theField.style.backgroundColor="";

}

