// JScript File

    
            function openPopup(strpath)
            { 
             window.open(strpath,"","status=1, width=800, height=920, menubar=no,resizable=no,scrollbars=yes");       
            }
           
           //----------pop up for video site
            function openvideoPopup(strpath)
            { 
             window.open(strpath,"","status=1, width=524, height=486, menubar=no,resizable=no,scrollbars=yes");       
            }
            
            //------------------------------code adde by sachin for branch locater
            function cityChange1(elementThis)
            {

         
                for (var  i=1;i<elementThis.length;i++)
                {
                    if(elementThis.options[i].selected)
                    {
                       
            GB_showCenter("Branch Locator","http://www.angelcommodities.com/contact_us/branch_index.aspx?city="+elementThis.options[i].text,200,520);
                    }
                }
            }
            

            
            function cityChange(elementThis)
            {
           // alert('testt');
        //  alert(elementThis.id);
                for (var  i=1;i<elementThis.length;i++)
                {
                    if(elementThis.options[i].selected)
                    {
                        window.open ("http://www.angelbroking.com/branch_index.aspx?city="+elementThis.options[i].text,
            "mywindow","menubar=0,resizable=0,width=600,height=350,status=0,location=0,directories=0,scrollbars=1");
                    }
                }
            }
            
            
            
            function MarketPopup(Strschtxt,id)
            {
 
               //window.open ("http://www.angelbroking.cmlinks.com/profiles/CompSearch.aspx?schtxt="+Strschtxt+"&id="+id,"mywindow","menubar=0,resizable=0,width=780,height=700,status=0,location=0,directories=0,scrollbars=1");
               
                    window.open ("markets/get_Quotes.aspx?schtxt="+Strschtxt+"&id="+id,"mywindow","menubar=0,resizable=0,width=780,height=700,status=0,location=0,directories=0,scrollbars=1");
              
            }            
            
            
              
            
            function MarketMenuPopup(Strlink)
            {
 
               window.open (Strlink,"mywindow","menubar=0,resizable=0,width=780,height=700,status=0,location=0,directories=0,scrollbars=1");
                 
            }            
               function VideoPopup(Strlink)
            {
 
               window.open (Strlink,"mywindow","menubar=0,resizable=0,width=520,height=445,status=0,location=0,directories=0,scrollbars=1");
                 
            }          
            
                    
            function MM_openBrWindow(theURL,winName,features) { //v2.0
                    window.open(theURL,winName,features);
            }       
            
            function currencyPopup(Strlink)
            {
 
               window.open (Strlink,"mywindow","menubar=0,resizable=0,width=261,height=306,status=0,location=0,directories=0,scrollbars=0");
                 
            }   
 
              function GlobalIndicesPopup(Strlink)
             {
 
               window.open (Strlink,"mywindow","menubar=0,resizable=0,width=332,height=480,status=0,location=0,directories=0,scrollbars=0");
             }

               
               function popup() 
               {
               
              // alert('test');
                 window.open ('markets/market.html',"mywindow","menubar=0,resizable=0,width=783,height=768,status=0,location=0,directories=0,scrollbars=1");

                }
                
                 function NRIOpenAccount(Strlink)
            {
   
 
               window.open (Strlink,"mywindow","menubar=0,resizable=0,width=485,height=610,status=0,location=0,directories=0,scrollbars=0");
                 
            }  
 function Selectmenu()
  {
  var x=document.getElementById("select")
    <!--alert(x.value)-->
  
   if(x.value=="Select")
    {
 		 alert("Please Select Login type")
    }
	

  if(x.value!="Select")
    {
 		 window.open(x.value)
    }
  
  }
    
 
