// *** print green var e_counter = new function() { this.t = new Date() this.groups = [] this.count = function(e,g,d,src) { try {if (disable_e_counter) {return}} catch(ex) {} var i for(i=0; i < this.groups.length ;i++) { if (this.groups[i].g == g) { if (this.groups[i].e == e) {return} break } } if (i == this.groups.length && arguments.length > 2 && d == e) { this.groups[i] = new function() {this.g = g; this.e = e} return } if (!('' + e).match(/^--/)) {this.groups[i] = new function() {this.g = g; this.e = e}} var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest() x.open("GET","/e_counter.ashx?e=" + escape(('' + e).replace(/^--/,'')) + '&g=' + escape(g) + '&t=' + this.t.getTime(),true); x.send(null) if (src) { try {_gaq.push(['_trackEvent', src, g, e]);} catch(ex) { //alert("eror:" + e + "-" + g + "-" + d + "-" + src) } } } } function c_titledata(t,d) {this.title = t; this.data = d} function mpad(m,x) {return (m > 1) ? (m + (x % m)).toString().replace(/^1/,'') : x} function in_list(item,list) {for(var i in list) {if (item == list[i]) {return i}} return -1} function bin_list(item,list) {return in_list(item,list) > -1} function get_by_title(t,a) {for(var i in a) {if (t == a[i].title) {return a[i]}} return null} function merge(t,d) { var s = ""; for(var i=0; i < d.length ;i++) {s += t[i] + d[i]} return s + ((t.length > d.length) ? t[d.length] : '') } function append_array(ta,a) {for(var i=0; i < a.length ;i++) {ta[ta.length] = a[i]} return ta} function radio_value(name) { var a = document.getElementsByName(name) for(var i=0; i < a.length ;i++) {if (a[i].checked) return a[i].value} return '' } function selected_value(id) { var s = document.getElementById(id) return s.options[s.options.selectedIndex].value } function dw(m) {document.write(m)} function dbg(v) {alert(v); return v} function keyed(e) {return window.ActiveXObject ? event.keyCode : 0} function TypesFields(p_Type, p1, p2, p3, p4, p5, p6, p7, p8, p9) { // competability this.p_Type = p_Type this.Feeder = p1 this.ExchangeID = p2 this.PortfolioType = p3 this.TypeID = p4 this.WhatType = p5 this.TypeName_EN = p6 this.TypeName_HE = p7 this.InstrumentID = p8 this.IndexMode = p9 } function windows1255(s) { function hexdigit(n) {return '0123456789abcdef'.substring(n,n+1)} function hex(n) {return (n < 16 ? '' : hex(Math.floor(n / 16))) + hexdigit(n % 16)} var t = ""; for(var i=0; i < s.length ;i++) { var ch = s.charCodeAt(i); if (ch == 32) {t += '%20'; continue} t = t + '%' + hex(224 + (ch - 'א'.charCodeAt(0))) } return t } function view_selected(caller) { var url = caller.options[caller.selectedIndex].value caller.selectedIndex = 0 if (url) {location.href = url} } function search_find() {window.open ('http://www.find.co.il/redirsrch.asp?uid=221&sourceid=300&searchstring=' + document.getElementById("query_for_find").value,"find")} /* function search_site(){ function sr(e,f,q,w,t) { location.href = g.url.fsr + '?ExchangeID=' + e + '&Feeder=' + f + '&WhatType=' + w + '&TypeID=' + t + '&strToSearch=' + escape(q.match(/^\s*$/) ? 'א' : q)} var e = document.getElementById("site_search_selector") e.blur() var v = e.options[(arguments.length > 0) ? s : e.selectedIndex].value; if (arguments.length == 0) {e.selectedIndex = 0} var q = document.getElementById("query_for_site").value if (v == 'ny') {return sr(4,1,q,2,2)} if (v == 'ta') {return sr(45,0,q,1,6)} location.href = g.url.a + (q.match(/^\s*$/) ? "/" : '/query.asp?searchQuery=' + q + '&count=10&field=0&period=0&status=All') } */ function search_site_new(ind,search_type){ function sr(e,f,q,w,t) {top.location.href = g.url.fsr + '?ExchangeID=' + e + '&Feeder=' + f + '&WhatType=' + w + '&TypeID=' + t + '&strToSearch=' + escape(q.match(/^\s*$/) ? 'א' : q)} var e = document.getElementById("site_search_selector"); e.blur() //var v = e.options[(arguments.length > 0) ? s : e.selectedIndex].value var v = e.value //if (arguments.length == 0) {e.value = 0} var q = escape(document.getElementById("query_for_site").value) if (v == 'ny') {return sr(4,1,q,2,2)} if (v == 'ta') {return sr(45,0,q,1,6)} var status = "All" if (ind == 2) {status = "-archive"} if (ind == 5) {status = "archive"} if (arguments.length < 2 || (ind != 1 && ind != 2 && ind != 5)) {search_type = 'searchQuery'} var url = g.url.a + (q.match(/^\s*$/) ? "/" : '/query.asp?' + search_type + '=' + q + '&count=10&field=0&period=0&status=' + status + '&id=' + ind) // alert(arguments.length + '\nind=' + ind + ' ; (ind != 1 && ind != 2 && ind != 5) == ' + (ind != 1 && ind != 2 && ind != 5) + '\n' + search_type + '\n' + url) top.location.href = url } function proximate_ta_time() { var n = new Date() if (typeof(server_datetime) != 'undefined') {return server_datetime} var serverTimezoneOffset = -120 n.setTime(n.getTime() + ((serverTimezoneOffset - n.getTimezoneOffset()) * 60 * 1000)) return n } function show_full_date() { try { //var dow = ["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת"] var dow = ["יום א'","יום ב'","יום ג'","יום ד'","יום ה'","יום ו'","שבת"] var Localdate = cta_time.getDate() + "." + (cta_time.getMonth()+ 1) + "." + (2000 + (cta_time.getYear() % 100)) var LocalDay = dow[cta_time.getDay()] document.getElementById("date_in_israel_new").innerHTML = '' + '' + '' + '' + '' + '
' + LocalDay + ', ' + Localdate + '
' } catch(ex) {//alert("full_date " + ex.toString()) } } function update_timediv() { try { document.getElementById("hm_in_israel").innerHTML = mpad(100,cta_time.getHours()) + ':' + mpad(100,cta_time.getMinutes()) document.getElementById("hm_in_ny").innerHTML = mpad(100,cny_time.getHours()) + ':' + mpad(100,cny_time.getMinutes()) } catch(ex) {} } function update_datetime() { if (typeof(cta_time) == "undefined") { cta_time = proximate_ta_time() cny_time = new Date(cta_time.getTime() + ny_offset * 60 * 60 * 1000) } show_full_date() update_timediv() cta_time.setTime(cta_time.getTime() + 60000) cny_time.setTime(cny_time.getTime() + 60000) window.setTimeout('update_datetime()', 60000) } function parent_by_tag(e,t) { for(e = e.parentNode ; e != null ;e = e.parentNode) { if (e.tagName == t) {return e} } return null } function pair_value(a,name) { try { var lname = name.length for(var i in a) {if (a[i].replace(/^\s*/,'').substring(0,lname + 1) == name + '=') {return a[i].replace(/^\s*/,'').substring(lname + 1)}} } catch(ex) {} return null } function cookie_value(name) {return pair_value(document.cookie.split(';'),name)} function subcookie_value(name,subname) { var value = cookie_value(name) return (value == null) ? null : pair_value(value.split('&'),subname) } function addInstrument_new(instrumentID, name, symbol, feeder, portfolioID) { var url = "/portal/ContentManager.aspx?" + "Instrument_ID=" + instrumentID + "&popup_id=buysale" + "&feeder="+ feeder + "&nameheb=" + name window.open( '/pay/login.asp?mode=wizard&p_backTo=' + escape(url) ,"", "location=no,toolbar=no,menubar=no,status=yes,scrollbar=no, resizable=no , width=560,height=480") } function BrandsWindowOpen(year) { var fileName = "default"; if (year != null) fileName = "brands" + year; window.open("/globessites/brands/"+fileName+".aspx", "brand", "toolbar=no,width=800,height=710,status=no,scrollbars=no,resizable=no left="+(screen.width-800)/2+",top=5"); } function brandswindowopen(year) { var fileName = "default"; if (year != null) fileName = "brands" + year; window.open("/globessites/brands/"+fileName+".aspx", "brand", "toolbar=no,width=800,height=710,status=no,scrollbars=no,resizable=no left="+(screen.width-800)/2+",top=5"); } function openLadyGlobesWin() { window.open("/globessites/brands/LadyGlobes.aspx", "LadyGlobes", "toolbar=no,width=800,height=650,status=no,scrollbars=no,resizable=no left="+(screen.width-800)/2 +",top=5") } function openLadyGlobes2008Win() { window.open("/globessites/brands/LadyGlobes2008.aspx", "LadyGlobes2008", "toolbar=no,width=800,height=700,status=no,scrollbars=no,resizable=no left="+(screen.width-800)/2 +",top=5") } function openTop50OfTheYearWin() { window.open("/globessites/brands/Top50OfTheYear.aspx", "Top50OfTheYear", "toolbar=no,width=800,height=650,status=no,scrollbars=no,resizable=no left="+(screen.width-800)/2 +",top=5") } function G40windowOpen(year) { var fileName = "40x40"; if (year != null) fileName = "40x40_" + year; window.open("/globessites/brands/"+fileName+".aspx", "40x40", "toolbar=no,width=800,height=650,status=no,scrollbars=no,resizable=no left="+(screen.width-800)/2+",top=5"); } function firmaWindowOpen(year) { var fileName = "FirmaTop100_2008"; if (year != null) fileName = "FirmaTop100_" + year; window.open("/globessites/brands/"+fileName+".aspx", "FirmaTop100", "toolbar=no,width=800,height=700,status=no,scrollbars=no,resizable=no left="+(screen.width-800)/2+",top=5"); }