// JavaScript Document


function createxml(petid){

			
			xmlHttp=GetXmlHttpObject();

			if (xmlHttp==null){

				alert ("Browser does not support HTTP Request")

				return

			}

			var url="createxml.php?petid="+petid
			
			xmlHttp.onreadystatechange=display_state
			{
			}
			
			xmlHttp.open("GET",url,true)

			xmlHttp.send(null)

		}


















function gen_display(entity,message){

	ele="\""+entity+"\""

	alert(ele);

	//alert(document.getElementById(ele));

	var ent=document.getElementById(ele);

	alert(ent);

	ent.InnerHTML="<span class='content'>"+message+"</span>";

}



function getStates(){

	xmlHttp=GetXmlHttpObject();

			if (xmlHttp==null){

				alert ("Browser does not support HTTP Request")

				return

			}

			

			var url="getStates.php"

			//alert(url);

			countryId=document.getElementById("cmbcountry").value;

			//alert(countryId)

			if(countryId==224 || countryId==38){

				var div_2=document.getElementById("div_txt_state")

				div_2.style.visibility="hidden"

				var div_1=document.getElementById("div_state")

				div_1.style.visibility="visible"

				url = url+ "?countryid="+countryId;

				xmlHttp.onreadystatechange=display_state;

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

				xmlHttp.send(null)

			}

			else{

				document.human_profile.txtstate.style.visibility="visible";

				var div_2=document.getElementById("div_txt_state")

				div_2.style.visibility="visible"

				var div_1=document.getElementById("div_state")

				div_1.style.visibility="hidden"

			}

			

}

function display_state(){

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

				var resp=xmlHttp.responseText;

				//alert(resp);

				var div_1=document.getElementById("div_state");

				div_1.innerHTML=resp;

				div_1.style.visibility="visible"

			}

		}
	function getcategory(){

			
				var div_1=document.getElementById("cmbcategory").value;
				//alert(div_1)
				document.search.method="post"
				document.search.action="forum_category1.php?category_id="+div_1
				document.search.submit()
		}
	