var x = 0;
var cityLoad = setInterval("doPassVar()",1000);
function doPassVar(){
	if(x == 20){
		clearInterval(cityLoad);
		//alert('Interval Cleared');
	}
	var sendText = document.set_location.loc_id.options[document.set_location.loc_id.selectedIndex].value;
	//alert('Location = ' + sendText + ', Times = ' + x);
	if(sendText != 'null'){
		window.document.inPlay.SetVariable('jsLocation', sendText);
	}else{
		window.document.inPlay.SetVariable("jsLocation", 0)
	}
	x++;
}
function delayPassVar(){
	//var cityLoad = setInterval("doPassVar()",1000);
}

function go2location(location){
	var url = document.set_location.loc_id.options[document.set_location.loc_id.selectedIndex].value;
	//alert(url);
	window.location = "http://"+url;
}