Current File : /home/inlingua/public_html/templates/inlingua/javascript/ajax.js
function activexml()
{
if(window.XMLHttpRequest)
{
xmlhttp=new XMLHttpRequest();
}
else
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
return xmlhttp;
}

function getval(name1,email1,ph1)
{
	
	document.getElementById('message').innerHTML="<table cellpadding='0'cellspacing='0' border='0' style='border:#FFFFFF 1px solid;background-color:#FFFFFF; width:140px;'><tr><td align='center'><img src='../../../icentex/images/indicator.gif' style='border:0px'></td></tr></table>";

//name1=document.getElementById('sender1').value;
//email1=document.getElementById('sender_email').value;
//ph1=document.getElementById('ph1').value;

xmlhttp1=activexml();
xmlhttp1.open("GET","http://inlinguanewdelhi.com/templates/inlingua/javascript/ajax1.php?sender="+name1+"&email="+email1+"&phone="+ph1+"",true);

xmlhttp1.onreadystatechange=function()
{
	
if(xmlhttp1.readyState==4)
{
if(xmlhttp1.status==200)
{
x1=xmlhttp1.responseText;
//alert(x1);
document.getElementById('message').innerHTML="<table cellpadding='0'cellspacing='0' border='0' style='border:#FFFFFF 1px solid;background-color:#FFFFFF; width:140px;'><tr><td align='center'><br><b>Thank you.</b><br>&nbsp;</td></tr></table>";
}

}
}
xmlhttp1.send(null);
}