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.kdati.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="891040_kdati">'+
'	<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.kdati.org.il/cgi-webaxy/new/new.pl" style="display:inline;">'+
'<input type="hidden" name="ID" value="891040_kdati">'+
'<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/hakibbutz,info/others,info/meshek,info/hinuch,info/mesimot,info/hevra,info/bitachon,info/mlimud,info/mpeila,info/moetsa,info/itonut,info/dovrut,info/vaadot,info/events,info/lezichram,info/nashim,info/agri,info/tzeirim,info/dor_tzair,info/nofesh,info/news,info/kibbutzim,info/pirsum,info/ind_services,info/kibbutzim/saad,info/kibbutzim/Rosh_Tzurim,info/kibbutzim/Massuot_Yitzchak,info/kibbutzim/Maale_Gilboa,info/kibbutzim/Shetach,info/kibbutzim/alonim,info/kibbutzim/Alumim,info/kibbutzim/Bet_Rimon,info/kibbutzim/Kfar_Etzion,info/kibbutzim/Ein_Hanatziv,info/kibbutzim/Ein_Tzurim,info/kibbutzim/Migdal_Oz,info/kibbutzim/Meirav,info/kibbutzim/Shluhot,info/kibbutzim/Nir_Etzion,info/kibbutzim/Beerot,info/kibbutzim/Tirat_Tzvi,info/kibbutzim/Yavne,info/kibbutzim/Lavi,info/kibbutzim/Sde_Eliyahu,info/kibbutzim/Bnei_Darom,info/hevra/divuhim,info/hevra/Ymei_Iyyun,info/hevra/Manhigut_Tzeira,info/hevra/Sherut_Leumi,info/hevra/Preida_Menucha_Zakai_090705,info/hevra/iruey-80,info/iruim,info/moaza,info/dovrut/hodaot,info/amudash"><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 id="new1-right_col" style=\'direction:rtl;\'><div id="new1-right_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" colspan="2"><div style="float:right;" class="new1-icon new1-pagesIcon">			<a  href="http://www.kdati.org.il/info/amudash/100907_amudash29.htm"><img class="new-iconImg new1-iconImg new-iconImgPages new1-iconImgPages new-pvImg new1-pvImg" src="http://www.kdati.org.il/info/pics/amudash70.jpg" border="0"></a>'+
'</div>'+
'<div style="display:inline;" class="new1-title new1-pagesTitle"><a  href="http://www.kdati.org.il/info/amudash/100907_amudash29.htm" >עמוד"שבועי 29 - חדשות מתנועת הקיבוץ הדתי</a></div>'+
'</td>'+
'	<td class="new1-icon"><table cellpadding="0" cellspacing="1"><tr><td> <img src="http://www.kdati.org.il/htm-webaxy/ndel.gif" border="0" onclick="clickDel(\'http://www.kdati.org.il/info/amudash/100907_amudash29.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.kdati.org.il/htm-webaxy/pagedit.gif" border="0" onclick="clickEdit(\'http://www.kdati.org.il/info/amudash/100907_amudash29.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" colspan="2"><div style="float:right;" class="new1-icon new1-pagesIcon">			<a  href="http://www.kdati.org.il/info/dor_tzair/hadracha/100906_hoveret.htm"><img class="new-iconImg new1-iconImg new-iconImgPages new1-iconImgPages new-pvImg new1-pvImg" src="http://www.kdati.org.il/info/pics/hoveret_emunat_hahamim-100.jpg" border="0"></a>'+
'</div>'+
'<div style="display:inline;" class="new1-title new1-pagesTitle"><a  href="http://www.kdati.org.il/info/dor_tzair/hadracha/100906_hoveret.htm" >חדש!!! החוברת על סמכות חכמים ואחריות אישית בחברה הציונית-דתית</a></div>'+
'&nbsp;<br><div style="display:inline;" class="new1-doc_desc new1-desc new1-pagesDesc">חירות, סמכות, אחריות - מאת הרב יצחק בן דוד</div>'+
'</td>'+
'	<td class="new1-icon"><table cellpadding="0" cellspacing="1"><tr><td> <img src="http://www.kdati.org.il/htm-webaxy/ndel.gif" border="0" onclick="clickDel(\'http://www.kdati.org.il/info/dor_tzair/hadracha/100906_hoveret.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.kdati.org.il/htm-webaxy/pagedit.gif" border="0" onclick="clickEdit(\'http://www.kdati.org.il/info/dor_tzair/hadracha/100906_hoveret.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_even new1-item_even" style="vertical-align: top;">'+
'	'+
'	<td valign="top" class="new-dataCell new-dataCell0" colspan="2"><div style="float:right;" class="new1-icon new1-pagesIcon">			<a  href="http://www.kdati.org.il/info/dor_tzair/hodaot/100906_mifrasim.htm"><img class="new-iconImg new1-iconImg new-iconImgPages new1-iconImgPages new-pvImg new1-pvImg" src="http://www.kdati.org.il/info/pics/logo_noar100X70.jpg" border="0"></a>'+
'</div>'+
'<div style="display:inline;" class="new1-title new1-pagesTitle"><a  href="http://www.kdati.org.il/info/dor_tzair/hodaot/100906_mifrasim.htm" >רוח במפרשים - ערב ראש השנה תשע"א - שנת סוציאליזם דתי</a></div>'+
'&nbsp;<br><div  class="new1-doc_writer new1-writer new1-pagesWriter">רזי בן יעקב</div>'+
'</td>'+
'	<td class="new1-icon"><table cellpadding="0" cellspacing="1"><tr><td> <img src="http://www.kdati.org.il/htm-webaxy/ndel.gif" border="0" onclick="clickDel(\'http://www.kdati.org.il/info/dor_tzair/hodaot/100906_mifrasim.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.kdati.org.il/htm-webaxy/pagedit.gif" border="0" onclick="clickEdit(\'http://www.kdati.org.il/info/dor_tzair/hodaot/100906_mifrasim.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>'+
''+
'			</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.kdati.org.il/cgi-webaxy/admin/page_edit_js.pl?lang=he&ID=891040_kdati&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_891040_kdati");
	if (webaxyCookie['clickadmin']=='1') {
		var allCookie='';
		for (var k in webaxyCookie){allCookie += (k+"=" + webaxyCookie[k]+"&");}
		document.getElementById("news1_ca").src = "http://www.kdati.org.il/cgi-webaxy/admin/page_edit_js.pl?lang=he&ID=891040_kdati&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.kdati.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.kdati.org.il/htm-webaxy/refresh.gif" border="0" title="ריענון" hspace="1" id="RefreshPage"></a>';
		document.getElementById('new_Div1').appendChild(newDiv);	
	}
}
//<!-- click admin -->
