var xmlHttp;



		function gethint(id)

		{ 



			xmlHttp=GetXmlHttpObject1();

			if (xmlHttp==null)

			{

				 alert ("Browser does not support HTTP Request")

				return;

			}

			var url="gethint.php?username="+id;

			xmlHttp.onreadystatechange=stateChanged1

			xmlHttp.open("GET",url,true);

			xmlHttp.send(null)



				

		}

		function getSubcat(category)

		{ 

			xmlHttp=GetXmlHttpObject1();

			if (xmlHttp==null)

			{

				 alert ("Browser does not support HTTP Request")

				return;

			}

			var url="admin/getsubcat.php?category="+category;

			alert(url);

			xmlHttp.onreadystatechange=categoryChanged;

			xmlHttp.open("GET",url,true);

			xmlHttp.send(null)

		}	

		function categoryChanged() 

		{ 

						

			if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")

			{

			

				document.getElementById("subcat").innerHTML=xmlHttp1.responseText;

			}

			else

			{

				document.getElementById("subcat").innerHTML="";

			}

		}

	function getState(country)

		{ 

			xmlHttp=GetXmlHttpObject1();

			if (xmlHttp==null)

			{

				 alert ("Browser does not support HTTP Request")

				return;

			}

			var url="getstate.php?country="+country;

			xmlHttp.onreadystatechange=countryChangedState

			xmlHttp.open("GET",url,true);

			xmlHttp.send(null)

		}	

	function countryChangedState() 

		{ 

						

			if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")

			{

			

				document.getElementById("companystate").innerHTML=xmlHttp1.responseText

			}

			else

			{

				document.getElementById("companystate").innerHTML="";

			}

		}

		function stateChanged2() 

		{ 

						

			if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")

			{

			

				document.getElementById("info2").innerHTML=xmlHttp1.responseText

			}

			else

			{

				document.getElementById("info2").innerHTML="<div align=left><br><img src='images/loading.gif'></div>";

			}

		}

	function sendmail(id)

		{ 



			xmlHttp=GetXmlHttpObject1();

			if (xmlHttp==null)

			{

				 alert ("Browser does not support HTTP Request")

				return;

			}

			var url="gethint.php?flag=1&info="+id;

			xmlHttp.onreadystatechange=stateChanged2

			xmlHttp.open("GET",url,true);

			xmlHttp.send(null)



				

		}

						

		function stateChanged1() 

		{ 

						

			if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")

			{

			

				document.getElementById("info1").innerHTML=xmlHttp1.responseText

			}

			else

			{

				document.getElementById("info1").innerHTML="<div align=left><br><img src='images/loading.gif'></div>";

			}

		}

		function stateChanged2() 

		{ 

						

			if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")

			{

			

				document.getElementById("info2").innerHTML=xmlHttp1.responseText

			}

			else

			{

				document.getElementById("info2").innerHTML="<div align=left><br><img src='images/loading.gif'></div>";

			}

		}

						

										

		function GetXmlHttpObject1()

		{

			

			try

			{

						

				xmlHttp1=new XMLHttpRequest();

			}

			catch (e)

			{

				try

				{

					xmlHttp1=new ActiveXObject("Msxml2.XMLHTTP");

				}

				catch (e)

				{

					xmlHttp1=new ActiveXObject("Microsoft.XMLHTTP");

				}

			 }

			return xmlHttp1;

		}

			

			
