// Global user functions
function BV_show() {             
  var val1 = document.getElementById("x_Child1_Fullname").value;
  var val2 = document.getElementById("x_Child2_Fullname").value;
  var val3 = document.getElementById("x_Child3_Fullname").value;
  var val4 = document.getElementById("x_Child4_Fullname").value;
  if (val1 != "") { // a name was selected
    var choice1 = document.getElementById("x_Child1_BV_Choice_1").value;
    var choice2 = document.getElementById("x_Child1_BV_Choice_2").value;
    if ((choice1 == "" ) || (choice2 =="")) { // either not selected
      alert ("Hari Om !! For Child-1 please select Bala Vihar Session Choice-1 and Choice-2 to proceed further");
      return false; 
  }           
  }
   if (val2 != "") { // a name was selected
    var choice1 = document.getElementById("x_Child2_BV_Choice_1").value;
    var choice2 = document.getElementById("x_Child2_BV_Choice_2").value;
    if ((choice1 == "" ) || (choice2 =="")) { // either not selected
      alert ("Hari Om !! For Child-2 please select Bala Vihar Session Choice-1 and Choice-2 to proceed further");      
      return false; 
     }           
  }
   if (val3 != "") { // a name was selected
    var choice1 = document.getElementById("x_Child3_BV_Choice_1").value;
    var choice2 = document.getElementById("x_Child3_BV_Choice_2").value;
    if ((choice1 == "" ) || (choice2 =="")) { // either not selected
      alert ("Hari Om !! For Child-3 please select Bala Vihar Session Choice-1 and Choice-2 to proceed further");      
      return false; 
     }           
  }
   if (val4 != "") { // a name was selected
    var choice1 = document.getElementById("x_Child4_BV_Choice_1").value;
    var choice2 = document.getElementById("x_Child4_BV_Choice_2").value;
    if ((choice1 == "" ) || (choice2 =="")) { // either not selected
      alert ("Hari Om !! For Child-4 please select Bala Vihar Session Choice-1 and Choice-2 to proceed further");      
      return false; 
    }        
  }    
  return true;
}    
         
function SessionChoice1(sel)
{
    var ch2 = sel.form.x_Session_Choice_2;
    ch2.options.length = 0;
    ch2.options[0] = new Option("Please select","");
    for ( var i = 1; i < sel.options.length; ++i )
    {
        var opt = sel.options[i];
        if ( ! opt.selected )
        { 
            ch2.options[ch2.options.length] = 
                new Option( opt.text, opt.value );
        }
    }
    sel.form.Child1_BV_Choice_1.value = sel.options[sel.selectedIndex].value;
    sel.form.Child1_BV_Choice_2.value = "";
}
function SessionChoice2(sel)           
{
    sel.form.x_Session_Choice_2.value = sel.options[sel.selectedIndex].value;
}


       


