function focusFields () {
// inputs
if (!document.getElementsByTagName) return false;
	var formfields = document.getElementsByTagName("input");
	for (var i=0; i < formfields.length; i++) {
		formfields[i].onfocus = function() {
			this.select();
		}
	}
	
// Textarea
if (!document.getElementsByTagName) return false;
	var formfields = document.getElementsByTagName("textarea");
	for (var i=0; i < formfields.length; i++) {
		formfields[i].onfocus = function() {
			this.select();
		}
	}
}