// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

//written by rob
function toggleHighlight(id, id2, id3){
	document.getElementById(id).setAttribute("class", "opac100");
	document.getElementById(id2).setAttribute("class", "opac25");
	document.getElementById(id3).setAttribute("class", "opac25");
	}
	
	function autotab(current,to){            // pinched from http://www.rgagnon.com/jsdetails/js-0113.html
	    if (current.getAttribute && 
	      current.value.length==current.getAttribute("maxlength")) {
	        to.focus() 
	        }
	}
	

