var xmlHttp

function showName1(id,nr,idstr,men,submen)
{
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  }

//alert('showName1 id: ['+id+']\nidstr: ['+idstr+']');
//alert('id: ['+id.length+']\nnr: ['+nr+']');
//alert('id: ['+id+']\nnr: ['+nr+']\nidstr: ['+idstr+']\nmen: ['+men+']\nsubmen: ['+submen+']');
//if (str.length < 1) return;

var url="getfoto2.asp";
url=url+"?id="+id;
url=url+"&nr="+nr;
url=url+"&idstr="+idstr;
url=url+"&menstr="+men;
url=url+"&submenstr="+submen;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

function stateChanged()
{
if (xmlHttp.readyState==4)
{
//parent.Reservierungen.document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
//document.getElementById("txtHint1").innerHTML=encodeURIComponent(xmlHttp.responseText);
//document.getElementById("txtHint1").innerHTML=escape(xmlHttp.responseText);
//document.getElementById("txtHint1").innerHTML=encodeURI(xmlHttp.responseText);
//document.getElementById("fotoshow").innerHTML=xmlHttp.responseText;
//var hhh = xmlHttp.responseText;
//alert(hhh);
//alert(xmlHttp.responseText);
document.getElementById("mosaikplatz").innerHTML=xmlHttp.responseText;
//document.getElementById("mosaikplatz").innerHTML=hhh;
}
}

function GetXmlHttpObject()
{
var xmlHttp=null;
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 popName(str)
{
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  }
var url="popname.asp";
url=url+"?q="+str;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged2;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

function stateChanged2()
{
if (xmlHttp.readyState==4)
{
document.getElementById("txtHint2").innerHTML=xmlHttp.responseText;
//document.getElementById("txtHint1").innerHTML=encodeURIComponent(xmlHttp.responseText);
//document.getElementById("txtHint1").innerHTML=escape(xmlHttp.responseText);
//document.getElementById("txtHint1").innerHTML=encodeURI(xmlHttp.responseText);
}
}
*/