// JavaScript Document
//JavaScript that looks for all elements with the tag name "input" and gives it a class called "textfield_on" when the specific input is in focus
function highlight() {
        var elements = document.getElementsByTagName("input");
    for (i=0; i < elements.length; i++) {
        if (elements[i].type == "text") {
            elements[i].onfocus=function() {this.className='inputhighlight';};
            elements[i].onblur=function() {this.className=null};
        }
    }
	
	   
}

window.onload = highlight;
