			
		
			
			function GetXmlHttpObject()
			{
			objXML		=	null;
			
			try
			{
			objXML= new XMLHttpRequest();
			}
			
			
			catch (newversion)
			{
			
			
			try
			{
			objXML = new ActiveXObject("Msxml2.XMLHTTP");
			}
			catch (oldversion)
			{
			objXML = new ActiveXObject("Microsoft.XMLHTTP");
			}
			
			}
			
			return objXML;
			
			}
			
			
			//This Part Serve to process Common Request
			function CommonAjaxQuery(objval,Url,DisplayArea)
			{

			var objXML = null;
			var Url
			
			objXML = GetXmlHttpObject();
			
			if (objXML==null)
			{
			alert ('Your browser does not support the XMLHttpRequest object!');
			return;
			}
			
			
			Url = Url;

			
			objXML.onreadystatechange = CommonAjaxResult;
			objXML.open('GET',Url,true);
			objXML.send(null);		
			
								
								// This Section Serve Where the Response to be Display.
								// It Will Also Reset the Ajax 
								function CommonAjaxResult() 
								
								{ 
								
								
								if (objXML.readyState==4)
								{	
										if(objXML.status==404)
										{
										alert("Request URL does not exist");
										}
										else if(objXML.status==500)
										{
										alert("Server Error.");
										}
								
								var response = objXML.responseText;
								DisplayArea.innerHTML  =  response;
								
										objXML="";
								
								}
																
								}

							
			
			
			
			}
			

			
		





