// (function() {
 // var q = document.getElementById('q'); 
 // if (q) { var n = navigator; var l = location; 
 // if (n.platform == 'Win32') { q.style.cssText = 'border: 1px solid #7e9db9; padding: 2px;'; } 
 // var b = function() { if (q.value == '') { q.style.background = '#FFFFFF url(/templates/ama/images/google_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(); } } 
 // })();

 // call the google search
function search()
{
var q = document.getElementById('q');
var cof = document.getElementById('cof');
var cx = document.getElementById('cx');
location.href = "/gcsearch.aspx?q=" + encodeURIComponent(q.value) + "&cof=" + encodeURIComponent(cof.value) + "&cx=" + encodeURIComponent(cx.value)
return true;
}
// to apply a search when enter is pressed
function onEnter(e)
{
	var keycode;
	if (window.event)
		keycode = window.event.keyCode;
	else if (e)
		keycode = e.which;
	else
		return true;
	if (keycode == 13)
	{
		search();
		return false;
	}
	else
		return true;
} 

