#scanpicCADiv1 {
	height: 100%;
	position: absolute;
	top: 0px;
	left: 30px;
	direction: rtl;
	z-index: 3000;
}
#hidden_iframe{visibility:hidden;left:0;position:absolute;height:0px;}
#scanpic1-main_table {
	background-color: transparent;
	font-family: Arial;
	width: 550px;
	/*height: 600px;*/
}
.scanpic1-title_table {
	color: #008000;
	background-color: transparent;
	font-size: 22px;
	text-align: center;
	width: 100%;
}
.scanpic1-desc_table {
	color: #000000;
	background-color: transparent;
	font-size: 15px;
	text-align: center;
	width: 100%;
}
#scanpic1-pictures_table {
	background-color: transparent;	
	width: 550px;
	/*height: 600px;*/
}
#scanpic1-pictures_table td {
	vertical-align: top;
}
.scanpic1-pictures_td_item, .scanpic1-pictures_td_item td {
	color: #000000;
	font-size: 13px;
	width: 550px;
	/*cursor: pointer;*/
}
.scanpic1-pictures_table_item {
	background-color: transparent;
	color: #000000;
	font-size: 13px;
	width: 550px;
	cursor: pointer;
	/*height: 600px;	
	text-align: center;*/
}
.scanpic1-pictures_table_item_icon {
	color: #000000;
	font-size: 13px;
}

#scanpic1-popupdiv{ 
	position: absolute; 
	z-index: 1000;
	background-color: transparent;
	border: 6px solid #CCCCCC;
	padding: 10px;
	left: 0;
	top: 0;
	display: none;
}
.scanpic1-fil_strip_arrows {
	border: 0px solid transparent;
	padding: 0px;
}
.scanpic1-pages_counter {
	text-align: center;
	direction: ltr;
	padding: 10px;
}
.scanpic1-pages_counter a:link, .scanpic1-pages_counter a:visited, .scanpic1-pages_counter a:active {
	border: 1px solid #E6E6E6;
	color: #636363;
	font-size: 11px;
	padding: 6px 6px 3px;
	text-decoration: none;
}
.scanpic1-pages_counter a:hover {
	border: 1px solid #E6E6E6;
	color: #ffffff;
	background-color: blue;
	font-size: 11px;
	padding: 6px 6px 3px;
	text-decoration: none;
}
.scanpic1-pages_counter span {
	border: 1px solid #E6E6E6;
	color: #cccccc;
	font-size: 11px;
	padding: 6px 6px 3px;
	direction: ltr;
}
#scanpic1-caBtns { 
	position: absolute; top: 0px;z-index: 2222;
}
#scanpic1-caEditAll {
	position: absolute; top: 25px;z-index: 2222;
}
#scanpic1-panel, #scanpic1-fullScreenPanel{
	direction: ltr;
}
#scanpic1-film_strip_move {
	cursor: pointer;
	/*border: solid red 1px;*/
	right: 0px;
	text-align: center;
}
#scanpic1-film_strip_all {
	/*margin: 25px;*/
}
.scanpic1-film_strip_item {
	border: 1px solid #666666;
	cursor: pointer;
	float: none; 
	margin: 0px;
	right: 0px;
}
.scanpic1-film_strip_item:hover{
	border: 2px solid #000000;
	cursor: pointer;
	float: none; 
	margin: 0px; 
}
.scanpic1-nxtfilmpageDiv {
	background: #dadada url(/htm-webaxy/scanpic/images_new/nxt.gif) no-repeat scroll center center; 
}
.scanpic1-prvfilmpageDiv {
	background: #dadada url(/htm-webaxy/scanpic/images_new/prv.gif) no-repeat scroll center center; 
}	
.scanpic1-nxtfilmpageDiv:hover, .scanpic1-prvfilmpageDiv:hover {
	background-color: #adadad;
}
.scanpic1-nxtfilmpageDiv, .scanpic1-prvfilmpageDiv {
	text-align: center; 
	vertical-align: middle; 
	-moz-background-clip: -moz-initial; 
	-moz-background-origin: -moz-initial; 
	-moz-background-inline-policy: -moz-initial; 
	cursor: pointer;
}
#imageData #imageDetails{ 
	text-align: right; 
	float: right; 
}	
#imageData #bottomNavClose{
	float: left; 
}
.scanpic1-resizing, .scanpic1-popup {
	padding: 10px;
	background-color: #FFFFFF;
	cursor: pointer;
}
#scanpic1-fullScreenDivImg {
	cursor: pointer;
}

.scanpic1-pics_table_icon_up_right {
	height: 0px;
	display: none;
}
.scanpic1-pics_table_icon_up_center {
	height: 0px;
	display: none;
}
.scanpic1-pics_table_icon_up_left {
	height: 0px;
	display: none;
}
.scanpic1-pics_table_icon_right_center {
	height: 0px;
	display: none;
}
.scanpic1-pics_table_icon_center_center {
	height: 0px;
	display: none;
}
.scanpic1-pics_table_icon_left_center {
	height: 0px;
	display: none;
}
.scanpic1-pics_table_icon_down_right {
	height: 0px;
	display: none;
}
.scanpic1-pics_table_icon_down_center {
	height: 0px;
	display: none;
}
.scanpic1-pics_table_icon_down_left {
	height: 0px;
	display: none;
}
.scanpic1-pics_table_up_right {
	height: 0px;
	display: none;
}
.scanpic1-pics_table_up_center {
	height: 0px;
	display: none;
}
.scanpic1-pics_table_up_left {
	height: 0px;
	display: none;
}
.scanpic1-pics_table_right_center {
	height: 0px;
	display: none;
}
.scanpic1-pics_table_center_center {
	height: 0px;
	display: none;
}
.scanpic1-pics_table_left_center {
	height: 0px;
	display: none;
}
.scanpic1-pics_table_down_right {
	height: 0px;
	display: none;
}
.scanpic1-pics_table_down_center {
	height: 0px;
	display: none;
}
.scanpic1-pics_table_down_left {
	height: 0px;
	display: none;
}
.scanpic1-tr1 {
		display:none;
}
.scanpic1-tr3 {
		display:none;
}

<div id="FloatingEdit" style="position:absolute; visibility:visible; left:2px; top:1px; z-index:5"></div>
<script>
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.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;

		var linkButtons = new Object();
	linkButtons.htm_webaxy='/htm-webaxy';
	linkButtons.cgi_webaxy='/cgi-webaxy';
		linkButtons.lang = "he";
		linkButtons.name = "he";
		linkButtons.hidden = "lang=he&ID=283662_ghi";
		linkButtons.scandir = "סורק ספריות";
		linkButtons.scanpic = "סורק תמונות";
		linkButtons.file = "קובץ מאתר";
		linkButtons.pic = "תמונה מאתר";
		linkButtons.uploadFileAndGetLink = "שלח קובץ וקשר";
		linkButtons.createPageAndGetLink = "צור דף וקשר";
		linkButtons.curdir = "";
		linkButtons.rootdir = "";
		

	linkButtons.hidden = linkButtons.hidden + '&username='+username+'&password='+password;	
<script>
	function changeArrow(id) {
		
		if (!document.getElementById(id).getAttribute('open')) {
			document.getElementById(id).style.backgroundImage = "url(/htm-webaxy/icons/arrow-up.gif)";	
			document.getElementById(id).setAttribute('open', 1);
		}
		else {
			document.getElementById(id).style.backgroundImage = "url(/htm-webaxy/icons/arrow-down.gif)";
			document.getElementById(id).setAttribute('open', 0);
		}
		
}

function openAll_1(index) {
		
		var val = document.getElementById('scanpicCADiv1').getAttribute('open');
		
		if (val == 0) {
			for (var i=1;i<=index;i++) {
					animatedcollapse.show('file'+i);
			}
			document.getElementById('scanpicCADiv1').setAttribute('open',1);
			document.getElementById('scanpic1-openall').title = 'סגור הכל';	
			document.getElementById('scanpic1-openall').src = '/htm-webaxy/icons/arrow-up.gif';
			for (var i=1;i<=index;i++) {
				document.getElementById('file_td'+i).style.backgroundImage="url(/htm-webaxy/icons/arrow-up.gif)";
			}
		}
		else {
			for (var i=1;i<=index;i++) {
					animatedcollapse.hide('file'+i);
			}
			document.getElementById('scanpicCADiv1').setAttribute('open',0);
			document.getElementById('scanpic1-openall').title = 'פתח הכל';	
			document.getElementById('scanpic1-openall').src = '/htm-webaxy/icons/arrow-down.gif';
			for (var i=1;i<=index;i++) {
				document.getElementById('file_td'+i).style.backgroundImage="url(/htm-webaxy/icons/arrow-down.gif)";
			}
		}
}

function done_update_1() {

		if (!document.getElementById('update_done').value) {
				window.setTimeout("done_update_1()",250);
				return;
		}
		document.getElementById('update_done').value = '';
		if ('') {
			refreshSP('', '');
		}
		else {
			refreshSP('1', '');
		}
		done_update2_1();
		
}

function done_update2_1() {
		
		if (!document.getElementById('update_done').value) {
				window.setTimeout("done_update2_1()",250);
				return;
		}
		var rand_no = Math.random()*4567320356435;
		if (window.location.href.search(/sid=/) == -1) {
			window.location.href = window.location.href+'?sid=s'+parseInt(rand_no)+'e';
		}
		else {
			window.location.href = window.location.href.replace(/sid=s.+e/,'sid=s'+parseInt(rand_no)+'e');
		}

}

function cancel_update_1() {
		
		var hide = document.getElementById('scanpic1-hideAllDiv');
		var d = document.getElementById('scanpicCADiv1');
		hide.style.display = 'none';
		d.style.display = 'none';
		hide.style.zIndex = 0;
		d.removeChild(d.firstChild);
		
}

function updateSP(done) {
	
	if (done && document.getElementById('files_update').done) document.getElementById('files_update').done.value = 1;
	document.getElementById('files_update').submit();
	if (done) done_update_1();
		
}

function deleteSP() {
	
	if( confirm("האם אתה מאשר מחיקה?") ){
		var f = document.getElementById('files_update');
		f.action.value = 'delete_files';
		f.submit();
		num = document.getElementById('num_of_items').value;
		tb = document.getElementById('files_update_tb');
		for (i = num ; i > 0 ; i--) {
			if (f['delete'+i].checked) {
				id_to_delete = (2*i)+1;
				tb.rows[id_to_delete].parentNode.removeChild(tb.rows[id_to_delete]);
				id_to_delete--;
				tb.rows[id_to_delete].parentNode.removeChild(tb.rows[id_to_delete]);
			}
		}
		//refreshSP(1);
		//done_update_1();
	}
	
}

function markAll1() {
		
	var f = document.getElementById('files_update');
	var val = document.getElementById('scanpic1-markAll').checked;
	var num = document.getElementById('num_of_items').value;
	
	for (i = num ; i > 0 ; i--) {
		f['delete'+i].checked = val;
	}
	
	if (val) {
		document.getElementById('scanpic1-markAll').title = "הסר כל הסימונים";
	}
	else {
		document.getElementById('scanpic1-markAll').title = "סמן הכל";
	}
	
}

function clickEditSP1(str, index, type, dataid, filter, filter2){
		/*wEdit = open("/cgi-webaxy/page_edit_login.pl?lang=he&ID=283662_ghi&"+cookie_in+"&curdir=http://www.ghi.org.il/info/tmunot/tubishvat/&count="+str+"&act=edit", "wEdit", "location=0, toolbar=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=1");
		last
		wEdit = open("/cgi-webaxy/page_edit_login.pl?lang=he&ID=283662_ghi&"+cookie_in+"&curdir=http://www.ghi.org.il&count="+str+"&act=edit", "wEdit", "location=0, toolbar=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=1");
		*/
		
		if (typeof(type) != 'undefined' && type == 'sal') {
			var dbid = dataid.replace(/^sal\s+/, '');
			if (index == -1) {
				if (typeof(extFilter) == 'undefined') extFilter = '';
				if (filter) wAdd = open(filter+"&"+cookie_in,"wAdd","height=600,width=500,top=150,left=150,resizable=yes,status=yes,scrollbars=yes");
				else wAdd = open("http://www.ghi.org.il/cgi-webaxy/sal/sal.pl?lang=he&ID=283662_ghi&act=search&add_button=1&dbid="+dbid+filter2+extFilter+"&"+cookie_in,"wAdd","height=600,width=500,top=150,left=150,resizable=yes,status=yes,scrollbars=yes");
			}
			else {
				str = str.replace(/act=show/, 'act=edit');
				wAdd = open("http://www.ghi.org.il/cgi-webaxy/sal/sal.pl?lang=he&ID=283662_ghi&act=edit&dbid="+dbid+"&dataid="+str+"&"+cookie_in,"wAdd","height=600,width=500,top=150,left=150,resizable=yes,status=yes,scrollbars=yes");
			}
			return;
		}
		
		hide = document.getElementById('scanpic1-hideAllDiv');
		hide.style.height = (myHeight1+myScrollHeight1)+'px';
		hide.style.display = 'block';
		hide.style.width = myWidth1+'px';
		hide.style.zIndex = 1111;
		if (navigator.appVersion.indexOf("MSIE")!=-1) {
			document.getElementById('scanpic1-hideAllDiv').style.filter = "alpha(opacity=85)";
		}
		else {
			document.getElementById('scanpic1-hideAllDiv').style.opacity = 0.85;
		}
		var addDiv = '';
		var d = document.getElementById('scanpicCADiv1');
		var form = document.createElement("form");
		form.name = "files_update";
		form.id = "files_update";
		form.setAttribute("action", "/cgi-webaxy/scanpicadmin.pl");
		form.setAttribute("method", "post");
		form.setAttribute("target", "hidden_iframe");
		
		d.style.display = 'block';
		getSize1();
		scroll((myWidth1-d.style.width.replace(/px/,''))/2,0);
		d.style.left = ((myWidth1-d.style.width.replace(/px/,''))/2)+'px';
		var tb = document.createElement('table');
		tb.width = '770px';
		tb.id = 'files_update_tb';
		tb.className = 'list-row';
		var row, cell;
		row = tb.insertRow(-1);
		cell = row.insertCell(-1);
		cell.align = 'right'
		cell.setAttribute('colSpan', 5);
		cell.innerHTML = '<a href="javascript:void(0);" onClick="cancel_update_1();return false;"><img border="0" src="/htm-webaxy/skins/standard/close.gif" title="סגור" id="scanpic1-close"></a>';
		
		row = tb.insertRow(-1);
		cell = row.insertCell(-1);
		cell.align = "center";
		cell.setAttribute('colSpan', 5);
		if (index < 0) cell.innerHTML = '<a href="javascript:void(0);" onClick="openAll_1('+images_details1.length+');return false;"><img border="0" src="/htm-webaxy/icons/arrow-down.gif" title="פתח הכל" id="scanpic1-openall"></a>';
		else cell.innerHTML = '';
		cell.innerHTML += '<input type="hidden" name="ID" value="283662_ghi">';
		cell.innerHTML += '<input type="hidden" name="lang" value="he">';
		cell.innerHTML += '<input type="hidden" name="username" value="'+username+'">';
		cell.innerHTML += '<input type="hidden" name="action" value="update_details">';
		cell.innerHTML += '<input type="hidden" name="password" value="'+password+'">';
		cell.innerHTML += '<input type="hidden" name="done" value="">';
		if (index < 0) cell.innerHTML += '<input type="hidden" id="num_of_items" name="num_of_items" value="'+images_details1.length+'">';
		else cell.innerHTML += '<input type="hidden" id="num_of_items" name="num_of_items" value="1">';
		cell.innerHTML += '<input type="hidden" name="scanpicID" value="1">';
		cell.innerHTML += '<input type="hidden" id="name="file_to_delete" name="file_to_delete" value="">';
		cell.innerHTML += '<input type="hidden" name="update_done" id="update_done" value="">';
		var new_src = '/cgi-webaxy/scanpicadmin.pl?ID=283662_ghi&lang=he&username='+username+'&password='+password+'&action=update_details&num_of_items'+images_details1.length+'&scanpicID=1';
		var curIndex = 0;
		var imgArr = imgArr1;
		var images_details = images_details1;
		for (i = 1 ; i <= images_details1.length ; i++) {
			if (index >= 0 && i != index+1) continue;
			var j = i;
			var file = imgArr[i-1];
			var data = images_details[i-1].split("<DD>");
			if (index >=0 && i == index +1) i=1;
			if (str.indexOf(file) == (str.length - file.length)) curIndex = i;
			var fileData = new Object();
			for (var p=0; p<data.length;p++) {
				field = (data[p].split("="))[0];
				value = ((data[p].split("="))[1])?(data[p].split("="))[1].replace(/<SHAVE>/g, '='):'';
				if (field == 'photog') field = 'writer';
				if ((field == 'nonew' || field == 'nosearch' || field == 'noscandir') && value == '1') value = 'checked';
				fileData[field] = value;
			}
			field = 'title'
			
			row = tb.insertRow(-1);
			//row.onclick = function () { animatedcollapse.toggle('file'+this.index); changeArrow('file_td'+this.index); };
			//row.index = i;
			//row.style.cursor = 'pointer';
			
			cell = row.insertCell(-1);
			cell.innerHTML = '<input type="checkbox" id="delete'+i+'" name="delete'+i+'" value="checked">';
			
			cell = row.insertCell(-1);
			cell.innerHTML = '<img src="/htm-webaxy/skins/standard/f-butt.gif">';
			cell.index = i;
			cell.onmouseover = function() { return overlib('<img src="'+document.getElementById('files_update')["file"+this.index].value+'" width="150px">', WIDTH, 150); };
			cell.onmouseout= function() { nd(500); };			
			
			cell = row.insertCell(-1);
			var file1 = file;
			if (file.length > 25) {
					file1 = "..."+file.substring(file.length-22);
			}
			cell.innerHTML = '<input type="hidden" name="file'+i+'" value="http://www.ghi.org.il/info/tmunot/tubishvat/'+file+'"><b>'+file1+'</b>';
			cell.dir = 'ltr';
			cell.setAttribute("title", 'http://www.ghi.org.il/info/tmunot/tubishvat/'+file);
			cell = row.insertCell(-1);
			cell.innerHTML = 'כותרת';
			cell = row.insertCell(-1);
			cell.innerHTML += '<input type="text" name="file_title'+i+'" value="'+fileData.title+'" style="width:200px;">&nbsp;';
			cell.innerHTML += 'תאריך&nbsp;';
			cell.innerHTML += '<input type="text" name="file_date'+i+'" style="direction:ltr;width:80px;" value="'+fileData.date+'">&nbsp;';
			cell.innerHTML += '<img src="/htm-webaxy/select/cal.gif" style="border-width:0;cursor:pointer;" onclick="window.frames[\'date_ifr1\'].clickDate(0,event.clientY,document.files_update.file_date'+i+',\'תאריך\');" title="">&nbsp;';
			cell.innerHTML += 'צלם&nbsp;'+
											 '<input type="text" name="file_writer'+i+'" style="width:100px;" value="'+fileData.writer+'">'+
											 '<input type="hidden" name="file_author'+i+'" value="'+fileData.author+'">';
			
			cell = row.insertCell(-1);						
			cell.style.width = '20px';
			cell.style.cursor = 'pointer';
			cell.style.backgroundRepeat = 'no-repeat';
			cell.style.backgroundPosition = '1% 0pt';
			if (index >=0 && j == index+1) cell.style.backgroundImage = 'url(/htm-webaxy/icons/arrow-up.gif)';
			else cell.style.backgroundImage = 'url(/htm-webaxy/icons/arrow-down.gif)';
			cell.open = 0;
			cell.id = 'file_td'+i;
			cell.onclick = function () { animatedcollapse.toggle('file'+this.index); changeArrow('file_td'+this.index); };
			cell.index = i;
			
			row = tb.insertRow(-1);
			mainCell = row.insertCell(-1);
			mainCell.setAttribute('colSpan', 5);
			
			var animateDiv = document.createElement('div');
			animateDiv.id = 'file'+i;
			if (index >=0 && j == index+1) animateDiv.style.display = 'block';
			else animateDiv.style.display = 'none';
			var animateTB = document.createElement('table');
						
			row = animateTB.insertRow(-1);
			cell = row.insertCell(-1);
			cell.innerHTML = 'תיאור';
			cell = row.insertCell(-1);
			fileData.description = fileData.description.replace(/<br>/g,"\n");
			cell.innerHTML = '<textarea rows="3" cols="40" name="file_description'+i+'" style="width:400px;">'+fileData.description+'</textarea>';
			
			row = animateTB.insertRow(-1);
			cell = row.insertCell(-1);
			cell.innerHTML = 'מילות מפתח';
			cell = row.insertCell(-1);
			cell.innerHTML = '<input type="text" name="file_keywords'+i+'" value="'+fileData.keywords+'" style="width:400px;"></td>';
			
			row = animateTB.insertRow(-1);
			cell = row.insertCell(-1);
			cell.innerHTML = 'מאפיינים';
			cell = row.insertCell(-1);
			cell.innerHTML = '<input type="checkbox" name="file_nonew'+i+'" value="1" '+fileData.nonew+'>הסתר מחידושים&nbsp;'+
											 '<input type="checkbox" name="file_nosearch'+i+'" value="1" '+fileData.nosearch+'>הסתר מחיפוש&nbsp;'+
											 '<input type="checkbox" name="file_noscandir'+i+'" value="1" '+fileData.noscandir+'>הסתר מסורק ספריות &nbsp;';
			
			row = animateTB.insertRow(-1);
			cell = row.insertCell(-1);
			cell.innerHTML = 'תמונה ייצוגית';
			cell = row.insertCell(-1);
			cell.innerHTML = '<input type="text" id="file_previewImage'+i+'" name="file_previewImage'+i+'" value="'+fileData.previewImage+'" style="width:350px;direction:ltr;">'+
											 '<div class="getLink" fieldID="file_previewImage'+i+'" btnType="uploadFile;selectPic"></div>';
											 
			row = animateTB.insertRow(-1);
			cell = row.insertCell(-1);
			cell.innerHTML = 'קישור';
			cell = row.insertCell(-1);
			cell.innerHTML = '<input type="text" id="file_imageLink'+i+'" name="file_imageLink'+i+'" value="'+fileData.imageLink+'" style="width:350px;direction:ltr;">'+
											 '<div class="getLink" fieldID="file_imageLink'+i+'"></div>';
			animateDiv.appendChild(animateTB);
			mainCell.appendChild(animateDiv);
			i = j;
		}
		
		row = tb.insertRow(-1);
		cell = row.insertCell(-1);
		cell.innerHTML = '<input type="checkbox" name="scanpic1-markAll" id="scanpic1-markAll" onClick="markAll1();" title="סמן הכל">';
		cell = row.insertCell(-1);
		cell.align = "center";
		cell.setAttribute('colSpan', 5);		
		cell.innerHTML = '<table cellspacing="0" cellpadding="0" border="0" onclick="updateSP();" style="display:inline;cursor:pointer;margin:auto;direction:ltr;" title="עדכון">'+
												'<tr>'+
													'<td class="left-button"><img src="/htm-webaxy/skins/p.gif"></td>'+
												  '<td>'+
								  					'<table cellspacing="0" cellpadding="0" border="0" style="direction:rtl;">'+
												  	'<tr>'+
													  	'<td class="execute-butt"><img src="/htm-webaxy/skins/p.gif"></td>'+
								  						'<td class="text-button">עדכון</td>'+
											  		'</tr>'+
												  '</table>'+
												'</td>'+
							  				'<td class="right-button"><img src="/htm-webaxy/skins/p.gif"></td>'+
										 '</tr>'+
										'</table>'+
										'<table cellspacing="0" cellpadding="0" border="0" onclick="updateSP(1);" style="display:inline;cursor:pointer;margin:auto;direction:ltr;" title="עדכן וסגור">'+
												'<tr>'+
													'<td class="left-button"><img src="/htm-webaxy/skins/p.gif"></td>'+
												  '<td>'+
								  					'<table cellspacing="0" cellpadding="0" border="0" style="direction:rtl;">'+
												  	'<tr>'+
													  	'<td class="execute-butt"><img src="/htm-webaxy/skins/p.gif"></td>'+
								  						'<td class="text-button">עדכן וסגור</td>'+
											  		'</tr>'+
												  '</table>'+
												'</td>'+
							  				'<td class="right-button"><img src="/htm-webaxy/skins/p.gif"></td>'+
										 '</tr>'+
										'</table>'+
										'<table cellspacing="0" cellpadding="0" border="0" onclick="deleteSP();" style="display:inline;cursor:pointer;margin:auto;direction:ltr;" title="מחיקת כל המסומנים">'+
												'<tr>'+
													'<td class="left-button"><img src="/htm-webaxy/skins/p.gif"></td>'+
												  '<td>'+
								  					'<table cellspacing="0" cellpadding="0" border="0" style="direction:rtl;">'+
												  	'<tr>'+
													  	'<td class="delete-butt"><img src="/htm-webaxy/skins/p.gif"></td>'+
								  						'<td class="text-button">מחיקה</td>'+
											  		'</tr>'+
												  '</table>'+
												'</td>'+
							  				'<td class="right-button"><img src="/htm-webaxy/skins/p.gif"></td>'+
										 '</tr>'+
										'</table>';
		form.appendChild(tb);
		d.appendChild(form);
		
		for (i = 1 ; i <= images_details1.length ; i++) {
				animatedcollapse.addDiv('file'+i, 'fade=1');
		}
		//addDiv += "animatedcollapse.addDiv('file"+i+"', 'fade=1');";
		//eval(addDiv);
		animatedcollapse.init();
		creatAllLinkButtons();
		var f = document.getElementById('files_update');
		if (f['file_title'+curIndex]) f['file_title'+curIndex].focus();
		
	}
	
	function clickDel(str, type, dataid){
		
		if (typeof(type) != 'undefined' && type == 'sal') {
			if( confirm("האם למחוק רשומה?") ){
				var dbid = dataid.replace(/^sal\s+/, '');
				//str.search(/dataid=(\d+)/);
				str.search(/dataid=(.+)/);
				dataid = RegExp.$1;
				wAdd = open("http://www.ghi.org.il/cgi-webaxy/sal/sal.pl?lang=he&ID=283662_ghi&act=del&closeMe=1&dbid="+dbid+"&dataid="+str+"&"+cookie_in,"wAdd","height=600,width=500,top=150,left=150,resizable=yes,status=yes,scrollbars=yes");	
				//item.parentNode.removeChild(item);
			}
		}
		else if( confirm("האם למחוק \n"+str) ){
			//alert("/cgi-webaxy/scanpicadmin.pl?lang=he&ID=283662_ghi&"+cookie_in+"&action=delete_files&num_of_items=1&delete1=1&file1="+str);
			dWin = open("/cgi-webaxy/scanpicadmin.pl?lang=he&ID=283662_ghi&"+cookie_in+"&action=delete_files&num_of_items=1&delete1=1&file1="+str ,"dWin","toolbar=yes,status=yes,scrollbars=no,resizable=no,width=1,height=1");
			self.focus();
			if ('') {
				refreshSP('', '', 1);
			}
			else {
				refreshSP('1', '', 1);
			}
			/*
			dWin = open("/cgi-webaxy/page_edit_login.pl?lang=he&ID=283662_ghi&"+cookie_in+"&act=delFile&dfile=http://www.ghi.org.il"+str ,"dWin","toolbar=yes,status=yes,scrollbars=no,resizable=no,width=1,height=1");
			//dWin.close();
			self.focus();
			//window.setTimeout("window.location.reload()",1000);
			*/
		}
	}

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]+"&");}
		if (document.getElementById("s1")) {
			if (location.href.search(/scanpic\/scanpic1.htm/) != -1 && '' != '1') {
					document.getElementById("s1").src = "/cgi-webaxy/admin/page_edit_js.pl?ID=283662_ghi&scanpicID=1&dir=info/tmunot/tubishvat/&type=&dbid=&filter=&filter2=&edit_scanpic_scan=עריכת גלריה&add_img=הוספת תמונה&add_scanpic=הוסף גלריה לאלבום נוכחי&refresh=refresh&eApplication=scanpic&"+allCookie +"&r="+Math.round((Math.random() * 1000));
			}
			else if (location.href.search(/Albms\/albm.htm/) != -1) {
					document.getElementById("s1").src = "/cgi-webaxy/admin/page_edit_js.pl?ID=283662_ghi&galleryID=&edit_gallery_scan=&add_scanpic=הוסף גלריה לאלבום נוכחי&refresh=refresh&eApplication=scanpic&"+allCookie +"&r="+Math.round((Math.random() * 1000));
			}
		}
		
	}
}
<!-- click admin -->

		
		

.scanpic-pics {padding-top:10px;}

