function popup() {
//windowOne=window.open('http://www.naviaonline.cmlinks.com/ipoonline/client/clientlogin.aspx?X','window1','width=700,height=500,left=100,top=100,toolbar=No,location=No,scrollbars=yes,status=No,resizable=yes,fullscreen=no');
windowTwo=window.open('ltpopup.html','window2','width=632,height=405,left=200,top=130,toolbar=No,location=No,scrollbars=No,status=No,resizable=yes,fullscreen=no');
}

function pdfop(url)
{
    window.open(url);
}

function NewWindow() {

    //window.open('http://www.naviaonline.cmlinks.com/mfonline/mfclient/clientlogin.aspx?X','window1','width=1010,height=550,left=0,top=10,toolbar=No,location=No,scrollbars=yes,status=No,resizable=yes,fullscreen=no');

    //window.open("http://www.naviamarkets.com/popup.html")
    
    windowTwo=window.open('popup.html','window2','width=632,height=610,left=200,top=50,toolbar=No,location=No,scrollbars=No,status=No,resizable=yes,fullscreen=no');
}


function Ebroke(id)
{
    for(var i=1;i<=8;i++)
    {
        document.getElementById("td_"+i).style.display="none";
        document.getElementById("MunuHead"+i).className="MnuHeadOff";
    
        if(i == "4")
        {
            document.getElementById("MunuHead4").className="SubMnu";
        } 
        else if(i == "5")
        {
            document.getElementById("MunuHead5").className="SubMnu";
        }   
        else if(i == "6")
        {
            document.getElementById("MunuHead6").className="SubMnu";
        }  
    }
    document.getElementById("td_"+id).style.display="inline";
    document.getElementById("MunuHead"+id).className="MnuHeadOn";
    
    
    if(id == "1")
    {
       document.getElementById("img_Ecom").src="Images/ebrokingtext.gif";
    }
    else if(id=="2")
    {
       document.getElementById("img_Ecom").src="Images/whynaviatext.gif"; 
    }
    else if(id=="3")
    {
       document.getElementById("img_Ecom").src="Images/nritradingtext.gif"; 
    }
    else if(id=="4")
    {
       document.getElementById("img_Ecom").src="Images/basictradetext.gif"; 
    }
    else if(id=="5")
    {
       document.getElementById("img_Ecom").src="Images/powertradetext.gif"; 
    }
    else if(id=="6")
    {
       document.getElementById("img_Ecom").src="Images/naviaanywheretext.gif"; 
    }
    else if(id=="8")
    {
       document.getElementById("img_Ecom").src="Images/Download.gif"; 
    }
    else 
    {
       document.getElementById("img_Ecom").src="Images/ebrokingtext.gif"; 
    }
    
    
}
  
  
   function ChkNum()
    {

    if(event.keyCode >=48 && event.keyCode <=57 || event.keyCode == 46 || event.keyCode == 13 || event.keyCode == 32 || event.keyCode == 45)
    {
    return true;
    }
    else
    {
//  alert("Please enter only digit.");
    return false;
    }
    }
    
  function EborkeOpen()
{
    window.open("OpenAnnwin.aspx","win","status = 1, height = 288, width =234, resizable = 0,scrollbars=0, left=200,top=200");
}                                                       







function EborkeOpenAcc()
{	

var winheight=180
var winwidth=280
var pop=null
step=2;
	 var a = 95;
	 var NewsUrl = "OpenAnnwin.aspx";
		height=289;
	    width=252;
	          LeftPosition=(screen.width)?(screen.width-width)/2:100;
              TopPosition=(screen.height)?(screen.height-height)/2:100;
              paramstp="height="+winheight+",width="+winwidth+",top="+TopPosition+
              ",left="+LeftPosition+",scrollbars=no,location=no"+
              ",directories=no,status=no,menubar=no,toolbar=no,resizable=0"
              
              pop=window.open(NewsUrl,name,paramstp);
             x = y = step
             x=0;
            var z = 1
            while (z < a) {
            pop.resizeBy (x, y)
            z++;
   

}
 if(pop.focus){pop.focus();} 
}

//open commodity account


function EborkeOpenComm()
{	

var winheight=160
var winwidth=380
var pop=null
step=2;
	 var a = 123;
	 var NewsUrl = "OpenCommodity.aspx";
		height=389;
	    width=352;
	          LeftPosition=(screen.width)?(screen.width-width)/2:100;
              TopPosition=(screen.height)?(screen.height-height)/2:100;
              paramstp="height="+winheight+",width="+winwidth+",top="+TopPosition+
              ",left="+LeftPosition+",scrollbars=no,location=no"+
              ",directories=no,status=no,menubar=no,toolbar=no,resizable=0"
              
             // pop=window.open(NewsUrl,name,paramstp);
             x = y = step
             x=0;
            var z = 1
            while (z < a) {
            self.resizeBy (x, y)
            z++;
   

}
 //if(pop.focus){pop.focus();} 
}
