function sendTopic(sID, uID, pg)
{
//	alert('cibek bug');
	ajaxUtil.stopPeriodicalUpdater();
	//alert($('msgBox').serialize());
	ajaxUtilReq.setConfig('http://www.whofindwho.com/t_board/insertMessage.php',$('msgBox').serialize(true),'post');
	ajaxUtilReq.request();
	
	//alert('sID:'+sID+'uId:'+uID+'pg:'+pg);
	ajaxUtil.setConfig('http://www.whofindwho.com/t_board/diagGetTopic.php','storeID='+sID+'&userID='+uID+'&startID='+pg+'&range=10','post');
	ajaxUtil.loadPeriodicalUpdater('frame',10,1);
}

function getTopic(sID, uID, pg)
{
	//alert('sId'+sID+'uID'+uID+'pg'+pg);
	ajaxUtil.stopPeriodicalUpdater();
	ajaxUtil.setConfig('http://www.whofindwho.com/t_board/diagGetTopic.php','storeID='+sID+'&userID='+uID+'&startID='+pg+'&range=10','post');
	ajaxUtil.loadPeriodicalUpdater('frame',10,1);
}

function sendReply(msgId)
{
	ajaxUtilReq.setConfig('http://www.whofindwho.com/t_board/insertReply.php',$(msgId.toString()).serialize(true),'post');
	ajaxUtilReq.request();
}

//, style:"display:none" 'storeID='+sID+'&userID='+uID+'&msgID='+mID

function loadReplyBox(sID, uID, mID, pg)
{
$('pageTop').hide();
$('pageBelow').hide();
//alert('mj kien');
$('frame').hide();
$('replyBox').appear();
//alert('sId'+sID+'uID'+uID+'mID'+mID+'pg'+pg);
ajaxUtil.setConfig('http://www.whofindwho.com/t_board/diagGetMessage.php','storeID='+sID+'&userID='+uID+'&msgID='+mID+'&startID='+pg+'&range=10','post');
ajaxUtil.updater('replyBox');

ajaxUtil.stopPeriodicalUpdater();
ajaxUtil.setConfig('http://www.whofindwho.com/t_board/diagGetReply.php','storeID='+sID+'&userID='+uID+'&msgID='+mID,'post');
ajaxUtil.loadPeriodicalUpdater('replyLog',10,1);
}

function loadLastReply(mID)
{
	$('lReply'+mID.toString()).show();
}

function closeLastReply(mID)
{
	$('lReply'+mID.toString()).hide();
}

function successFunc(res)
{
	//nicEditors.findEditor(\'sendMsg\').setContent(\'\');
	//alert(res);
}

function failFunc()
{
	//alert('no la');
}