// JavaScript Document
function ajaxFunction(script_path, get_id, set_id)
{
	var xmlHttp;
	
	try
    {    // Firefox, Opera 8.0+, Safari    
		xmlHttp=new XMLHttpRequest();    
	}
	catch (e)
	{    // Internet Explorer    
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			try
			{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e)
			{
				alert("Your browser does not support AJAX!");
				return false;
			}
		}
	}
    
	xmlHttp.onreadystatechange=function()
    {
		if(xmlHttp.readyState==4)
        {
        	//document.myForm.time.value=xmlHttp.responseText;
        	document.getElementById(set_id).innerHTML = xmlHttp.responseText
        }
    }
    
	get_data = document.getElementById(get_id).value;

    xmlHttp.open("GET", script_path,true);
    xmlHttp.send(null);  
}	