sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

	$(document).ready(function(){
	$("#cse-search-box").submit(function(){
		$("input[name='q']").attr("value", $("input[name='q1']").val() + " " + $("input[name='q2']").val() );
		console.log($("input[name='q']").val());
	});
});


function clickclear(thisfield, defaulttext) {
  if (thisfield.name == "q3"){
	  document.frmsearch.q2.value = "";
  }
  else{
	  if(thisfield.name == "q2"){document.frmsearch.q3.value = "";}
	  if (thisfield.value == defaulttext) {
		thisfield.value = "";
	  }
  }
}
function clickrecall(thisfield, defaulttext) {
  if (thisfield.value == "") {
    thisfield.value = defaulttext;
  }
}
