

function getXMLHTTPRequest() {
var req
try {
  req= new XMLHttpRequest();
} catch(err1) {
  try {
  req = new ActiveXObject("Msxml2.XMLHTTP");
  } catch (err2) {
    try {
    req = new ActiveXObject("Microsoft.XMLHTTP");
    } catch (err3) {
      req = false;
    }
  }
}
return req;
}
var http= getXMLHTTPRequest();

function getmessfromprincipal()
{

var url = "messfromprincipal.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
function getshout()
{

var url = "shout.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }


  function getphotogallery()
{

var url = "photogalleryn.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
  function getnews()
{

var url = "news.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
  function getnotices()
{

var url = "notices.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
function getinternational()
{

var url = "internationallinkage.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
  function getaboutcollege()
{

var url = "aboutcollege.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
  function getaboutcollege()
{

var url = "aboutcollege.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
  function getmgmtcommitee()
{

var url = "mgmt.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
  function getacecalendar()
{

var url = "calendar.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
  function getclasscomm()
{

var url = "commencement.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
  function getjobopp()
{

var url = "job.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
  function getupdatestudentimage()
{

var url = "modifystudentimage.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
  
  function getpurbanchaluni()
{

var url = "purbanchaluni.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
  
  function getcontact()
{

var url = "contact.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
   function getthecirriculum()
{
var url = "thecurriculum.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
     function getlibrary()
{
var url = "library.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
  function getcoursecycle()
{
var url = "coursecycle.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
  function getsubcommitee()
{
var url = "subjectcommitee.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
  function getadminphotogallery()
{

var url = "albumindex.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
  function getcoursestructure()
{
var url = "coursestructure.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
  function getmarkdis()
{
var url = "marksystem.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
  function getmessfromvc()
{
var url = "messfromvc.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
   function getprogramconducted()
{
var url = "program.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
  
  function getparticipation()
{
var url = "participations.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
  function getfaculty()
{

var url = "faculty.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }

 function getadvisory()
{

var url = "advisorycommitee.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
   function getviewprofile()
{
var url = "viewstudentprofile.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
  function getlocation()
{

var url = "location.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
function getscholar()
{

var url = "scholoarship.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
function getcarreer()
{

var url = "career.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }

function getaward()
{

var url = "award.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
  function getadmission()
{

var url = "admission.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
   
   function checksearchfor()
{
var searchfor
	searchfor=searchform1.selectby.value
	alert(searchfor);
	document.location.href="searchby.php?id=2";
  }
   
   function getsearchprofile()
{

var url = "searchprofile.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
  
  function getassignmentdownloadbystudent()
{

var url = "viewuplaodedassignment.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
  function getdownloadbystudent()
{

var url = "downloadsbystudent.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
function getchangepassword()
{

var url = "changestudentpassword.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
 

  function admissionForm()
{

var url = "admissionform.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
  
function getalbumimage()
{

var url = "viewalbumimageact1.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
  
function getcreativegallery()
{

var url = "viewcreativegallery.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
function getstudentbook()
{

var url = "studentbook.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
  function getguestbook()
{

var url = "guestbook.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }

function getloadsearchby()
{
var selectfor
selectfor=search.selectby.value
alert(selectfor);

var url = "aboutcollege.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }

  function geteditprofile()
{

var url = "editstudentprofile.php";
myRand = parseInt(Math.random()*999999999999999);
  var modurl = url+"?rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = useHttpResponse;
  http.send(null);
  }
  function useHttpResponse()
{
	if(http.readyState==4){
	if(http.status==200){
	var timeValue=http.responseText;
	document.getElementById('responseitem').innerHTML=timeValue;
	}
	}
	else{
	document.getElementById('responseitem').innerHTML="Loading";
	}
}

