function getDetails(divId,page)
{
if(document.getElementById(divId).innerHTML.length==0)
{
document.getElementById(divId).style.background="#CCCCCC";
var obj=document.getElementById(divId);
xmlhttp.open('post',page);
xmlhttp.onreadystatechange=function(){
if(xmlhttp.readyState==4 && xmlhttp.status==200)
{
obj.innerHTML=xmlhttp.responseText;
}
}
xmlhttp.send(null);
}
else
{
document.getElementById(divId).style.background="#FFFFFF";
document.getElementById(divId).innerHTML="";
}
}