<!--
var xmlHttp;
function GetXmlHttpObject()
{
	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");
		}
	}
	return xmlHttp;
}

function showXmlHttpText(url,prm,method,HTMLobj,objfrm,FNname,FNargs)
{
	xmlHttp = GetXmlHttpObject();
	if (xmlHttp == null)
	{
		document.getElementById(HTMLobj).innerHTML = '<font color="#FF0000">Bir Hata Oluştu</font>';
		return;
	}

	xmlHttp.onreadystatechange = stateChanged;
	xmlHttp.open(method,url,true);

	if (method == 'POST')
	{
		var objregexp = / /g;
		prm = prm.replace(objregexp,'+');
		xmlHttp.setRequestHeader("Content-type", "application/x-www-form-URLencoded");
		xmlHttp.setRequestHeader("Content-length", prm.length);
		xmlHttp.setRequestHeader("Connection", "close");
		xmlHttp.send(prm);
	}
	else
	{
		xmlHttp.send(null);
	}

	function stateChanged()
	{
		if (xmlHttp.readyState == 4)
		{
			document.getElementById(HTMLobj).innerHTML = xmlHttp.responseText;
			enableObjects(objfrm);
			if (typeof(FNname) == 'function')
			{
				return FNname.apply(null,FNargs);
			}
		}
		else
		{
			if (xmlHttp.readyState == 1 || xmlHttp.readyState == 2 || xmlHttp.readyState == 3)
			{
				disableObjects(objfrm);
				document.getElementById(HTMLobj).innerHTML = '<img src="/assets/gen/ajax-loader.gif" border="0" alt="">&nbsp;&nbsp;<span style="vertical-align:20%;">Yükleniyor</span>'
			}
		}
	}
}
//-->