function show_sm_friends(uin,gender,age,home_country_code,dating_mode)
{

		http_request = make_http_request();
    if (http_request != null) 
    {
    	url = "similar_friends.php?uin="+uin+"&age="+age+"&gender="+gender+"&home_country_code="+home_country_code+"&dating_mode="+dating_mode;
		//document.location = url;
		//alert(url);
		http_request.onreadystatechange = parse_sm_friends;
		http_request.open('GET', url, true);
		http_request.send(null);
	}
}

function parse_sm_friends() 
{
try
	{
		if (http_request.readyState == 4)
		{
			if (http_request.status == 200)
				document.getElementById('sm_friends').innerHTML = http_request.responseText;
		}
	}
	catch(e){}
}

function count_chars()
{
	total_chrs = 200;
	text_chrs = document.getElementById('message_body').value.length;
	if(	text_chrs >= total_chrs) // over the limit
		document.getElementById('message_body').value = document.getElementById('message_body').value.substring(0,total_chrs);
}
