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;
}


function SubCatId(id){
 var strURL="addopt.php?jsid="+id;
 var xmlHttp = getxmlhttpobject();
 xmlHttp.onreadystatechange=function(){
 if (xmlHttp.readyState==4){
 document.getElementById("detailsDiv").innerHTML=xmlHttp.responseText;
 //document.getElementById("errorD").style.display='none';
 }
}
xmlHttp.open("GET", strURL, true);
xmlHttp.send(null);
}

function findLanguage(){
    var val = document.getElementById('lang').value;
	var val1 = document.getElementById('genre').value; 

	if(val!='' && val1!=''){
		v = "&val="+val+"&val1="+val1;
	}else if(val=='' && val1!=''){
		v = "&mbc="+val1;
	}else if(val!='' && val1==''){
		v = "&mbc="+val;
	}
	document.location.href = "?option=com_jumi&fileid=9&Itemid=30"+v;
}


function show_title_ballon(){
	alert("urvesh");
	document.getElementById('ballon').innerHTML.value='urvesh';
}


function find_dis(val12){
	
	var query = "ajexfunction.php?option=com_users&task=findstate&name="+val12;
	//alert(query);
	var xmlHttp = getxmlhttpobject();
     xmlHttp.onreadystatechange=function(){
		 if (xmlHttp.readyState==4){
			 //alert(xmlHttp.responseText);
		 document.getElementById("distname12").innerHTML=xmlHttp.responseText;
		 //document.getElementById("errorD").style.display='none';
		 }
    }
	xmlHttp.open("GET", query, true);
	xmlHttp.send(null);
}

function find_city(city){
	//alert(city);
	
	var query = "ajexfunction.php?option=com_users&task=findcity&name="+city;
	//alert(query);
	var xmlHttp = getxmlhttpobject();
     xmlHttp.onreadystatechange=function(){
		 if (xmlHttp.readyState==4){
			 //alert(xmlHttp.responseText);
		 document.getElementById("city12").innerHTML=xmlHttp.responseText;
		 //document.getElementById("errorD").style.display='none';
		 }
    }
	xmlHttp.open("GET", query, true);
	xmlHttp.send(null);
}

