function ajaxFunction(ddown,ttotal)

{

	var browserType;

	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)

		{		

			var returnVar = xmlHttp.responseText;

			var mySplitResult = returnVar.split("##");

			//alert(returnVar);

			//alert(mySplitResult[2]);

			

			if(mySplitResult[2] == 100){

				document.getElementById('flash').style.visibility = 'visible';

				document.getElementById('flash').style.position = 'static';

				

				document.getElementById('add').style.visibility = 'hidden';

				document.getElementById('add').style.position = 'absolute';	

			}else{

				document.getElementById('ddown').innerHTML = mySplitResult[0] + " KB";

				document.getElementById('ttotal').innerHTML = mySplitResult[1]+ " KB";	

				myJsProgressBarHandler.setPercentage('element1',mySplitResult[2]);

			}

		}

	}

	//alert("ajax.php?ddown="+ddown+"&ttotal="+ttotal);

	xmlHttp.open("GET", "ajax.php?ddown="+ddown+"&ttotal="+ttotal, true);

	xmlHttp.send(null);

}


