﻿function IndexCall(pageId) {
    var selectedPage = pageId;
    //alert(selectedPage);
    window.open('NRIroot.htm?id=' + selectedPage, '_self');
    //alert('hello');
}

function recieveCall(){
   hu = window.location.search.substring(1);
   gy = hu.split("&");
    for (i = 0; i < gy.length; i++) {
        ft = gy[i].split("=");
        if (ft[0] == 'id') {
            recstr= ft[1];
        }
    }

    
   //alert(recstr);
   switch (recstr) {
       case 'whychooseNRI':
           {
               document.getElementById('NRIcontent').className = 'loading'
               ajaxpage('whychooseNRI.htm', 'NRIcontent');
               document.getElementById('NRIcontent').className = 'alignleft w740 ';
               document.title = "Why Choose NRI - NRI Group of Institutions, Bhopal";
               break;
           }
       case 'whoStudies':
           {
               document.getElementById('NRIcontent').className = 'loading'
               ajaxpage('whoStudies.htm', 'NRIcontent');
               document.getElementById('NRIcontent').className = 'alignleft w740 ';
               document.title = "Who Studies at NRI - NRI Group of Institutions, Bhopal";
               break;
           }
       case 'vission':
           {
               document.getElementById('NRIcontent').className = 'loading'
               ajaxpage('vission.htm', 'NRIcontent');
               document.getElementById('NRIcontent').className = 'alignleft w740 ';
               document.title = "Vision And Mission - NRI Group of Institutions, Bhopal";
               break;
           }
       case 'transportation':
           {
               document.getElementById('NRIcontent').className = 'loading'
               ajaxpage('transportation.htm', 'NRIcontent');
               document.getElementById('NRIcontent').className = 'alignleft w740 ';
               document.title = "Transportation - NRI Group of Institutions, Bhopal";
               break;
           }
       case 'theCity':
           {
               document.getElementById('NRIcontent').className = 'loading'
               ajaxpage('theCity.htm', 'NRIcontent');
               document.getElementById('NRIcontent').className = 'alignleft w740 ';
               document.title = "The City - NRI Group of Institutions, Bhopal";
               break;
           }
       case 'Search':
           {
               document.getElementById('NRIcontent').className = 'loading'
               ajaxpage('Search.htm', 'NRIcontent');
               document.getElementById('NRIcontent').className = 'alignleft w740 ';
               document.title = "Search - NRI Group of Institutions, Bhopal";
               break;
           }
       case 'rules':
           {
               document.getElementById('NRIcontent').className = 'loading'
               ajaxpage('rules.htm', 'NRIcontent');
               document.getElementById('NRIcontent').className = 'alignleft w740 ';
               document.title = "Rules of the Institute - NRI Group of Institutions, Bhopal";
               break;
           }
       case 'research':
           {
               document.getElementById('NRIcontent').className = 'loading'
               ajaxpage('research.htm', 'NRIcontent');
               document.getElementById('NRIcontent').className = 'alignleft w740 ';
               document.title = "Research Paper Published - NRI Group of Institutions, Bhopal";
               break;
           }
       case 'quality':
           {
               document.getElementById('NRIcontent').className = 'loading'
               ajaxpage('quality.htm', 'NRIcontent');
               document.getElementById('NRIcontent').className = 'alignleft w740 ';
               document.title = "Quality Policy - NRI Group of Institutions, Bhopal";
               break;
           }
       case 'proProcedures':
           {
               document.getElementById('NRIcontent').className = 'loading'
               ajaxpage('proProcedures.htm', 'NRIcontent');
               document.getElementById('NRIcontent').className = 'alignleft w740 ';
               document.title = "Process and Procedures - NRI Group of Institutions, Bhopal";
               break;
           }
       case 'placementHistory':
           {
               document.getElementById('NRIcontent').className = 'loading'
               ajaxpage('placementHistory.htm', 'NRIcontent');
               document.getElementById('NRIcontent').className = 'alignleft w740 ';
               document.title = "Placement History - NRI Group of Institutions, Bhopal";
               break;
           }
       case 'placementComittee':
           {
               document.getElementById('NRIcontent').className = 'loading'
               ajaxpage('placementComittee.htm', 'NRIcontent');
               document.getElementById('NRIcontent').className = 'alignleft w740 ';
               document.title = "Placement Comittee - NRI Group of Institutions, Bhopal";
               break;
           }
       case 'nriPress':
           {
               document.getElementById('NRIcontent').className = 'loading'
               ajaxpage('nriPress.htm', 'NRIcontent');
               document.getElementById('NRIcontent').className = 'alignleft w740 ';
               document.title = "NRI@Press - NRI Group of Institutions, Bhopal";
               break;
           }
       case 'newAdmission':
           {
               document.getElementById('NRIcontent').className = 'loading'
               ajaxpage('newAdmission.htm', 'NRIcontent');
               document.getElementById('NRIcontent').className = 'alignleft w740 ';
               document.title = "Admission for New Session - NRI Group of Institutions, Bhopal";
               break;
           }
       case 'missionPlacement':
           {
               document.getElementById('NRIcontent').className = 'loading'
               ajaxpage('missionPlacement.htm', 'NRIcontent');
               document.getElementById('NRIcontent').className = 'alignleft w740 ';
               document.title = "Mission Placement - NRI Group of Institutions, Bhopal";
               break;
           }
       case 'messages':
           {
               document.getElementById('NRIcontent').className = 'loading'
               ajaxpage('messages.htm', 'NRIcontent');
               document.getElementById('NRIcontent').className = 'alignleft w740 ';
               document.title = "Messages - NRI Group of Institutions, Bhopal";
               break;
           }
       case 'libraries':
           {
               document.getElementById('NRIcontent').className = 'loading'
               ajaxpage('libraries.htm', 'NRIcontent');
               document.getElementById('NRIcontent').className = 'alignleft w740 ';
               document.title = "Library Facilities - NRI Group of Institutions, Bhopal";
               break;
           }
       case 'industrailVisit':
           {
               document.getElementById('NRIcontent').className = 'loading'
               ajaxpage('industrailVisit.htm', 'NRIcontent');
               document.getElementById('NRIcontent').className = 'alignleft w740 ';
               document.title = "Industrial Visit - NRI Group of Institutions, Bhopal";
               break;
           }
       case 'features':
           {
               document.getElementById('NRIcontent').className = 'loading'
               ajaxpage('features.htm', 'NRIcontent');
               document.getElementById('NRIcontent').className = 'alignleft w740 ';
               document.title = "Features - NRI Group of Institutions, Bhopal";
               break;
           }
       case 'Department':
           {
               document.getElementById('NRIcontent').className = 'loading'
               ajaxpage('Department.htm', 'NRIcontent');
               document.getElementById('NRIcontent').className = 'alignleft w740 ';
               document.title = "Department - NRI Group of Institutions, Bhopal";
               break;
           }
       case 'contactUs':
           {
               document.getElementById('NRIcontent').className = 'loading'
               ajaxpage('contactUs.htm', 'NRIcontent');
               document.getElementById('NRIcontent').className = 'alignleft w740 ';
               document.title = "Contact Us - NRI Group of Institutions, Bhopal";
               break;

           }
       case 'codeofconduct':
           {
               document.getElementById('NRIcontent').className = 'loading'
               ajaxpage('codeofconduct.htm', 'NRIcontent');
               document.getElementById('NRIcontent').className = 'alignleft w740 ';
               document.title = "Code of Conduct - NRI Group of Institutions, Bhopal";
               break;

           }
       case 'campusInfo':
           {
               document.getElementById('NRIcontent').className = 'loading'
               ajaxpage('campusInfo.htm', 'NRIcontent');
               document.getElementById('NRIcontent').className = 'alignleft w740 ';
               document.title = "Campus Information - NRI Group of Institutions, Bhopal";
               break;

           }
       case 'camFacilities':
           {
               document.getElementById('NRIcontent').className = 'loading'
               ajaxpage('camFacilities.htm', 'NRIcontent');
               document.getElementById('NRIcontent').className = 'alignleft w740 ';
               document.title = "Conference Facilties - NRI Group of Institutions, Bhopal";
               break;

           }
       case 'admissionprocedure':
           {
               document.getElementById('NRIcontent').className = 'loading'
               ajaxpage('admissionprocedure.htm', 'NRIcontent');
               document.getElementById('NRIcontent').className = 'alignleft w740 ';
               document.title = "Admission Procedure - NRI Group of Institutions, Bhopal";
               break;

           }
   }

}
