var DIVID;
// make asynchronous HTTP request using the XMLHttpRequest object
function process(Fname,NID,DivId)
{
//alert(Fname);
//alert(NID);
//alert(DivId);
// proceed only if the xmlHttp object isn't busy
DIVID = DivId;
if (xmlHttp.readyState == 4 || xmlHttp.readyState == 0)
{
// retrieve the name typed by the user on the form
CountryID1 = encodeURIComponent(document.getElementById(Fname).value);
xmlHttp.open("GET","http://www.lccmt.com/WebsitePages/Ajax.php?"+NID+"="+CountryID1, true);
xmlHttp.onreadystatechange = handleServerResponse;
xmlHttp.send(null);
}
else
setTimeout('process()', 1000);
}
// executed automatically when a message is received from the server
function handleServerResponse()
{
if (xmlHttp.readyState == 4)
{
if (xmlHttp.status == 200)
{
document.getElementById(DIVID).innerHTML = decodeURIComponent(xmlHttp.responseText);
}
else
{
alert("There was a problem accessing the server: " + xmlHttp.statusText);
}
}
}
| |
|
|
|
|
|

| Our services |
 |
| Offers & Promotions |
 |
|
|
|
| Copyright 2008. All rights reserved LCC-International Money Transfer. |
|
|