// this simple ajax lib for get method only...

// Ajax function   

function AJAXLIB (){
	
  this.xmlHttp = null;	

  this.GetXmlHttpObject  = function(){
		this.xmlHttp=null;
		try{
		  // Firefox, Opera 8.0+, Safari
		  this.xmlHttp=new XMLHttpRequest();
		  }
		catch (e){
		  // Internet Explorer
		  try{
			this.xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
			}
		  catch (e){
			this.xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
		  }
		}
	
  this.makeGetRequest = function(url,fn){
	
	 // creating xmlhttp object...	 
		this.GetXmlHttpObject();
		if (this.xmlHttp==null){
		  alert ("Your browser does not support AJAX!");
		  return;
		  } 
		var self = this;
				
		this.xmlHttp.onreadystatechange = function () {			 
			if (self.xmlHttp.readyState==4){ 
				   fn(self.xmlHttp.responseText);
			   }						
		};
		
		this.xmlHttp.open("GET",url,true);
		this.xmlHttp.send(null);
		} 
		
}

	/*
	 *    creating object of class select menu
	 */

	AJAXLIB = new AJAXLIB();

// end of Ajax function.....




