﻿
function TradeOnline(pagetitle) {
    try {
        _gaq.push(['_trackEvent', 'Israel Trade', 'Press', pagetitle]);
    }
    catch (err) {
        //Handle errors here
    }
        
    
        var h = window.screen.availHeight - 30;    //The window height
        var w = window.screen.width - 10;                  //The window width
        var t = 0; //The window's distance from the top of the screen
        var l = 0; //The window's distance from the left of the screen
        
        var win1 = window.open("https://ibiold.ordernet.co.il/Opener/Opener.asp?c=106&w=" + window.screen.width + "&h=" +
                                    window.screen.availHeight, "ordernet", "width=" + w + ",height=" + h + ",top=" + t + ",left=" + l +
                                     ",fullscreen=no,toolbar=no,location=no,status=no,menubar=no,scrollbar=no,resizable=no", "replace=true");
       // win1.focus();
    }
    function TradeOnlineQuery(pagetitle) {
        try {
            _gaq.push(['_trackEvent', 'לצפייה בתיק ההשקעות האישי', 'CustomerPress', pagetitle]);
        }
        catch (err) {
            //Handle errors here
        }
        
      
    
        var h = window.screen.availHeight - 30;    //The window height
        var w = window.screen.width - 10;                  //The window width
        var t = 0; //The window's distance from the top of the screen
        var l = 0; //The window's distance from the left of the screen
        var win1 = window.open("https://query.ordernet.co.il/Opener/Opener.asp?c=106&w=" + window.screen.width + "&h=" +
                                    window.screen.availHeight, "ordernet", "width=" + w + ",height=" + h + ",top=" + t + ",left=" + l +
                                     ",fullscreen=no,toolbar=no,location=no,status=no,menubar=no,scrollbar=no,resizable=no", "replace=true");
        //win1.focus();
    }

    function CheckBoxListSelect(cbControl, state) {
        var chkBoxList = document.getElementById(cbControl);
        var chkBoxCount = chkBoxList.getElementsByTagName("input");
        for (var i = 0; i < chkBoxCount.length; i++) {
            chkBoxCount[i].checked = state;
        }

        return false;
    }
    
