var html_content=''+
'<div align="center" id="new_Div1">'+
'<iframe id="hidden_iframe" name="hidden_iframe" src=""></iframe>'+
'<form id="news1_refresh" name="news1_refresh" action="http://www.ghi.org.il/cgi-webaxy/new/new-admin.pl" method="post" target="hidden_iframe" style="margin:0px;">'+
'	<input type="hidden" name="username" value="">'+
'	<input type="hidden" name="password" value="">'+
'	<input type="hidden" name="ID" value="283662_ghi">'+
'	<input type="hidden" name="lang" value="">'+
'	<input type="hidden" name="id_to_edit" value="1">'+
'	<input type="hidden" name="act" value="update-news-rss">'+
'	<input type="hidden" name="deletenow" value="">	'+
'</form>		'+
'<form method="post" name="form1_1" action="http://www.ghi.org.il/cgi-webaxy/new/new.pl" style="display:inline;">'+
'<input type="hidden" name="ID" value="283662_ghi">'+
'<input type="hidden" name="lang" value="he">'+
'<input type="hidden" name="act" value="show">'+
'<input type="hidden" name="keywords" value="">'+
'<input type="hidden" name="news_id" value="1"><input type="hidden" name="dirs" value="info/zmanit,info/hadashut,info/alon,info/movies,info/dafshvuei,info/briut,info/hanhala,info/tafrittachton,info/taruchot,info/asakim,info/sherut,info/hinuch,info/tarbut,info/kibutz,info/matkonim,info/gahaha-,info/tmuna-alon,info/proto-moaza,info/proto-han.khila,info/100129_tubishvat,info/proto-klita,info/proto-tichnun"><input type="hidden" name="events" value=""><input type="hidden" name="boards" value=""><input type="hidden" name="forums" value=""><input type="hidden" name="sal" value=""><input type="hidden" name="faqs" value=""><input type="hidden" name="cal_filter" value="">'+
'<table cellpadding="1" cellspacing="0" border="0" id="new1-main_table" class="new-main_table new1-main_table">'+
''+
'		<tr valign="top">'+
'		<td colspan="1">'+
'			<table cellpadding=2 cellspacing=0 border=0 width="100%"  style="direction:rtl">'+
'				<tr>'+
'					<td>'+
'						<div id="new1-navigator_tableDiv" style="direction:rtl;">'+
'							<table>'+
'								<tr id="new1-navigator_table">'+
'								<td class="new1-top"></td>'+
'								'+
'								<td class="new1-top"  style="direction:ltr;text-align:right">'+
'								'+
'								'+
'								'+
'								</td>'+
'								<td class="new1-upd" id="new1-upd"><a href="http://www.ghi.org.il/cgi-webaxy/new/tellme.pl?act=edit&ID=283662_ghi&lang=he&news_id=1" stylee="color:#000000">הרשמה לעדכונים אישיים</a>&nbsp;&nbsp;'+
'</td>'+
'								</tr>'+
'								'+
'							</table>'+
'						</div>'+
'					</td>'+
'				</tr>'+
'			</table>'+
'		</td>'+
'		</tr>'+
'		'+
''+
''+
'<tr valign="top">'+
'<td id="new1-center_col" style=\'direction:rtl;\'><div id="new1-center_colDiv">			<table id="new1-pagesTable" cellpadding="2" cellspacing="0" border="0" class="new-contool new1-contool" width="100%">'+
'			'+
'			<tr><td>			<table class="new1-pagesData" cellpadding="2" cellspacing="0" border="0" width="100%">'+
'			<tr class="new1-cat" ><td colspan="3" class="new-subtool new1-subtool"></td></tr>'+
'			<tr class="new-item new1-item new-item_even new1-item_even" style="vertical-align: top;">'+
'	'+
'	<td valign="top" class="new-dataCell new-dataCell0" %%colspanme1%%><div style="display:inline;" class="new1-icon new1-pagesIcon">			<a target="_new" href="http://www.ghi.org.il/info/briut/briut-007.htm"><img class="new-iconImg new1-iconImg new-iconImgPages new1-iconImgPages" src="http://www.ghi.org.il/main/htm.gif" border="0"></a>'+
'</div>'+
'<!--%%colspanme2%%--></td><td valign="top" class="new-dataCell new-dataCell1"><!--%%colspanme2%%--><div style="display:inline;" class="new1-title new1-pagesTitle"><a target="_new" href="http://www.ghi.org.il/info/briut/briut-007.htm" >מרפאת שינים</a></div>'+
'</td>'+
'	<td class="new1-icon"><table cellpadding="0" cellspacing="1"><tr><td> <img src="http://www.ghi.org.il/htm-webaxy/ndel.gif" border="0" onclick="clickDel(\'http://www.ghi.org.il/info/briut/briut-007.htm\')" title="מחיקה" title="מחיקה" style="cursor: pointer" onMouseOver="this.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.style.backgroundColor=\'silver\';" onMouseOut="this.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.style.backgroundColor=\'\'"> </td><td> <img src="http://www.ghi.org.il/htm-webaxy/pagedit.gif" border="0" onclick="clickEdit(\'http://www.ghi.org.il/info/briut/briut-007.htm\')" title="עריכה" title="עריכה" style="cursor: pointer" onMouseOver="this.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.style.backgroundColor=\'silver\';" onMouseOut="this.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.style.backgroundColor=\'\'"> </td></tr></table></td>'+
'</tr>'+
'<tr class="new-item new1-item new-item_odd new1-item_odd" style="vertical-align: top;">'+
'	'+
'	<td valign="top" class="new-dataCell new-dataCell0" %%colspanme1%%><div style="display:inline;" class="new1-icon new1-pagesIcon">			<a target="_new" href="http://www.ghi.org.il/info/proto-han.khila/hanalt_kaila_m_-_9_2_10.doc"><img class="new-iconImg new1-iconImg new-iconImgPages new1-iconImgPages" src="http://www.ghi.org.il/htm-webaxy/ficons/doc.gif" border="0"></a>'+
'</div>'+
'<!--%%colspanme2%%--></td><td valign="top" class="new-dataCell new-dataCell1"><!--%%colspanme2%%--><div style="display:inline;" class="new1-title new1-pagesTitle"><a target="_new" href="http://www.ghi.org.il/info/proto-han.khila/hanalt_kaila_m_-_9_2_10.doc" >הנהלת קהילה 9.2.10</a></div>'+
'</td>'+
'	<td class="new1-icon"><table cellpadding="0" cellspacing="1"><tr><td> <img src="http://www.ghi.org.il/htm-webaxy/ndel.gif" border="0" onclick="clickDel(\'http://www.ghi.org.il/info/proto-han.khila/hanalt_kaila_m_-_9_2_10.doc\')" title="מחיקה" title="מחיקה" style="cursor: pointer" onMouseOver="this.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.style.backgroundColor=\'silver\';" onMouseOut="this.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.style.backgroundColor=\'\'"> </td><td> <img src="http://www.ghi.org.il/htm-webaxy/pagedit.gif" border="0" onclick="clickEdit(\'http://www.ghi.org.il/info/proto-han.khila/hanalt_kaila_m_-_9_2_10.doc\')" title="עריכה" title="עריכה" style="cursor: pointer" onMouseOver="this.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.style.backgroundColor=\'silver\';" onMouseOut="this.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.style.backgroundColor=\'\'"> </td></tr></table></td>'+
'</tr>'+
'<tr class="new-item new1-item new-item_even new1-item_even" style="vertical-align: top;">'+
'	'+
'	<td valign="top" class="new-dataCell new-dataCell0" %%colspanme1%%><div style="display:inline;" class="new1-icon new1-pagesIcon">			<a target="_new" href="http://www.ghi.org.il/info/hanhala/hanhala-023.htm"><img class="new-iconImg new1-iconImg new-iconImgPages new1-iconImgPages" src="http://www.ghi.org.il/main/htm.gif" border="0"></a>'+
'</div>'+
'<!--%%colspanme2%%--></td><td valign="top" class="new-dataCell new-dataCell1"><!--%%colspanme2%%--><div style="display:inline;" class="new1-title new1-pagesTitle"><a target="_new" href="http://www.ghi.org.il/info/hanhala/hanhala-023.htm" >הנהלת חשבונות</a></div>'+
'</td>'+
'	<td class="new1-icon"><table cellpadding="0" cellspacing="1"><tr><td> <img src="http://www.ghi.org.il/htm-webaxy/ndel.gif" border="0" onclick="clickDel(\'http://www.ghi.org.il/info/hanhala/hanhala-023.htm\')" title="מחיקה" title="מחיקה" style="cursor: pointer" onMouseOver="this.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.style.backgroundColor=\'silver\';" onMouseOut="this.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.style.backgroundColor=\'\'"> </td><td> <img src="http://www.ghi.org.il/htm-webaxy/pagedit.gif" border="0" onclick="clickEdit(\'http://www.ghi.org.il/info/hanhala/hanhala-023.htm\')" title="עריכה" title="עריכה" style="cursor: pointer" onMouseOver="this.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.style.backgroundColor=\'silver\';" onMouseOut="this.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.style.backgroundColor=\'\'"> </td></tr></table></td>'+
'</tr>'+
'<tr class="new-item new1-item new-item_odd new1-item_odd" style="vertical-align: top;">'+
'	'+
'	<td valign="top" class="new-dataCell new-dataCell0" %%colspanme1%%><div style="display:inline;" class="new1-icon new1-pagesIcon">			<a target="_new" href="http://www.ghi.org.il/info/dafshvuei/5_3_10.doc"><img class="new-iconImg new1-iconImg new-iconImgPages new1-iconImgPages" src="http://www.ghi.org.il/htm-webaxy/ficons/doc.gif" border="0"></a>'+
'</div>'+
'<!--%%colspanme2%%--></td><td valign="top" class="new-dataCell new-dataCell1"><!--%%colspanme2%%--><div style="display:inline;" class="new1-title new1-pagesTitle"><a target="_new" href="http://www.ghi.org.il/info/dafshvuei/5_3_10.doc" >בתוככנו 5.3.10</a></div>'+
'</td>'+
'	<td class="new1-icon"><table cellpadding="0" cellspacing="1"><tr><td> <img src="http://www.ghi.org.il/htm-webaxy/ndel.gif" border="0" onclick="clickDel(\'http://www.ghi.org.il/info/dafshvuei/5_3_10.doc\')" title="מחיקה" title="מחיקה" style="cursor: pointer" onMouseOver="this.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.style.backgroundColor=\'silver\';" onMouseOut="this.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.style.backgroundColor=\'\'"> </td><td> <img src="http://www.ghi.org.il/htm-webaxy/pagedit.gif" border="0" onclick="clickEdit(\'http://www.ghi.org.il/info/dafshvuei/5_3_10.doc\')" title="עריכה" title="עריכה" style="cursor: pointer" onMouseOver="this.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.style.backgroundColor=\'silver\';" onMouseOut="this.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.style.backgroundColor=\'\'"> </td></tr></table></td>'+
'</tr>'+
''+
'			</table>'+
'</td></tr>'+
'			</table>'+
'			<font class="new1-blank_row"><br></font>'+
'</div></td>'+
'</tr>'+
''+
''+
''+
'</table>'+
'</form>'+
'</div>'+
'	<!-- click admin -->'+
'	<div id="FloatingEdit" style="position:absolute; visibility:visible; left:2px; top:0px; z-index:5"></div>'+
'	<!-- click admin -->'+
''
document.getElementById('news1').innerHTML = html_content;document.getElementById('news1').dir = 'rtl'
		//var tb = document.getElementById('new1-pagesData');
			var list = [];
			var classname = 'new1-pagesData';
			var els = document.getElementsByTagName('TABLE');
			for(var i=0; i<els.length; i++){
				if(els[i].className==classname){list.push(els[i]);}
			}
			var alowToEdit = 0;
			if (list) {
				if (document.cookie.length > 0) { // if there are any cookies
				var search =  "clickadmin&";
				var search1 = "clickadmin=";
				offset = document.cookie.indexOf(search);
				if (offset == -1) offset = document.cookie.indexOf(search1);
				if (offset != -1) { // if cookie exists 
					offset += search.length ;  // set index of beginning of value
					end = document.cookie.indexOf("&", offset); // set index of end of cookie value
					if (end == -1) 
						end = document.cookie.length;
					clickadmin= unescape(document.cookie.substring(offset, end));
					if (clickadmin != "" && clickadmin != '0' && clickadmin.search(/^0/) == -1 )
						alowToEdit = 1;
				}
			}	
			for (j = 0 ; j < list.length ; j++) {
				var tb = list[j];
				for (i = 0 ; i < tb.rows.length ; i++) {
						var row = tb.rows[i];
						if (row.className.search(/^new1-cat/) == -1) {
							var len = row.cells.length;
							if (alowToEdit) ;//row.deleteCell(len-2);
							else row.deleteCell(len-1);
						}
				}
			}
		}		

		var clickadmin = checkCookie();
		
		var cookie_in = '', username='', password='';
	if (document.cookie.length > 0) { // if there are any cookies
		var search =  "username&";
		var search1 = "username=";
		offset = document.cookie.indexOf(search);
		if (offset == -1) offset = document.cookie.indexOf(search1);
		if (offset != -1) { // if cookie exists 
			offset += search.length ;  // set index of beginning of value
			end = document.cookie.indexOf("&", offset); // set index of end of cookie value
			if (end == -1) end = document.cookie.indexOf(";", offset); // set index of end of cookie value
			if (end == -1) 
				end = document.cookie.length;
			username = unescape(document.cookie.substring(offset, end));
		}
		var search =  "password&";
		var search1 = "password=";
		offset = document.cookie.indexOf(search);
		if (offset == -1) offset = document.cookie.indexOf(search1);
		if (offset != -1) { // if cookie exists 
			offset += search.length ;  // set index of beginning of value
			end = document.cookie.indexOf("&", offset); // set index of end of cookie value
			if (end == -1) 
				end = document.cookie.length;
			password = unescape(document.cookie.substring(offset, end));
		}
	}
	cookie_in = 'username='+username+'&password='+password;
		if (clickadmin != "" && location.href.search(/news1.htm/) != -1) {
			document.getElementById("s1").src = "http://www.ghi.org.il/cgi-webaxy/admin/page_edit_js.pl?lang=he&ID=283662_ghi&news_id=1&eApplication=news&"+clickadmin +"&r="+Math.round((Math.random() * 1000));
		}
	
	
//<!-- click admin -->
if (location.href.indexOf("magicpage.pl") == -1) {
	var webaxyCookie = getCookieHash("webaxylogin_283662_ghi");
	if (webaxyCookie['clickadmin']=='1') {
		var allCookie='';
		for (var k in webaxyCookie){allCookie += (k+"=" + webaxyCookie[k]+"&");}
		document.getElementById("news1_ca").src = "http://www.ghi.org.il/cgi-webaxy/admin/page_edit_js.pl?lang=he&ID=283662_ghi&news_id=1&eApplication=news&noDivOverride=1&"+allCookie +"&r="+Math.round((Math.random() * 1000));
		var newDiv = document.createElement('div');
		newDiv.style.textAlign = 'center';
		newDiv.innerHTML = '<a href="javascript:openNW(\'1\')" target="_self"><img src="http://www.ghi.org.il/htm-webaxy/pagedit.gif" border="0" title="עריכה" hspace="1" id="EditPage"></a>';
		newDiv.innerHTML += '<a href="javascript:refreshNews(\'1\')" target="_self"><img src="http://www.ghi.org.il/htm-webaxy/refresh.gif" border="0" title="ריענון" hspace="1" id="RefreshPage"></a>';
		document.getElementById('new_Div1').appendChild(newDiv);	
	}
}
//<!-- click admin -->
