var xmlHttp
function getcat(vcat)
{
	if (vcat=="") {
		return;
	}
document.getElementById("waiting").innerHTML="<img src='images/pleasewait.gif'>";
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX.\n\nWe use AJAX to process album\n\nPlease call us on the telephone for more help.\n\nThank you.");
  return;
  } 
var url="getcat.asp";
url=url+"?vcat="+vcat;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChangedc;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
} 

function stateChangedc() 
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("numberslist").innerHTML=xmlHttp.responseText;
document.getElementById("waiting").innerHTML="&nbsp;";
}
}


function getphoto(vphoto)
{
	if (vphoto=="") {
		return;
	}
document.getElementById("waiting").innerHTML="<img src='images/pleasewait.gif'>";
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX.\n\nWe use AJAX to process album\n\nPlease call us on the telephone for more help.\n\nThank you.");
  return;
  } 
var url="getphoto.asp";
url=url+"?vphoto="+vphoto;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChangedp;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
} 
function stateChangedp() 
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("pictarea").innerHTML=xmlHttp.responseText;
document.getElementById("waiting").innerHTML="&nbsp;";
}
}

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;
}