﻿  function ClientSideFun_City(DDLCountry,DRPList,TextCity,TextPhCntry, TextPhSTD, TextPhone,TextMbCntry, TextMobile, TextEmail,LblCity)
         {
           var DDlcntry = document.getElementById(DDLCountry);      
            var CityText = document.getElementById(TextCity);      
            var DDLCity = document.getElementById(DRPList); 
            var SelectedText=DDLCity.options[DDLCity.selectedIndex].text;            
            var PhCountryCode =document.getElementById(TextPhCntry);  
            var PhSTDCode =document.getElementById(TextPhSTD);  
            var Phone =document.getElementById(TextPhone);  
            var MbCountryCode=document.getElementById(TextMbCntry);  
            var Mobile =document.getElementById(TextMobile); 
            var Email  =document.getElementById(TextEmail); 
            
            var LableCity =document.getElementById (LblCity );
            if (SelectedText == "--- Select ---")
            {
               LableCity.innerText ="";
               CityText.className="Vsl";
               PhCountryCode.disabled= true ;
               PhSTDCode.disabled= true ;
               Phone.disabled= true ;
               MbCountryCode.disabled= true ;
               Mobile.disabled= true ;
               Email.disabled=true;
            }
            else if (SelectedText == "Other")
            {
               LableCity.innerText ="";
               CityText.className="Vslbl";
               PhCountryCode.disabled= true ;
               PhSTDCode.disabled= true ;
               Phone.disabled= true ;
               MbCountryCode.disabled= true ;
               Mobile.disabled= true ;
               Email.disabled=true;
            }
            else 
            {
               LableCity.innerText ="";
               CityText.className="Vsl";
               PhCountryCode.disabled= false ;
               PhSTDCode.disabled= false  ;
               Phone.disabled= false  ;
               MbCountryCode.disabled= false ;
               Mobile.disabled= false  ;
               Email.disabled=false ;
            }
         }  

         
       
         
         
        function BindState(CMBState,CMBCity,TXTState,CallBtn,TextPhCntry ,TextCity,TextPhSTD, TextPhone,TextMbCntry, TextMobile, TextEmail,LblStt)
        {
            var DDLCity = document.getElementById (CMBCity);
            var TxtStt =  document.getElementById (TXTState);
            var DDLState = document.getElementById (CMBState);
            var DDLString = DDLState.options[DDLState.selectedIndex].text;
            
            var PHCountry = document.getElementById (TextPhCntry);
            var TXTCity = document.getElementById (TextCity);
            var PHSTD = document.getElementById (TextPhSTD);
            var Phone = document.getElementById (TextPhone);
            var MBCountry = document.getElementById (TextMbCntry);
            var Mobile = document.getElementById (TextMobile);
            var Email = document.getElementById (TextEmail);
             
             var LableState = document.getElementById (LblStt);
             
             DDLCity.selectedIndex=0;
            
            if (DDLString == "--- Select ---")
            {   
            LableState.innerText ="";            
                TxtStt.className="Vsl";
                DDLCity.disabled=true;
                PHCountry.disabled=true;
                TXTCity.className="Vsl";
                PHSTD .disabled=true;
                Phone.disabled=true;
                MBCountry.disabled=true;
                Mobile.disabled=true;
                Email.disabled=true;            
            }
            else if (DDLString == "Other")
            {
            LableState.innerText ="";
                DDLCity.disabled=true;
                TxtStt.className="visible";
                PHCountry.disabled=true;
                TXTCity.className="Vsl";
                PHSTD .disabled=true;
                Phone.disabled=true;
                MBCountry.disabled=true;
                Mobile.disabled=true;
                Email.disabled=true;   
                TxtStt.focus();
            }
            else 
            {
            LableState.innerText ="";
             TxtStt.className="Vsl";
             DDLCity.disabled=false ;
             var BntSTT = document.getElementById (CallBtn).click();
            }
        }
        
        
        
        function BindCountry(CMBCountry,CMBState,CMBCity,TXTCntry,CallBtn,TextStt,TextPhCntry ,TextCity,TextPhSTD, TextPhone,TextMbCntry, TextMobile, TextEmail,LblCntry)
        {
            var DDLCountry = document.getElementById (CMBCountry);
            var DDLState = document.getElementById (CMBState);
            var DDLCity = document.getElementById (CMBCity);
            var TxtCountry =document.getElementById (TXTCntry);
            var DDLString = DDLCountry.options[DDLCountry.selectedIndex].text;
            
            var TXTStt = document.getElementById (TextStt);
            var PHCountry = document.getElementById (TextPhCntry);
            var TXTCity = document.getElementById (TextCity);
            var PHSTD = document.getElementById (TextPhSTD);
            var Phone = document.getElementById (TextPhone);
            var MBCountry = document.getElementById (TextMbCntry);
            var Mobile = document.getElementById (TextMobile);
            var Email = document.getElementById (TextEmail);
            
            var LabelCountry = document.getElementById (LblCntry);
            
            DDLState.selectedIndex=0;
            DDLCity.selectedIndex=0;
            
            if (DDLString == "--- Select ---")
            {
                LabelCountry.innerText ="";
                DDLCity.disabled=true;
                DDLState.disabled=true;
                TxtCountry.className="Vsl";
                
                TXTStt.className="Vsl";
                 PHCountry.disabled=true;
                TXTCity.className="Vsl";
                PHSTD .disabled=true;
                Phone.disabled=true;
                MBCountry.disabled=true;
                Mobile.disabled=true;
                Email.disabled=true;           
            } 
            else if (DDLString == "Other")
            {
                LabelCountry.innerText ="";
                DDLCity.disabled=true;
                DDLState.disabled=true;
                TxtCountry.className="visible";               
                
                TXTStt.className="Vsl";
                PHCountry.disabled=true;
                TXTCity.className="Vsl";
                PHSTD .disabled=true;
                Phone.disabled=true;
                MBCountry.disabled=true;
                Mobile.disabled=true;
                Email.disabled=true;   
                
                 TxtCountry.focus();        
            } 
            else 
            {
                LabelCountry.innerText ="";
                DDLCity.disabled=true;
                DDLState.disabled=false;
                TxtCountry.className="Vsl";
                var CallFunction = document.getElementById(CallBtn).click();
            }          
        } 
         
         
         
        
         
         
         
      
