// JavaScript Document

<!-- Google Search Function -->
	function searchFreedom(whichForm, domain, x, y) {
		if (whichForm == "Top") {
			var searchtext= document.getElementById("googlesearch").value;
			if (document.getElementById("googleradio1").checked)
				var radio= document.getElementById("googleradio1").value;
			else
				var radio= document.getElementById("googleradio2").value;
		}
		if (whichForm == "Bottom") {
			var searchtext= document.getElementById("googlesearchB").value;
			if (document.getElementById("googleradio1B").checked)
				var radio= document.getElementById("googleradio1B").value;
			else
				var radio= document.getElementById("googleradio2B").value;
		}
		window.location = "http://www." + domain + ".com/search/?q=" + searchtext + "&fistype=" + radio + "&x=" + x + "&y=" + y;
	}
