var path = "";
function initPath()
{
	path = document.getElementById("path").value;
}
function checkSearch()
{
	var value = document.getElementById("searchValue").value;
	if(jsTrim(value)=="")
	{
		getScreenByStatus("jsAddScreenInfo","info","","","","","");
		showScreen("","ScreenInForss","promptBoxInForss",null,260,17);
		document.getElementById("p_content").innerHTML="请填写您要搜索的内容";
		return false;
	}
	return true;
}
function toFriendUser(sessionUser)
{
	if(sessionUser == null || sessionUser=='null' || sessionUser == "")
	{
		getScreenByStatus("jsAddScreenNologin","noLogin","","","","","");
		showScreen("ifrNoLogins","ScreenNoLogins","waitBoxNoLogins",'','','');
	}
	else
	{
		 window.location.href=''+path+'/userSigned.html?status=friendSigned'
	}
}
	function formatDates(str,num){
  		return str.length >num ? str.substring(0,num) : str;
  	}