// Added 05/02/07 by Ken Wilson to add focus highlight of inputs with className=='field'  [IE Hack]
sfFocus = function() {
	var inputF = document.getElementsByTagName("INPUT");
	for (var i=0; i<inputF.length; i++) {
		if (inputF[i].className=='field' || inputF[i].className=='cal_field') {
			inputF[i].onfocus=function() {
				this.style.backgroundColor="#ffc";
				this.style.color="#333";
			}
		}
		if (inputF[i].className=='field' || inputF[i].className=='cal_field') {
			inputF[i].onblur=function() {
				this.style.backgroundColor="#fff";
				this.style.color="#333";
			} 
		}
	}

	var textareaF = document.getElementsByTagName("TEXTAREA");
	for (var i=0; i<textareaF.length; i++) {
		if (textareaF[i].className=='txtarea') {
			textareaF[i].onfocus=function() {
				this.style.backgroundColor="#ffc";
				this.style.color="#333";
			}
		}
		if (textareaF[i].className=='txtarea') {
			textareaF[i].onblur=function() {
				this.style.backgroundColor="#fff";
				this.style.color="#333";
			}
		}
	}

	var selectF = document.getElementsByTagName("SELECT");
	for (var i=0; i<selectF.length; i++) {
		if (selectF[i].className=='select') {
			selectF[i].onfocus=function() {
				this.style.backgroundColor="#ffc";
				this.style.color="#333";
			}
		}
		if (selectF[i].className=='select') {
			selectF[i].onblur=function() {
				this.style.backgroundColor="#fff";
				this.style.color="#333";
			}
		}
	}
	for(var i=0; i<document.links.length; i++) {
	document.links[i].onfocus = function() {this.blur();};
}
}

// (window.attachEvent)is EI6 exclusive.... 
if (window.attachEvent) window.attachEvent("onload", sfFocus);