(function() { 
var f = document.getElementById('cse-search-box'); 
if (!f) { 
	f = document.getElementById('searchbox_demo'); 
} 
// google code modified by reas nov. 2008: 
var q = document.getElementById('cse-search-box_q');
if (f && q) { 
	var n = navigator; var l = location;  
	var b = function() { 
		if (q.value == '') { 
			q.style.background = '#FFFFFF url(http:\x2F\x2Fwww.google.com\x2Fcoop\x2Fintl\x2Fhe\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(); } } 
	})(); 
	
// submits the google search
function submitGoogleSearch() {
	var q = document.getElementById('cse-search-box_q').value;
	var rbcx1 = document.getElementById('rbcx1');
	var rbcx2 = document.getElementById('rbcx2');
	var cx = (rbcx1.checked ? rbcx1.value : rbcx2.value);
	
	location.href = 'http://www.google.co.il/cse?cx=' + cx + '&ie=UTF-8&q=' + q + '&sa=%E7%E9%F4%E5%F9';
}
