            
            function retrieveCounselorCollegeOptions(){
                var req1;
                var secondBox = document.getElementById('university');
                var selectedOption1 = secondBox.options[secondBox.selectedIndex].value;
                
                if(selectedOption1==0)
                    {
                        document.getElementById('university').options[0]= new Option('Select','Select');   
                    }
               
               
                var url="./counsCollegeDisplay.do?selectedOption1="+selectedOption1;
              
                //Do the Ajax call
                try
                {
                    // Firefox, Opera 8.0+, Safari
                    req1=new XMLHttpRequest();
                }
                catch (e)
                {
                    // Internet Explorer
                    try
                    {
                        req1=new ActiveXObject("Msxml2.XMLHTTP");
                    }
                    catch (e)
                    {
                        try
                        {
                            req1=new ActiveXObject("Microsoft.XMLHTTP");
                        }
                        catch (e)
                        {
                            alert("Your browser does not support AJAX!");
                            return false;
                        }
                    }
                }
                
                
                req1.open("POST", url, true);
                req1.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
                req1.send(selectedOption1);
                req1.onreadystatechange =function(){

                 document.getElementById('inst_college').options.length = 0;
                if (req1.readyState == 4) {
                    // Complete
                    //var returnElements;
                    var textToSplit = req1.responseText;
                    alert(textToSplit);
                    var returnElements=textToSplit.split("|");
                    //alert("returnElements-->"+returnElements);
                    if (req1.status == 200 | req1.status == "200") {                                        // OK response
                        for ( var i=0; i<(returnElements .length); i++ ){
                            var valueLabelPair = returnElements[i].split(",");
                             document.getElementById('inst_college').options[i] = new Option(valueLabelPair[0], valueLabelPair[1]);
                            //alert(document.getElementById('secondBox').options[i].value);
                      }
                    }
                  }
                }

                return true;
          }