var xmlHttp

function showInvoiceDetail(chkInvoice)
{
	if(!chkInvoice.checked){
		document.getElementById("div_invoice").innerHTML="";
		return;
	}
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	var url="ajax/getInvoiceDetail.php";
	url=url+"?payment_type="+chkInvoice.value;
	url=url+"&sid="+Math.random();
	url=url+"&tmstmp="+new Date().getTime();	 
	xmlHttp.onreadystatechange=stateChanged 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChanged() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("div_invoice").innerHTML=xmlHttp.responseText 
	} 
} 

