
function ajax()
	{
	var args = ajax.arguments;
	switch (args[0])
		{
		case "load_page":
		if (document.getElementById) {
			var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
			}
			if (x)
				{
			x.onreadystatechange = function()
					{
				if (x.readyState == 4 && x.status == 200)
						{
						el = document.getElementById(args[2]);
						el.innerHTML = x.responseText;
					}
					else { el = document.getElementById(args[2]);
						el.innerHTML ="<div align='center'><img src='loading.gif' alt='loading...' /></div>";

						}
					}
				x.open("GET", args[1], true);
				x.send(null);
				}
			break;
  	
  	
			case "uno":
			
			break;
  	
		}
	}
function searchinfo(categoryyy){ var edition=	document.getElementById('edition').value; var category=	document.getElementById('category').value; var subcategorynum=	document.getElementById('subcategorynum').value; var continent=	document.getElementById('continent').value; var keyword=	document.getElementById('keyword').value; var lang=	document.getElementById('lang').value; var urls='resultsd.php?edition='+edition+'&category='+category+'&continent='+continent+'&subcategorynum='+subcategorynum+'&keyword='+keyword+'&lang='+lang; window.location=urls; }
function gocountry(){
	

var city=document.getElementById('city').value;  
var countryselector=document.getElementById('countryselector').value;  
if(city=="Mexico DF"){
	var urls='http://mexicodf.myhotnews.com/';
	}else if(city=="Delhi"){
		var urls='http://delhi.myhotnews.com/';}else if(city=="Mumbai"){
		var urls='http://mumbai.myhotnews.com/';}else if(city=="Tokyo"){
		var urls='http://tokyo.myhotnews.com/';}else if(city=="Seoul"){
		var urls='http://seoul.myhotnews.com/';}else if(city=="Sao Paulo"){
		var urls='http://saopaulo.myhotnews.com/';}else
		
		{
	         var urls='http://breakinglatestnews.myhotnews.com/breakingLatestNews.php?country='+countryselector+'&city='+city; }
	         
	         window.location=urls;
	       
	                		 
			 
		}
		
		function populatecity(){
		var countryttt=document.getElementById('countryselector').value;  	
ajax('load_page','combocities.php?country='+countryttt+'&sid='+Math.random(),'cities_layer');
			}
