
function goto(qstr){
	//alert("qstr from flash = " + qstr);
	var val = encodeURIComponent(qstr);
	var xmlHttp=null;
			
	try	{		xmlHttp=new XMLHttpRequest();  }// Firefox, Opera 8.0+, Safari
	catch (e) { 														// Internet Explorer
  			try {		xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
  			catch (e)	{	xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
  		}
	if (xmlHttp==null){ alert("Your browser does not support AJAX!"); exit; } 
  else { 
  	//alert("sending query string = " + val); 
		myurl = 'query.php?linka=' + val;
		
		xmlHttp.open("GET", myurl, true);
    xmlHttp.onreadystatechange =  function (){ 
			if (xmlHttp.readyState == 4 && xmlHttp.status == 200 ){ 
				
				q_result = xmlHttp.responseText;
				//alert(q_result);
				document.getElementById('divb').innerHTML = q_result;
			}
		}
		xmlHttp.send(null);
	}
}
function get_result(str){
	sj(str);
	return "mmm";
}

function show_result(ahtml){
	document.getElementById('diva').style.visibility = "visible";
	document.getElementById('divb').innerHTML = ahtml;

	
	return "ok";
}
