
		(function(){
			
			var n = navigator;
			var l = location;
			var q = document.getElementById("q1");
			if (n.platform == 'Win32') {
				q.style.cssText = 'border: 1px solid #7e9db9; padding: 2px;';
				q.style.height = '20px';
			}

    
			if (window.history.navigationMode) {
				window.history.navigationMode = 'compatible';
			}
			var b = function() {
				if (q.value == '') {
					
					q.style.background = '#FFFFFF url(http:\x2F\x2Fwww.google.com\x2Fcse\x2Fintl\x2Fen\x2Fimages\x2Fgoogle_custom_search_watermark.gif) left no-repeat';
				}
			};

			var f = function() {
			q.style.background = '#ffffff';
			};

			q.onfocus = f;
			q.onblur = b;
			if (!/[&?]q=[^&]/.test(l.search)) {
				b();
			}
		})();
		
		function opensearch(){
			var q1 = document.getElementById("q1").value;
			var cx = document.getElementById("cx").value;
			var ie = document.getElementById("ie").value;
			var cof = document.getElementById("cof").value

			window.open("http://www.appfinity.com/forms/searchresult.aspx?cx=" + encodeURIComponent(cx) + "&cof=" + encodeURIComponent(cof) + "&ie=" + encodeURIComponent(ie) + "&q=" + encodeURIComponent(q1));
		}
