function viewCities(block,country,id,sm) {
	
	xmlHttp=createXmlHttpRequestObject()
	if (xmlHttp==null) {
		alert ("Narykle nepalaiko HTTP Request / Pasirinkimas neimanomas");
		return;
	}
        
        
        var url="web/controls/cities_ajax.php";    
        
        country = country.value;
        
        if ( block == 'js' ) {
            var htmlContainer = document.getElementById('reg_js_city');
        }
        if ( block == 'em' ) {
            var htmlContainer = document.getElementById('reg_em_city');
        }
        
        // Loader icon [[
        if ( country > 0 && typeof(country) != 'undefined' ) {
            htmlContainer.innerHTML = '<div class="loader_01" >&nbsp;</div>';
        }
        // ]]
	
	xmlHttp.onreadystatechange=function()
		{
			if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") {
										
				if ( xmlHttp.responseText!=='undefined' && typeof(xmlHttp.responseText) != 'undefined' ) {
										
					var act_response = xmlHttp.responseText.split(':::');
					
                                        if ( typeof(act_response[1]) != 'undefined' && act_response[1] != 'none'  ) {
                                                
                                                htmlContainer.innerHTML = act_response[1];
                                                
                                                //document.getElementById('hdm').className = 'fWindowContainer_ON';
                                                //document.getElementById('window_pos').style.paddingTop = ((screen.height/2)-200) + 'px';
                                        }
                                        
				} else {
					xmlHttp.open("POST",url,true);
				}
			}
		}
	xmlHttp.open("POST",url,true);
	
	parameters = "block="+block+"&country="+country+"&id="+id;
	
	xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xmlHttp.setRequestHeader("Content-length", parameters.length);
	xmlHttp.setRequestHeader("Connection", "close");
	xmlHttp.send(parameters);
}