function htmlObjesiYarat() {
	var xmlHttp = null;
	try 
	{
		xmlHttp = new XMLHttpRequest();
	} 
	catch (e) 
	{
		var progIds = ['Microsoft.XMLHTTP', 'MSXML2.XMLHTTP', 'MSXML2.XMLHTTP.5.0', 'MSXML2.XMLHTTP.4.0', 'MSXML2.XMLHTTP.3.0', 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd']
		var success = false;
		
		for (var iterator = 0; (iterator < progIds.length) && ( ! success); iterator ++) 
		{
			try 
			{
				xmlHttp = new ActiveXObject(progIds[iterator]);
				success = true;
			} 
			catch (e) 
			{}
		}
		if ( ! success ) 
		{
			return null;
		}
	}
	
	return xmlHttp;
}

function icerigiAl(adres,nesne) 
{
	var xmlHttp = htmlObjesiYarat();
	
	var tmp;
	
	xmlHttp.onreadystatechange = function() {
		if(xmlHttp.readyState == 4) 
		{
			tmp = xmlHttp.responseText;
			document.getElementById(nesne).innerHTML = tmp;
		}		
	};

	xmlHttp.open('GET', adres, true);
	xmlHttp.send(null);
}

function bolumYukle(nesne,bolum,p)
{	
	sayfa = "bilesen/fuarbilgi.php?i="+p;
	if(bolum == 2) sayfa = "bilesen/fuaryerlesim.php?i="+p;
	if(bolum == 3) sayfa = "bilesen/fuarkatilim.php?i="+p;
	if(bolum == 4) sayfa = "bilesen/fuarform.php?i="+p;
	document.getElementById(nesne).innerHTML = '<img src="imaj/yukleniyor2.gif"  alt="Yükleniyor" border="0" height="12">';
	
	icerigiAl(sayfa,nesne);
}

function phoe(filename, h, w)
{ 
	popup = window.open(filename,"popDialog","height="+h+",width="+w+",scrollbars=yes") 
	popup.focus();
	if ( popup.document.close() ) 
	{ 
		popup.document.close() 
	} 
}

function phoe2(filename, h, w)
{ 
	popup = window.open(filename,"popDialog","height="+h+",width="+w+",scrollbars=yes, toolbar=yes") 
	popup.focus();
	if ( popup.document.close() ) 
	{ 
		popup.document.close() 
	} 
}