var xmlHttpPhone
function showPhoneImage(phoneId)
{ 
xmlHttpPhone=GetXmlHttpObject()
if (xmlHttpPhone==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
 
 
if(phoneId == '')
{
phoneId = "null"
}

var phoneIdString="?phoneId="+phoneId

var url="getPhoneImage.php"
url=url+phoneIdString
url=url+"&sid="+Math.random()
xmlHttpPhone.onreadystatechange=phoneImageChanged
xmlHttpPhone.open("GET",url,true)
xmlHttpPhone.send(null)
}


function phoneImageChanged() 
{ 
if (xmlHttpPhone.readyState==4 || xmlHttpPhone.readyState=="complete")
 {
 document.getElementById("phoneDisplayArea").focus();
 document.getElementById("phoneDisplayArea").innerHTML=xmlHttpPhone.responseText
 } 
else
 {
 document.getElementById("phoneDisplayArea").focus();
 document.getElementById("phoneDisplayArea").innerHTML="<a><img src='images/update.gif'></a>"
 }
}