var left800_0=622;
var left800_1=495;			
var left800_2=378;			
var left800_3=214;				
function openIt(x) {				
showBox = eval('document.all.box' + x);				
showBox.style.display= "";								
if (screen.width==800)					
{						
if (x==0)							
showBox.style.left=left800_0;						
if (x==1)							
showBox.style.left=left800_1;						
if (x==2)							
showBox.style.left=left800_2;							
if (x==3)							
showBox.style.left=left800_3;												
}			        				
var items = 4;				
for (i=0; i<items; i++) 				
{					
elOpen=eval('document.all.box' + i);					
if (i != x)					
{ 						
elOpen.style.display = "none";					
}				
}							
}

function GoBack()
{
history.back();
}

function Print(template_name)
{

    if(template_name!=null && (template_name.toLowerCase()=='innerpage' || template_name.toLowerCase()=='closed_innerpage'))
    {
        var cur_url=location.href+'&print=true';
        
        if(cur_url.indexOf('?')<0)
        {
            cur_url=cur_url.replace('&','?');
        }
       
        window.open(cur_url,null,'status=1,scrollbars=1,menubar=1,resizable=1,width=800,height=650');
    }
    else
        window.print();
}

function Send2Friend()
{
    location.href = 'mailto:?subject='+send2Friend_subject+'&body='+location.href;
}
/*if (!document.all && window.addEventListener)
{
window.addEventListener("load", resizeCallerCustom, false)
}*/

function resizeCallerCustom()
{
    SetFrameHeight(document.getElementById("hp_main_article_iframe"));
    SetFrameHeight(document.getElementById("hp_news_events1_iframe"));
}

function SetFrameHeight(obj)
{
try
{
    if(obj==null)
        return;
       
   if(!document.all)
        loadintoIframe(obj.id, obj.src);
   //alert(frames[obj.id].document.body);
    if (obj.src != "")
    {
    var frameBody;
    if(! document.all)
        frameBody=obj.contentDocument.body;
     else
         frameBody=obj.contentWindow.document.body;
        
    /*if(obj.contentWindow ==null)
            return;	
   if(obj.contentWindow.Document ==null)
            return;
            alert('2');
        if(obj.contentWindow.Document.body ==null)
            return;*/
           
	    var new_height;
	    //new_height=obj.contentWindow.Document.body.scrollHeight;
	     new_height=frameBody.scrollHeight;
	    obj.style.height=new_height+"px";
	    }
	    }
	    catch(e){}
    	
   
}
/****************************************************/

//Input the IDs of the IFRAMES you wish to dynamically resize to match its content height:
//Separate each ID with a comma. Examples: ["myframe1", "myframe2"] or ["myframe"] or [] for none:
var iframeids=["hp_main_article_iframe","hp_news_events1_iframe"]
var iframeids=[""];
//Should script hide iframe from browsers that don't support this script (non IE5+/NS6+ browsers. Recommended):
var iframehide="yes"

var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers

function resizeCaller() {
var dyniframe=new Array()
for (i=0; i<iframeids.length; i++){
if (document.getElementById)
resizeIframe(iframeids[i])
//reveal iframe for lower end browsers? (see var above):
if ((document.all || document.getElementById) && iframehide=="no"){
var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i])
tempobj.style.display="block"
}
}
}

function resizeIframe(frameid){
var currentfr=document.getElementById(frameid)
if (currentfr && !window.opera){
currentfr.style.display="block"
if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax
currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight;
else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax
currentfr.height = currentfr.Document.body.scrollHeight;
if (currentfr.addEventListener)
currentfr.addEventListener("load", readjustIframe, false)
else if (currentfr.attachEvent){
currentfr.detachEvent("onload", readjustIframe) // Bug fix line
currentfr.attachEvent("onload", readjustIframe)
}
}
}

function readjustIframe(loadevt) {
var crossevt=(window.event)? event : loadevt
var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement
if (iframeroot)
resizeIframe(iframeroot.id);
}

function loadintoIframe(iframeid, url){
if (document.getElementById)
document.getElementById(iframeid).src=url
}

/*if (window.addEventListener)
window.addEventListener("load", resizeCaller, false)
else if (window.attachEvent)
window.attachEvent("onload", resizeCaller)
else
window.onload=resizeCaller*/

/****************************************************/

function PressSearchButton(obj)
{
var td=obj.parentElement.parentElement.all[0]
var tbl=td.all[0]
var btn=tbl.rows[0].cells[0].all[0];
btn.click();
}

function PressSearchButtonForHP(obj)
{
//alert(obj.parentElement.parentElement.parentElement.id);
var td=obj.parentElement.parentElement.parentElement.all[0].all[0].all[0];
var tbl=td.all[0]
var btn=tbl.rows[0].cells[0].all[0];
//alert(btn.id);
btn.click();
}


function ShowDiv1(obj,arrow,right,top,index,img_obj,replace_url)
  {
if(img_obj !=null && replace_url !='')
	img_obj.src=replace_url;
  if (obj==null)
	return
	
   obj.style.right = document.body.clientWidth - arrow.offsetLeft;
   obj.style.top =arrow.offsetTop + arrow.offsetHeight-top-5 ;//- 2;
   obj.style.display='';
   if(obj.clientHeight<5)
	 {
	    obj.style.display='none';
	    return;
	   }
   
   if (right == 1)
    obj.style.right = parseInt(obj.style.right)- arrow.offsetWidth +10;//-10
   else
    obj.style.right = parseInt(obj.style.right) - obj.clientWidth;


    
  }

function HideDiv1(obj,index,img_obj,src_url)    
  {
if(img_obj !=null && src_url !='')
	img_obj.src=src_url;
  if (obj==null)
	return
   obj.style.display='none'; 

   
  }
  
  function ComponentImageHref(link,target){
    if(target =='_blank')
    {    
        var w=window.open(link,'','toolbar=no, location=no, resizable=yes, menubar=no, width=500, height=500, modal=no');
        //w.moveTo(200,100);
    }
    else
        location.href=link;

}
			
function closeIt() 			
{				
var items = 4;				
for (i=0; i<items; i++) 				
{					
var B=eval('document.all.box' + i);					
B.style.display = "none";
}
}

function ShowToolTip(ID)
{
			var ToolTip = document.getElementById("ToolTipDiv_" + ID);
            if (ToolTip.length)
                ToolTip = ToolTip[0];

			ToolTip.style.display = '';
			ToolTip.style.left = (document.body.parentElement.scrollLeft + window.event.x) - ToolTip.style.pixelWidth;  
			ToolTip.style.top = document.body.parentElement.scrollTop + window.event.y + 5;

}

function CloseToolTip(ID)
{
    var ToolTip = document.getElementById("ToolTipDiv_" + ID);
	if (ToolTip.length)
        ToolTip = ToolTip[0];
	ToolTip.style.display = 'none';
}

function OpenCloseDiv(img,obj)
{
var MyTable= obj.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement;
if(MyTable.rows ==null || MyTable.rows.length < 5)
	return;

var MyRow=MyTable.children[0].children[4];
var MyCell=MyRow.children[0];
if(Trim(MyCell.childNodes[0].childNodes[0].innerHTML)=='')
	return;

if (img !=null)
	if (img.src.indexOf('plus')>=0)
		img.src=img.src.replace("plus","minus");
	else
		img.src=img.src.replace("minus","plus");

//alert(MyCell.id);

	if(MyCell.style.display=='none')
		MyCell.style.display='block';
	else
		MyCell.style.display='none';






	
}

function OpenContent(ItemGuid)
		{
			var TR = eval("document.all.TR_" + ItemGuid);
			var TD = eval("document.all.TD_" + ItemGuid);
		//	var IMG = eval("document.all.IMG_" + ItemGuid);
			var LineColor
			var ImgAdd
			
										
			if(TR.style.display=='none')
			{
				TR.style.display = '';
				TD.style.color='#F9A829';
				
			}
			else
			{
				// צריך לסגור
				TR.style.display = 'none';
				TD.style.color='#2E4993';
				
			}
		}

function InitSelectedItems(my_tb){

if(my_tb==null || my_tb==undefined)
{
alert('InitSelectedItems-no textbox');
return;
}
	
			var array=window.dialogArguments
if(array==null || array==undefined || array=='')
return;


			var tb_obj=array[0]
			my_tb.value=tb_obj.value

			MarkItems(my_tb)
			//alert(my_tb.value)
			}
			

			
function MarkItems(my_tb){
if(my_tb==null)
{
alert('MarkItems-no textbox');
return;
}
	var my_keywords=my_tb.value	
				
	var arr = document.getElementsByTagName('INPUT');	//Get All Input In Form
		for(i=0;i<arr.length;i++)
		{
		var str = arr[i].type;		
		var str1 = str.indexOf("checkbox");	//If the Input Type is Radio Then
			if (str1 != -1)
			{						
				if (my_keywords.indexOf(";"+ arr[i].value +";")>=0)
				{
					arr[i].checked=true
				}					
			}
		}
	
}					
			
function SaveCheckedItems(my_tb){
	if(my_tb==null)
{
alert('SaveCheckedItems-no textbox');
return;
}			
	var keywords_str=";" //Important-Please Don't Touch!! 
	
	var arr = document.getElementsByTagName('INPUT');	//Get All Input In Form
		for(i=0;i<arr.length;i++)
		{
		var str = arr[i].type;		
		var str1 = str.indexOf("checkbox");	//If the Input Type is Radio Then
			if (str1 != -1)
			{						
				if (arr[i].checked==true)
				{
					keywords_str+= arr[i].value +";" //open tag
				}					
			}
		}
		my_tb.value=keywords_str

}	




function ReturnSelectedItems(my_tb){
try
{
SaveCheckedItems(my_tb);

var array=window.dialogArguments;

if(array[0] != null)
{
var tb_obj=array[0];
tb_obj.value=my_tb.value;
//alert(tb_obj.value);
parent.window.returnValue='OK';
}



parent.window.close();
}
catch(e)
{
alert('ReturnSelectedItems-error')
return ';';
}
}


function ShowFullList(PostGuid,ctl_type,id,is_filtered){

var path='/IDF/console/all_page.aspx';
//alert(path);
Redirect2Page('',path,'','current_posting=' + PostGuid,'ctl_type='+ctl_type,'id='+id,'filter='+is_filtered,'');

}

		


function OpenImg(guid){
window.open('/IDF/console/popup.aspx?guid='+guid,'Viewer','width=536,height=550,left=150,top=5,resizable=yes,scrollbars =yes');
}

function OpenOrgImgDesc(guid,original,desc){
window.open('/IDF/console/popup.aspx?guid='+guid+'&original='+original+'&desc='+desc,'Viewer','width=536,height=550,left=150,top=5,resizable=yes,scrollbars =yes');
}

function Redirect2Page(my_lang,post_url,title,parameter1,parameter2,parameter3,parameter4,back_guid)
 {
		try
		{
            if (post_url==null || post_url == "")
				return;

            var title_param  = ""
            var guid_param  = ""
            var lang_param  = "" //---שפת המסמך שתישלח אל המסמך
            var parameter1_param  = ""
            var parameter2_param  = ""
	    var parameter3_param  = ""

            var back_param  = ""

            if  (title != "") 
            {
               title_param = "&title=" + escape(title)

                if (post_url.indexOf("?") < 0) 
                    title_param = title_param.replace("&", "?")
                
                post_url += title_param
           }

            //--next_guid או prev_guid כאן השוני
            /*if (new_guid != "")
            {
                guid_param = "&guid=" + new_guid

                if (post_url.indexOf("?") < 0) 
                    guid_param = guid_param.replace("&", "?")
                
                post_url += guid_param
            }*/

            //---כתובת העמוד אליו יש לחזור
            if (back_guid != "" && back_guid !=undefined)
            {
                back_param = "&backguid=" + back_guid

                if (post_url.indexOf("?") < 0)
                    back_param = back_param.replace("&", "?")
                
                post_url += back_param
           }


            //---פרמטר נוסף שיתווסף אל העמוד
            if (parameter1 != "")
            {
                parameter1_param = "&" + parameter1

                if (post_url.indexOf("?") < 0)
                    parameter1_param = parameter1_param.replace("&", "?")
               
                post_url += parameter1_param
           }

            //---פרמטר נוסף שיתווסף אל העמוד
            if (parameter2 != "" )
            {
                parameter2_param = "&" + parameter2

                if (post_url.indexOf("?") < 0 )
                    parameter2_param = parameter2_param.replace("&", "?")
                
                post_url += parameter2_param
            }

//---פרמטר נוסף שיתווסף אל העמוד
            if (parameter3 != "" )
            {
                parameter3_param = "&" + parameter3

                if (post_url.indexOf("?") < 0 )
                    parameter3_param = parameter3_param.replace("&", "?")
                
                post_url += parameter3_param
            }
            
            //---פרמטר נוסף שיתווסף אל העמוד
            if (parameter4 != "" )
            {
                parameter4_param = "&" + parameter4

                if (post_url.indexOf("?") < 0 )
                    parameter4_param = parameter4_param.replace("&", "?")
                
                post_url += parameter4_param
            }
            //---השפה שתישלח אל העמוד
            if (my_lang != "") 
            {
                lang_param = "&lang=" + my_lang

                if (post_url.indexOf("?") < 0) 
                    lang_param = lang_param.replace("&", "?")
                
                post_url += lang_param
			}

            location.href=post_url;
         }  
        catch(e)
         {
			alert('Redirect2Page:Error!')
         }
   }





function OpenTypesInWindow(page_name,table,my_tb,my_lang,first_lbl,second_lbl,width,height){
if(my_tb==null)
		return;
		
		var array=new Array()
		array[0]=my_tb
		array[1]=first_lbl
		array[2]=second_lbl

	var path =page_name+'&lang='+my_lang; 
	if(table !='')
	    path=path +'&table='+table;
	var retVal=window.showModalDialog('/IDF/Dialog_Matefet.aspx?path='+ path,array,'dialogHeight:'+height+'px; dialogWidth:'+width+'px;  edge: Raised; center: yes; help: No; resizable: No; status: No;')
	return retVal;
	/*if(retVal !=undefined)
	txt_obj.value=retVal*/	
	//alert(my_tb.value)
}



function MailingList(){
window.showModalDialog('/IDF/Dialog_Matefet.aspx?path=console/mail_temporary.aspx','','dialogHeight: 570px; dialogWidth:570px;  edge: Raised; center: yes; help: No; resizable: No; status: No;');
}

function UKtoISO8601(St) //dd/mm/yyyy
 { return St.split('/').reverse().join('') }

  function UStoISO8601(St) //mm/dd/yyyy
 { return St.replace(/(\d+)\/(\d+)\/(\d+)/, '$3-$1-$2') }


function Trim(TRIM_VALUE){
if(TRIM_VALUE.length < 1){
return"";
}
TRIM_VALUE = RTrim(TRIM_VALUE);
TRIM_VALUE = LTrim(TRIM_VALUE);
if(TRIM_VALUE==""){
return "";
}
else{
return TRIM_VALUE;
}
} //End Function

function RTrim(VALUE){
var w_space = String.fromCharCode(32);
var v_length = VALUE.length;
var strTemp = "";
if(v_length < 0){
return"";
}
var iTemp = v_length -1;

while(iTemp > -1){
if(VALUE.charAt(iTemp) == w_space){
}
else{
strTemp = VALUE.substring(0,iTemp +1);
break;
}
iTemp = iTemp-1;

} //End While
return strTemp;

} //End Function

function LTrim(VALUE){
var w_space = String.fromCharCode(32);
if(v_length < 1){
return"";
}
var v_length = VALUE.length;
var strTemp = "";

var iTemp = 0;

while(iTemp < v_length){
if(VALUE.charAt(iTemp) == w_space){
}
else{
strTemp = VALUE.substring(iTemp,v_length);
break;
}
iTemp = iTemp + 1;
} //End While
return strTemp;
} //End Function


function isHour(s) {
    if (!(/^\d{2,2}:\d{2,2}$/.test(s))) { return false; }
    var a = s.split(":");
    a[0] = Number(a[0]);
    a[1] = Number(a[1]);
    return a[0] >= 0 && a[0] <= 23 &&
        a[1] >= 0 && a[1] <= 59;
}

var dtCh= '/';
var minYear=1900;
var maxYear=2100;

function UKtoISO8601(St) //dd/mm/yyyy
	{ return St.split('/').reverse().join('') }

function UStoISO8601(St) //mm/dd/yyyy
	{ return St.replace(/(\d+)\/(\d+)\/(\d+)/, '$3-$1-$2') }

function isInteger(s){
	var i;
	for (i = 0; i < s.length; i++){
	var c = s.charAt(i);
	if (((c < '0') || (c > '9'))) return false;
	}
	return true;
}

function stripCharsInBag(s, bag){
	var i;
	var returnString = '';
	for (i = 0; i < s.length; i++){
	var c = s.charAt(i);
	if (bag.indexOf(c) == -1) returnString += c;
	}
	return returnString;
}

function daysInFebruary (year){
	return (((year % 4 == 0) && ( (!(year % 100 == 0)) || (year % 400 == 0))) ? 29 : 28 );
}

function DaysArray(n) {
	for (var i = 1; i <= n; i++) {
	this[i] = 31
	if (i==4 || i==6 || i==9 || i==11) {this[i] = 30}
	if (i==2) {this[i] = 29}
	}
	return this
}

function isDate(dtStr){
    if (dtStr=='')
    return true
    var daysInMonth = DaysArray(12)
    var pos1=dtStr.indexOf(dtCh)
    var pos2=dtStr.indexOf(dtCh,pos1+1)
    var strDay=dtStr.substring(0,pos1)
    var strMonth=dtStr.substring(pos1+1,pos2)
    var strYear=dtStr.substring(pos2+1)
    strYr=strYear
    if (strDay.charAt(0)=='0' && strDay.length>1) strDay=strDay.substring(1)
    if (strMonth.charAt(0)=='0' && strMonth.length>1) strMonth=strMonth.substring(1)
    for (var i = 1; i <= 3; i++) {
    if (strYr.charAt(0)=='0' && strYr.length>1) strYr=strYr.substring(1)
    }
    month=parseInt(strMonth)
    day=parseInt(strDay)
    year=parseInt(strYr)
    if (pos1==-1 || pos2==-1){
    alert('dd/mm/yyyy :התאריך צריך להיות בפורמט')
    return false
    }
    if (strMonth.length<1 || month<1 || month>12){
    alert('נא להקליד חודש חוקי')
    return false
    }
    if (strDay.length<1 || day<1 || day>31 || (month==2 && day>daysInFebruary(year)) || day > daysInMonth[month]){
    alert('נא להקליד יום חוקי')
    return false
    }
    if (strYear.length != 4 || year==0 || year<minYear || year>maxYear){
    alert('נא להקליד שנה חוקית בת 4 ספרות בין '+minYear+' ל- '+maxYear )
    return false
    }
    if (dtStr.indexOf(dtCh,pos2+1)!=-1 || isInteger(stripCharsInBag(dtStr, dtCh))==false){
    alert('נא להקליד תאריך חוקי')
    return false
    }
    return true
    }

function IsNumeric(sText)
{
    var ValidChars = '0123456789';
    var IsNumber=true;
    var Char;
    for (i = 0; i < sText.length && IsNumber == true; i++)
    {
    Char = sText.charAt(i);
    if (ValidChars.indexOf(Char) == -1)
    {
    IsNumber = false;
    }
    }
    return IsNumber;
}

function FormatYear(obj)
{
    var array=obj.value.split('/')
    if(array.length != 3)
    return false
    if( ! IsNumeric(array[0]) |  ! IsNumeric(array[1]) | ! IsNumeric(array[2]))
    return false
    var j,temp
    temp=''
    for (j = 0; j < 2; j++)
    {
    if (array[j].length ==1  )
    temp += '0'+ array[j] +'/'
    else if (array[j].length ==2  )
    temp += array[j] +'/'
    else
    return false
    }
    if (array[2].length == 2)
    temp += '20'+ array[j]
    else if (array[2].length ==4  )
    temp += array[j]
    else
    return false
    obj.value=temp
}


if (document.addEventListener){
        document.addEventListener('keydown', checkKey, false);
      }
      else if (document.attachEvent)
      {
      document.attachEvent('onkeydown', checkKey);
      }

      var started=true;
      var enter_pressed=0;

      var code=''
      
      function checkKey(e)
      {
 
         if (!e) var e = window.event;

        if (e.keyCode)
        { code = e.keyCode; }
        else if (e.which)
        { code = e.which; }
        
       // alert(code)

        if (code == 19 )
        {
          StopStartMarquee(started);
/*if(started==true)
started=false;
else
started=true;*/
	 started = !started;	
	

        }
	
	if (code == 13  )
        {
       
		var my_search_tb=document.getElementById('search_tb');

		if(my_search_tb ==null)
			return;
		if(document.all)
			 my_search_tb.blur();
		enter_pressed+=1;
		//if(enter_pressed==3)
		/*if(document.getElementById('db_search_btn') !=null)
		    return;*/
		 var SrcElement=null;
		    if(document.all)
		        SrcElement=e.srcElement;
		        else 
		        SrcElement=e.target;
		    
		if(SrcElement !=null && SrcElement.id!=null && SrcElement.id=="search_tb" )
        	 	DoSearch(document,my_search_tb,search_msg,not_enough_search_msg);
	}
       
        
      }
      
      
      function StopStartMarquee(started)
      {
      
//stop start marquees
        var marquee = document.getElementsByTagName('marquee');
        for (i=0; i < marquee.length; i++)
         {
          if (started)
          {
           // alert(started)
           marquee[i].stop();
          }
          else
          {
          // alert(started)
            marquee[i].start();
          
          }
         //
         }

//stop start objects
if(document.all)
         try
{
          var marquee = document.getElementsByTagName('object');
        for (i=0; i < marquee.length; i++)
         {
          if (started)
          {
           // alert(started)
           marquee[i].stop();
          }
          else
          {
          // alert(started)
           marquee[i].play();
          
          }
         //
         }
}
catch(e)
{

}

      }
      
      function ReplaceAll(str,old,new_ch){
//alert(str.indexOf(old))
while(str.indexOf(old) >= 0)
{
	str=str.replace(old,new_ch);
}
return str
}

if (window.addEventListener){
        window.addEventListener('load', DuplicateHPMarquees, false);
      }
      else if (window.attachEvent)
      {
      window.attachEvent('onload', DuplicateHPMarquees);
      }
      
      function DuplicateHPMarquees()
      {
      
        var marquee_2_duplicate=document.getElementById('postings_by_data1_marquee');

        if(marquee_2_duplicate!=null)
        {
            marquee_2_duplicate.innerHTML= marquee_2_duplicate.innerHTML+ marquee_2_duplicate.innerHTML+ marquee_2_duplicate.innerHTML+ marquee_2_duplicate.innerHTML+ marquee_2_duplicate.innerHTML+ marquee_2_duplicate.innerHTML+ marquee_2_duplicate.innerHTML+ marquee_2_duplicate.innerHTML;
           
        }
        
        var marquee_2_duplicate2=document.getElementById('postings_by_data2_marquee');

        if(marquee_2_duplicate2!=null)
        {
            marquee_2_duplicate2.innerHTML= marquee_2_duplicate2.innerHTML+ marquee_2_duplicate2.innerHTML+ marquee_2_duplicate2.innerHTML+ marquee_2_duplicate2.innerHTML+ marquee_2_duplicate2.innerHTML+ marquee_2_duplicate2.innerHTML+ marquee_2_duplicate2.innerHTML+ marquee_2_duplicate2.innerHTML;
            
        }
      }

function SetFrameHeight(obj)
  { 
    //debugger
   if(obj==null)
   {
    	return;
   }
   if (obj.src=='') 
   { 
    	return;
   } 
   if(obj.src!='' && obj.readyState == 'complete') 
   { 
        if(obj.childNodes[0]=='Microsoft Web Browser Control') 
        {
            obj.height=800;
        } 
         
        else 
        { 
            //if (obj.contentWindow.document.body==null)
            //return;
            //var x=obj.contentWindow.document.body.scrollHeight;
            var body = document.getElementById('bodyMain');
            if (body == null)
                return;
            var x = body.scrollHeight;
            obj.height=x-100;
        } 
   } 
  }
 
function geturl()
{
//debugger
var url;
var str1ss;
var str;
var iframe;
srt1ss = document.getElementById('_ctl0_body_txt');
if (srt1ss == null)
return;
//alert(document.getElementById('_ctl0_body_txt').value);
str=encodeURIComponent(document.getElementById('_ctl0_body_txt').value);
iframe = document.getElementById('search');
url="http://search1.gov.il/govframe?query="+str
if (iframe == null)
return;
iframe.src = url;
//return url;
}


