function GetXmlHttpObject()
{
	var xmlHttp=null;
	try
	{
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{
		// Internet Explorer
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return xmlHttp;
}
///////////////////////////////////////////////////////////////////////////////////////// general ajx function			
/********************check for new notifications**********************************************************/
function ajaxCtntMe1(phppage1,uname,email,comment)
{
	xmlHttp1=GetXmlHttpObject();	
	if (xmlHttp1==null)
	{
		alert ("Your browser does not support AJAX!");
		return;
	}	
	//document.getElementById('people_know').style.display = "inline";
	//document.getElementById('people_know').innerHTML="<img src='images/loader.gif'>";
	document.getElementById('loading1').style.display = "inline";
	var url1=phppage1+'?uname='+uname+'&email='+email+'&comment='+comment;
	//alert(url1);
	//alert("src : "+src);
	//alert("tar : "+tar);
	xmlHttp1.open('GET',url1,true);
	
	xmlHttp1.onreadystatechange=function(){ onstateChangedclrnotif(); }

	xmlHttp1.send(null);
}

function onstateChangedclrnotif() 
{ 
	//alert(ctrlname);
	if(xmlHttp1.readyState==4)
	{ 
		var rslt1 = xmlHttp1.responseText;
		//alert(xmlHttp1.status);
		//alert(rslt1);
		document.getElementById('loading1').style.display = "none";
		document.frm.uname.value='Your Name';
		document.frm.email.value='Your Email';
		document.frm.comment.value='just say hi or enter your message';
		$.modaldialog.error('Now Just Wait 12 Hours To Reach Us To You!');
		//document.getElementById('thnks').innerHTML = "<span class='font_18_gren'>Your Message has been sent Successfully</span>";
		//document.getElementById('msg').innerHTML = ' You are subscribed successfully!!! ';
		//alert(rslt1);
	}
}

