function pokazdom(did) {
	$('domszczegoly').innerHTML='<img src="lb/images/loading.gif">';
	var myAjax = new Ajax.Updater(
		'domszczegoly',
		'domszczegoly.php',
		{
			method: 'get',
			evalScripts: true,
			parameters: 'id='+did
		});
}

//var xmlHttp = createXmlHttpRequestObject(); 
//
//function createXmlHttpRequestObject() 
//{
//  var xmlHttp;
//  try
//  {
//    xmlHttp = new XMLHttpRequest();
//  }
//  catch(e)
//  {
//    var XmlHttpVersions = new Array("MSXML2.XMLHTTP.6.0",
//      "MSXML2.XMLHTTP.5.0",
//      "MSXML2.XMLHTTP.4.0",
//      "MSXML2.XMLHTTP.3.0",
//      "MSXML2.XMLHTTP",
//      "Microsoft.XMLHTTP");
//    for (var i=0; i<XmlHttpVersions.length && !xmlHttp; i++) 
//    {
//      try 
//      { 
//        xmlHttp = new ActiveXObject(XmlHttpVersions[i]);
//      } 
//      catch (e) {}
//    }
//  }
//  if (!xmlHttp)
//    alert("Blad.");
//  else 
//    return xmlHttp;
//}
//
//function pokazdom(id)
//{
//  if (xmlHttp.readyState == 4 || xmlHttp.readyState == 0)
//  {
//	$('domszczegoly').innerHTML='<img src="lb/images/loading.gif">';
//    xmlHttp.open("GET", "domszczegoly.php?id=" + id, true);  
//    xmlHttp.onreadystatechange = handleServerResponse;
//    xmlHttp.send(null);
//  }
//  else
//    setTimeout('process()', 1000);
//}
//
//function handleServerResponse() 
//{
//  if (xmlHttp.readyState == 4) 
//  {
//    if (xmlHttp.status == 200) 
//    {
//      $("domszczegoly").innerHTML = xmlHttp.responseText;
//    } 
//    else 
//    {
//      alert("blad: " + xmlHttp.statusText);
//    }
//  }
//}
//
