// JavaScript Document
var xmlHttp

function showAboutInfo(str)
{
	
	//alert ("FUNCTION CALLED");
	
	if (str.length==0)
	  { 
	  	  document.getElementById("div_about_info").innerHTML=""
		  return
	  }

	xmlHttp=GetXmlHttpObject()

  if (xmlHttp==null)
  {
  alert ("Browser does not support HTTP Request")
  return
  } 
  
var url="ajaxWeb.asp"
url=url+"?q="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChangedControl 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
} 


function stateChangedControl() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("div_about_info").innerHTML=xmlHttp.responseText 
 } 
}function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 // Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}

function setStudent(str){
alert(str);
//document.getElementByID("txtStudentID").text= str
//alert(document.getElementByID("txtStudentID").value);
//alert(document.getElementByID("txtStudentID").text);
//alert(document.getElementByID("txtStudentID").innerHTML);
}

//function resizeImage(vElement){
	//var theHeight = document.getElementById(vElement).style.height;
	//alert(vElement);
	//alert(theHeight);
	//alert(theHeight=="200px");
	//if(theHeight=="200px")
	//{
	//	document.getElementById(vElement).style.height = "50px";		
	//}else if(theHeight=="50px"){
	//	document.getElementById(vElement).style.height = "200px";		
	///}else{
	//	document.getElementById(vElement).style.height = document.getElementById(vElement).style.height +200 ;

	//}
//}
