function r_on(i) {
  if (document.images) { 
    if (document[i].src.indexOf("down") < 0) {
      document[i].src = "http://www.teletracking.com/images/" + i + "_over.gif"; 
    }
  }
}

function r_off(i) {
  if (document.images) { 
    if (document[i].src.indexOf("down") < 0) {
      document[i].src = "http://www.teletracking.com/images/" + i + ".gif"; 
    }
  }
}

function s_on(i) {
  if (document.images) { 
    if (document[i].src.indexOf("down") < 0) {
      document[i].src = "../images/" + i + "_over.gif"; 
    }
  }
}

function s_off(i) {
  if (document.images) { 
    if (document[i].src.indexOf("down") < 0) {
      document[i].src = "../images/" + i + ".gif"; 
    }
  }
}

function writeDate() {
  var today = new Date();
  var year = today.getFullYear();
  document.write(year);
}

function placeFocus() {
// Purpose: Put cursor into the first data entry type field of the first form on the page
// Note: Add "placeFocus();" to the "onLoad" attribute of the web page <BODY> tag
	if (document.forms.length > 0) {
		var field = document.forms[0];
		for (i = 0; i < field.length; i++) {
			if ((field.elements[i].type == "text") || (field.elements[i].type == "text") || 
				(field.elements[i].type == "textarea") || 
				(field.elements[i].type.toString().charAt(0) == "s") && (field.elements[i].type != "submit")) {
				document.forms[0].elements[i].focus();
				break;
			}
		}
	}
}//placeFocus
