// JavaScript Document
var xmlHttpss;

function chkExistingUser(str)
{ 
xmlHttpss=GetXmlHttpObject();
	if (xmlHttpss==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	if(str != 0)
	{
		var url="chk_exist_user.php";
		url=url+"?chk_ajax=process&email="+str;
		url=url+"&sid="+Math.random();
		xmlHttpss.onreadystatechange=function()
		{
			if (xmlHttpss.readyState==4 || xmlHttp.readyState=="complete")
			{ 
				document.getElementById("email_result").innerHTML=xmlHttpss.responseText;
			}
			else if (xmlHttpss.readyState!=4 || xmlHttpss.readyState!="complete")
			{ 
				document.getElementById("email_result").innerHTML='<img src="../../images/ajax-loader.gif">';
			} 
		}
		xmlHttpss.open("GET",url,true);
		xmlHttpss.send(null);
	}
}
function view(str)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
var url="aboutus_ajax.php";
url=url+"?q="+str;
url=url+"&sid="+Math.random();
xmlhttp.onreadystatechange=function()
{
	if (xmlhttp.readyState==4)
	{
		document.getElementById("output").innerHTML=xmlhttp.responseText;
	}
	else if (xmlhttp.readyState!=4)
	{
		document.getElementById("output").innerHTML="<img src='ajax-loader.gif' /> Content is Loading... Please be Patient.";
	}
}
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}

function rspv(str,id)
{
	xmlhttp=GetXmlHttpObject();
	if (xmlhttp==null)
	  {
	  alert ("Browser does not support HTTP Request");
	  return;
	  }
	var url="../sponsors_rspvs.php";
	url=url+"?q="+str+"&id="+id;
	url=url+"&sid="+Math.random();
	xmlhttp.onreadystatechange=function()
	{
		if (xmlhttp.readyState==4)
		{
			document.getElementById("output").innerHTML=xmlhttp.responseText;
		}
		else if (xmlhttp.readyState!=4)
		{
			document.getElementById("output").innerHTML="<img src='../../../../images/ajax-loader.gif' /> Content is Loading... Please be Patient.";
		}
	}
	xmlhttp.open("GET",url,true);
	xmlhttp.send(null);
}

function getState(str)
{
	xmlhttp=GetXmlHttpObject();
	if (xmlhttp==null)
	  {
	  alert ("Browser does not support HTTP Request");
	  return;
	  }
	var url="state_for_country.php";
	url=url+"?str="+str;
	url=url+"&sid="+Math.random();
	xmlhttp.onreadystatechange=function()
	{
		if (xmlhttp.readyState==4)
		{
			document.getElementById("state_div").innerHTML=xmlhttp.responseText;
		}
		else if (xmlhttp.readyState!=4)
		{
			document.getElementById("state_div").innerHTML="<img src='../../../../images/ajax-loader.gif' /> State is Loading... Please be Patient.";
		}
	}
	xmlhttp.open("GET",url,true);
	xmlhttp.send(null);
}
