var output = ""

output += "<br>"
output += "<FORM OnSubmit=\"HandleForm(this); return false\">"
output += "<INPUT size=8 name=\"query\">"
output += "&nbsp;"
output += "<input type=submit value=\"Find\">"
output += "</FORM>"

output += "</DIV>\n"

//######################## End Menu #######################################################
//######################## Begin Other Functions###########################################
	
function openIt(x, evt)
{
	var items=10
	if (is_ie4up) {
		it = eval("document.all.menu" + x)
		it.style.pixelTop = evt.y + 7
		it.style.pixelLeft = evt.x +10
		it.style.visibility = "visible"
		}
	if (is_nav4up) {
		it = document.layers[x]
		it.top = evt.pageY + 7
		it.left = evt.pageX + 10
		it.visibility = "show"
		}
	
	for (i=0; i<items; i++) { 
		if (is_ie4up) {		
			elOpen = eval("document.all.menu" + i)
				if ((elOpen.style.visibility == "visible") && (elOpen != it))
				{
					eval("document.all.menu" + i).style.visibility="hidden"
				}
		}
		if (is_nav4up) {
			elOpen = document.layers[i]
				if ((elOpen.visibility == "show") && (elOpen != it)) {
					elOen.visibility="hide"
				}
		}
	}
}
//#########################################################################################	
function closeIt() {
	var items = 13 
  	for (i=0; i<items; i++)  { 
		if (is_ie4up) {
    		elOpen=eval("document.all.menu" + i)
    		elOpen.style.visibility = "hidden"
		}
		if (is_nav4up) {
			elOpen = document.layers[i]
			elOpen.visibility = "hide"
		} 
    }
}
//#########################################################################################
function openPicture (image, width, height, comments) {
	var properties = "width=" + eval(parseInt(width) + 20) + ",height=" + eval(parseInt(height) + 85);
	newWindow = window.open("", 'myWindow', properties);
	newWindow.document.write("<HTML><HEAD> \n " + 
		"<TITLE>" + image + "</TITLE> \n " +
		"<BODY onBlur=\"window.close()\"> \n " +
		"<IMG SRC=\"" + image + "\" WIDTH = " + width + "HEIGHT = " + height + "><BR><BR> \n "+
		"<CENTER><FONT FACE=\"Arial\">" + comments + "</FONT></CENTER> \n " + 
		"</BODY>");
	newWindow.document.close();
	newWindow.focus();
}
//############################ Search Function ###############################################
function HandleForm(form) {
  form.submit();  // This fixes a Netscape 2.0b6a bug. How, I don't understand.
  var i, oldq=form.query.value, newq="";
  for (i=0; i<oldq.length; i++) {  // compress [ ]+ into \+
    var thischar = oldq.charAt(i);
    if (thischar != ' ')
      newq += thischar;
    else if (lastchar != ' ')
      newq += '+';
    lastchar = thischar;
  }
  newq += "+%2Bhost%3Anebraskafarmersunion.org"

  location.href = newq ? "http://www.altavista.digital.com/cgi-bin/query?pg=q&text=yes&what=web&kl=XX&q=" + newq + "&act=search"  : "http://www.altavista.digital.com/cgi-bin/query";
}
//#########################################################################################
document.write(output)
