// JavaScript Document
function ajaxFunction(page,parameter,responseval)
{
	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");
	    }
	 }
	 if (xmlHttp==null)
{
	alert ("Browser does not support HTTP Request")
 	return
} 
    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4 )
        {
			var ajaxDisplay = document.getElementById(responseval);
			ajaxDisplay.innerHTML="";
			if(xmlHttp.responseText==""){document.requestform.submit();}
			else{
			document.getElementById(responseval).style.display='';
			ajaxDisplay.innerHTML = xmlHttp.responseText;
			}
        }
      }

   xmlHttp.open("GET",page+parameter,true);
   xmlHttp.send(null); 
 }	
 
 // JavaScript Document
function test(page,parameter,responseval)
{
	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");
	    }
	 }
	 if (xmlHttp==null)
{
	alert ("Browser does not support HTTP Request")
 	return
} 
    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4 )
        {
			var ajaxDisplay = document.getElementById(responseval);
			ajaxDisplay.innerHTML="";
			
			document.getElementById(responseval).style.display='';
			ajaxDisplay.innerHTML = xmlHttp.responseText;
        }
      }

   xmlHttp.open("GET",page+parameter,true);
   xmlHttp.send(null); 
 }	