var html_content=''+
'<div align="center" id="new_Div-1">'+
'<iframe id="hidden_iframe" name="hidden_iframe" src=""></iframe>'+
'<form id="news-1_refresh" name="news-1_refresh" action="http://www.magen.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="113439_magen">'+
'	<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_m1" action="http://www.magen.org.il/cgi-webaxy/new/new.pl" style="display:inline;">'+
'<input type="hidden" name="lang" value="he">'+
'<input type="hidden" name="ID" value="113439_magen">'+
'<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=""><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="new-1-main_table" class="new-main_table new-1-main_table">'+
''+
'		<tr valign="top">'+
'		<td colspan="1">'+
'			<table cellpadding=2 cellspacing=0 border=0 width="100%"  style="direction:rtl">'+
'				<tr>'+
'					<td>'+
'						<div id="new-1-navigator_tableDiv" class="new-navigator_tableDiv" style="direction:rtl;">'+
'							<table>'+
'								<tr id="new-1-navigator_table">'+
'								<td class="new-1-top"><img src="http://maofbiz2.migvan.co.il/multimedia/new/1q.gif" border="0"></td>'+
'								'+
'								<td class="new-1-top"  style="direction:ltr;text-align:right">'+
'										<font style="white-space:nowrap;font-weight:bold">חדש ב'+
'		<select name="days" onchange="document.form1_m1.submit()">'+
'		<option>21<option>1<option>2<option>3<option>7<option>10<option>14<option>21<option>30'+
'		</select>'+
'		ימים אחרונים &nbsp;&nbsp;</font>'+
''+
'								'+
'								'+
'								</td>'+
'								<td class="new-1-upd" id="new-1-upd"><a href="http://www.magen.org.il/cgi-webaxy/new/tellme.pl?lang=he&ID=113439_magen&act=edit&news_id=-1" stylee="color:000000"><img src="http://maofbiz2.migvan.co.il/multimedia/new/5m.gif" border="0"></a>&nbsp;&nbsp;'+
'</td>'+
'								</tr>'+
'								<tr><td colspan="3" class="new-1-top" style="font-weight:normal;direction:rtl;text-align:right;">בדף זה אתם מוזמנים להתעדכן בכל מה שקרה וקורה באתר שלנו.</td></tr>'+
'							</table>'+
'						</div>'+
'					</td>'+
'				</tr>'+
'			</table>'+
'		</td>'+
'		</tr>'+
'		'+
''+
''+
'<tr valign="top">'+
'<td id="new-1-right_col" style=\'direction:rtl;\'><div id="new-1-right_colDiv">			<table id="new-1-pagesTable" cellpadding="2" cellspacing="0" border="0" class="new-contool new-1-contool" width="100%">'+
'			<tr><td class="new-tool new-1-tool">דפי מידע</td></tr>'+
''+
'			<tr><td>			<table class="new-1-pagesData" cellpadding="2" cellspacing="0" border="0" width="100%">'+
'			'+
'			<tr class="new-1-cat" ><td colspan="3" class="new-subtool new-1-subtool"></td></tr>'+
'			<tr class="new-item new-1-item new-item_even new-1-item_even new-1-item0" style="vertical-align: top;">'+
'	'+
'	<td valign="top" class="new-dataCell new-dataCell0" ><div style="display:inline;direction:rtl;" class="new-1-icon new-1-pagesIcon">			<a  href="http://www.magen.org.il/info/miklachat/2012/2744.doc"><img class="new-iconImg new-1-iconImg new-iconImgPages new-1-iconImgPages " src="http://www.magen.org.il/htm-webaxy/ficons/doc.gif" border="0"></a>'+
'</div>'+
'<!----></td><td valign="top" class="new-dataCell new-dataCell1"><!--%%colspanme2%%--><div style="display:inline;direction:rtl;" class="new-1-title new-1-pagesTitle"><a  href="http://www.magen.org.il/info/miklachat/2012/2744.doc" >מיקלחת ציבורית מס\' 2744</a></div>'+
'</td>'+
'	<td class="new-1-icon"><table cellpadding="0" cellspacing="1"><tr><td> <img src="http://www.magen.org.il/htm-webaxy/ndel.gif" border="0" onclick="clickDel(\'http://www.magen.org.il/info/miklachat/2012/2744.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.magen.org.il/htm-webaxy/pagedit.gif" border="0" onclick="clickEdit(\'http://www.magen.org.il/info/miklachat/2012/2744.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 new-1-item new-item_odd new-1-item_odd new-1-item1" style="vertical-align: top;">'+
'	'+
'	<td valign="top" class="new-dataCell new-dataCell0" ><div style="display:inline;direction:rtl;" class="new-1-icon new-1-pagesIcon">			<a  href="http://www.magen.org.il/info/miklachat/2012/2745.doc"><img class="new-iconImg new-1-iconImg new-iconImgPages new-1-iconImgPages " src="http://www.magen.org.il/htm-webaxy/ficons/doc.gif" border="0"></a>'+
'</div>'+
'<!----></td><td valign="top" class="new-dataCell new-dataCell1"><!--%%colspanme2%%--><div style="display:inline;direction:rtl;" class="new-1-title new-1-pagesTitle"><a  href="http://www.magen.org.il/info/miklachat/2012/2745.doc" >מיקלחת ציבורית מס\' 2745</a></div>'+
'</td>'+
'	<td class="new-1-icon"><table cellpadding="0" cellspacing="1"><tr><td> <img src="http://www.magen.org.il/htm-webaxy/ndel.gif" border="0" onclick="clickDel(\'http://www.magen.org.il/info/miklachat/2012/2745.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.magen.org.il/htm-webaxy/pagedit.gif" border="0" onclick="clickEdit(\'http://www.magen.org.il/info/miklachat/2012/2745.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 new-1-item new-item_even new-1-item_even new-1-item2" style="vertical-align: top;">'+
'	'+
'	<td valign="top" class="new-dataCell new-dataCell0" colspan="2"><div style="float:right;" class="new-1-icon new-1-pagesIcon">			<a  href="http://www.magen.org.il/info/miklachat/2012/2741.doc"><img class="new-iconImg new-1-iconImg new-iconImgPages new-1-iconImgPages new-pvImg new-1-pvImg" src="http://www.magen.org.il/icon.JPG" border="0"></a>'+
'</div>'+
'<div style="display:inline;direction:rtl;" class="new-1-title new-1-pagesTitle"><a  href="http://www.magen.org.il/info/miklachat/2012/2741.doc" >מיקלחת ציבורית מס\' 2741</a></div>'+
'</td>'+
'	<td class="new-1-icon"><table cellpadding="0" cellspacing="1"><tr><td> <img src="http://www.magen.org.il/htm-webaxy/ndel.gif" border="0" onclick="clickDel(\'http://www.magen.org.il/info/miklachat/2012/2741.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.magen.org.il/htm-webaxy/pagedit.gif" border="0" onclick="clickEdit(\'http://www.magen.org.il/info/miklachat/2012/2741.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 new-1-item new-item_odd new-1-item_odd new-1-item3" style="vertical-align: top;">'+
'	'+
'	<td valign="top" class="new-dataCell new-dataCell0" colspan="2"><div style="float:right;" class="new-1-icon new-1-pagesIcon">			<a  href="http://www.magen.org.il/info/miklachat/2012/2742.doc"><img class="new-iconImg new-1-iconImg new-iconImgPages new-1-iconImgPages new-pvImg new-1-pvImg" src="http://www.magen.org.il/icon.JPG" border="0"></a>'+
'</div>'+
'<div style="display:inline;direction:rtl;" class="new-1-title new-1-pagesTitle"><a  href="http://www.magen.org.il/info/miklachat/2012/2742.doc" >מיקלחת ציבורית מס\' 2742</a></div>'+
'</td>'+
'	<td class="new-1-icon"><table cellpadding="0" cellspacing="1"><tr><td> <img src="http://www.magen.org.il/htm-webaxy/ndel.gif" border="0" onclick="clickDel(\'http://www.magen.org.il/info/miklachat/2012/2742.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.magen.org.il/htm-webaxy/pagedit.gif" border="0" onclick="clickEdit(\'http://www.magen.org.il/info/miklachat/2012/2742.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 new-1-item new-item_even new-1-item_even new-1-item4" style="vertical-align: top;">'+
'	'+
'	<td valign="top" class="new-dataCell new-dataCell0" colspan="2"><div style="float:right;" class="new-1-icon new-1-pagesIcon">			<a  href="http://www.magen.org.il/info/miklachat/2012/2743.doc"><img class="new-iconImg new-1-iconImg new-iconImgPages new-1-iconImgPages new-pvImg new-1-pvImg" src="http://www.magen.org.il/icon.JPG" border="0"></a>'+
'</div>'+
'<div style="display:inline;direction:rtl;" class="new-1-title new-1-pagesTitle"><a  href="http://www.magen.org.il/info/miklachat/2012/2743.doc" >מיקלחת ציבורית מס\' 2743</a></div>'+
'</td>'+
'	<td class="new-1-icon"><table cellpadding="0" cellspacing="1"><tr><td> <img src="http://www.magen.org.il/htm-webaxy/ndel.gif" border="0" onclick="clickDel(\'http://www.magen.org.il/info/miklachat/2012/2743.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.magen.org.il/htm-webaxy/pagedit.gif" border="0" onclick="clickEdit(\'http://www.magen.org.il/info/miklachat/2012/2743.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>'+
'			<table class="new-1-pagesData" cellpadding="2" cellspacing="0" border="0" width="100%">'+
'			'+
'			<tr class="new-1-cat" ><td colspan="3" class="new-subtool new-1-subtool">אתרים אישיים</td></tr>'+
'			<tr class="new-item new-1-item new-item_odd new-1-item_odd new-1-item5" style="vertical-align: top;">'+
'	'+
'	<td valign="top" class="new-dataCell new-dataCell0" ><div style="display:inline;direction:rtl;" class="new-1-icon new-1-pagesIcon">			<a  href="http://www.magen.org.il/members/dani/ben.doc"><img class="new-iconImg new-1-iconImg new-iconImgPages new-1-iconImgPages " src="http://www.magen.org.il/htm-webaxy/ficons/doc.gif" border="0"></a>'+
'</div>'+
'<!----></td><td valign="top" class="new-dataCell new-dataCell1"><!--%%colspanme2%%--><div style="display:inline;direction:rtl;" class="new-1-title new-1-pagesTitle"><a  href="http://www.magen.org.il/members/dani/ben.doc" >בין רוזה לתרזה-מאמר חדש של דני ברזילי</a></div>'+
'</td>'+
'	<td class="new-1-icon"><table cellpadding="0" cellspacing="1"><tr><td> <img src="http://www.magen.org.il/htm-webaxy/ndel.gif" border="0" onclick="clickDel(\'http://www.magen.org.il/members/dani/ben.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.magen.org.il/htm-webaxy/pagedit.gif" border="0" onclick="clickEdit(\'http://www.magen.org.il/members/dani/ben.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="new-1-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('news-1').innerHTML = html_content;document.getElementById('news-1').dir = 'rtl'
		//var tb = document.getElementById('new-1-pagesData');
			var list = [];
			var classname = 'new-1-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(/^new-1-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(/news-1.htm/) != -1) {
			document.getElementById("s1").src = "http://www.magen.org.il/cgi-webaxy/admin/page_edit_js.pl?lang=he&ID=113439_magen&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_113439_magen");
	if (webaxyCookie['clickadmin']=='1') {
		var allCookie='';
		for (var k in webaxyCookie){allCookie += (k+"=" + webaxyCookie[k]+"&");}
		document.getElementById("news-1_ca").src = "http://www.magen.org.il/cgi-webaxy/admin/page_edit_js.pl?lang=he&ID=113439_magen&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.magen.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.magen.org.il/htm-webaxy/refresh.gif" border="0" title="ריענון" hspace="1" id="RefreshPage"></a>';
		document.getElementById('new_Div-1').appendChild(newDiv);	
	}
}
//<!-- click admin -->

