// JavaScript Document
var xmlHttp

function showCustomer(str)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
} 
var url=str
//url=url+"?EditMDY="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged 
xmlHttp.open("GET",url,true)
document.getElementById('txtHint').innerHTML='<img src=images/loading.gif>';
xmlHttp.send(null)
}

function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
document.getElementById('txtHint').innerHTML=xmlHttp.responseText 
} 
} 

function GetXmlHttpObject()
{ 
var objXMLHttp=null
if (window.XMLHttpRequest)
{
objXMLHttp=new XMLHttpRequest()
}
else if (window.ActiveXObject)
{
objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
}
return objXMLHttp
}
/*change div
function ronak(id)
    {
        if(document.getElementById('data'+id).style.display == '')
        {
            document.getElementById('data'+id).style.display = 'none';
            document.getElementById("img"+id).innerHTML = "<img src=../images/down-arrow.gif hspace=10>";
        }
        else
        {
            document.getElementById('data'+id).style.display = '';
            document.getElementById("img"+id).innerHTML = "<img src=../images/up-arrow.gif hspace=10>";
        }   
    }
end change div*/