	function openWindow(URL, winName, width, height){

		if(height=='' || !height)
		height=screen.height/2
		height_factor = ((screen.height/100)*85)
		if(height>=height_factor)
			height=height_factor;


		if(width=='' || !width)
			width=screen.width/2
		width_factor = ((screen.width/100)*95)
		if(width>=width_factor)
			width=width_factor;

		var top=((screen.height-height)/2)-(screen.height/20)
		var left=(screen.width - width) / 2 ;

			win=window.open(URL, winName, 'toolbar=no,location=no,directories=no,status=0,menubar=no,scrollbars=yes,resizable=0,copyhistory=no,width='+width+',height='+height+',top='+top+',left='+left+'');
			win.focus();
	}

	function GOTO_URL(URL){
		var f=document.frmDetails;
		if( f.PrintID.value )
			location.href=URL+"&PrintID="+f.PrintID.value;
		else
			location.href=URL;
	}

	function PrintInfo( feildname, id, checked )
	{			
			//alert(feildname+"-"+id+"-"+checked) 
		var f=document.frmDetails;
		var val;
		var returnval="";

		if( checked==false || checked=="false" ){
			val=f.PrintID.value;
							//alert(val);
			list=val.split(",");
							//alert(list.length+"\n"+list[0]);
		for( i=0 ; i<list.length ; i++){
				if(list[i]!=id ){
					if(returnval.length>0)
						returnval=returnval+","+list[i];
					else
						returnval=list[i];
				}
			}
						//alert(returnval);
			f.PrintID.value=returnval;
		}
		else{
			if(f.PrintID.value.length>0)
				f.PrintID.value+=","+id;
			else
				f.PrintID.value+=id;
		}
	}

	function show_me(URL, id, h)
	{		
		//if(document.all("TxtID" + id).innerText=="לפרטים")
		if( document.getElementById("Info" + id).className=="TdInfo" )
	   {	
			for( i=0 ; i<document.getElementById('Txt_' + id).length-1 ; i++ ){
				document.getElementById('Txt_' + id)(i).style.color='#FFA97D';
			}

			document.getElementById("TxtID"  + id).innerHTML='<A style="color: black; font-weight: bold;" HREF="javascript:show_me(\''+URL+'\','+ id+', 300);">סגור</A>';
			
			str="<TABLE WIDTH=100% BORDER=0 align='left' CELLPADDING=0 CELLSPACING=0 dir=rtl BGColor='#F8EFEA'>";
			str+="<TR>";
			str+="	<TD style='border-right: solid 1px #FD9A57; background-color: #F8EFEA'><IMG SRC='../imageInsidePage/hidden-spacer.gif' WIDTH='1' HEIGHT='1' BORDER='0'></TD>";
			str+="	<TD width='731' align=center><iframe  src='" + URL + "' width='100%' height='" + h + "' frameborder='0' scrolling='auto' BGColor='#F8EFEA'></iframe></TD>";
			str+="	<TD style='border-left: solid 1px #FD9A57; background-color: #F8EFEA'><IMG SRC='../imageInsidePage/hidden-spacer.gif' WIDTH='1' HEIGHT='1' BORDER='0'></TD>";
			str+="</TR>";
			str+="<TR>";
			str+="	<td width='20' height='29'><img src='../imageInsidePage/Bottom_right_corner_details.jpg' width='20' height='29' alt=''></td>";
			str+="	<td width='731'  background='../imageInsidePage/Bottom_BG_details_Bottom.jpg'><img src='../imageInsidePage/Bottom_BG_details_Bottom.jpg' width='13' height='29' alt=''></td>";
			str+="	<td width='19' height='29'><img src='../imageInsidePage/Bottom_left_corner_details_.jpg' width='19' height='29' alt=''></td>";
			str+="</TR>";			
			str+="</TABLE>";
			document.getElementById("Info" + id).innerHTML=str;
			document.getElementById("Info" + id).className="";
	   } 
		else
	   {
			for( i=0 ; i<document.getElementById('Txt_' + id).length-1 ; i++ ){
				document.getElementById('Txt_' + id)(i).style.color='#000000';
			}
			document.getElementById("TxtID"  + id).innerHTML='<A style="color: black; font-weight: bold;" HREF="javascript:show_me(\''+URL+'\','+ id+', 300);">לפרטים</A>';
			document.getElementById("Info" + id).innerHTML="<IMG SRC='../imageInsidePage/spacer.gif' WIDTH='1' HEIGHT='1' BORDER='0'>";
			document.getElementById("Info" + id).className="TdInfo";
	   }			

	}

	function openmovebanner(){
		document.getElementById("RightBannerClose").style.display='block';																									
		document.getElementById("RightBannerOpen").style.display='none';
	}

	function closemovebanner(){
		document.getElementById("RightBannerOpen").style.display='block';	
		document.getElementById("RightBannerClose").style.display='none';	
		
	}
	
	function set_onload(){
		var top_strip = 	
			"<table width=\"770\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">" +
				"<tr>" +
					"<td height=\"20\" width=\"320\">&nbsp;</td>" +
					"<td width='124' height='20' align=right valign=bottom>" +
						"<a href='../index.php#products' class='bar'>מוצרים מדליקים</a></td>" +
					"<td>" +
						"<img src='http://images.yad2.co.il/Pic/site_images/yad2/images_homepage/home4_03.gif' width='13' height='20' alt=''></td>" +
					"<td width='58' height='20' align=right valign=bottom>" +
						"<a href='javascript:void(0)' onClick=\"openWindow('../Contact.php', 'Contact', 540, 570)\" class='bar'>צור קשר</a></td>" +
					"<td>" +
						"<img src='http://images.yad2.co.il/Pic/site_images/yad2/images_homepage/home4_05.gif' width='15' height='20' alt=''></td>" +
					"<td width='73' height='20' align=right valign=bottom>" +
						"<a href='javascript:void(0);'  onClick=\"openWindow('../TellAFriend.php', 'TellAFriend', 540, 500)\" class='bar'>המלץ לחבר</a></td>" +
					"<td>" +
						"<img src='http://images.yad2.co.il/Pic/site_images/yad2/images_homepage/home4_07.gif' width='20' height='20' alt=''></td>" +
					"<td width='81' height='20' align=right valign=bottom>" +
						"<a href='javascript:if(document.all) window.external.AddFavorite(\"http://www.yad2.co.il\",\"יד 2\")' onMouseOver='return window.status=\"הוסף למועדפים\"' class='bar'>הוסף למועדפים</a></td>" +
					"<td>" +
						"<img src='http://images.yad2.co.il/Pic/site_images/yad2/images_homepage/home4_09.jpg' width='14' height='20' alt=''></td>" +
					"<td width='85' height='20' align=right valign=bottom>" +
						"<a href='javascript:void(0)' onClick=\"this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.yad2.co.il/');\" onMouseOver=\"return window.status='הפוך לדף הבית'\" onMouseOut='return window.status=\"\"' class='bar'>הפוך לדף הבית</a></td>" +
					"<td>" +
						"<img src='http://images.yad2.co.il/Pic/site_images/yad2/images_homepage/home4_11.gif' width='16' height='20' alt=''></td>" +
					"<td>" +
						"<img src='http://images.yad2.co.il/Pic/site_images/yad2/images_homepage/home4_12.gif' width='6' height='20' alt=''></td>" +
				"</tr>" +
			"</table>";
		var strip_div = document.getElementById("top_strip");
		strip_div.innerHTML = top_strip;
		
	}