 function launchPrivateMsg(topicId, authorId, lang){
	var msgWin;
	var popupURL = 'sendPrivateMessage.aspx?topic=' + topicId + '&author=' + authorId + '&lang=' + lang;
	
	if(!msgWin)
		top.window.open(popupURL, 'msgWin', 'resizable=yes, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, width=400, height=400, top=0, left=168');
	else{
		msgWin.location.href = popupURL;
		msgWin.focus();
	}
}

function launchReplyQuote(forumId, topicId, msgId, action, lang){
	var addPostWin;
	var actionView;
	if(action == 'edit' || action=='lock')
		actionView = 'checkPostPassword.aspx';
	else
		actionView = 'addPost.aspx';
		
	var popupURL = actionView + '?forum=' + forumId + '&topic=' + topicId + '&message=' + msgId + '&action=' + action + '&lang=' + lang;
	
	if(!addPostWin)
		top.window.open(popupURL, 'addPostWin', 'resizable=yes, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, width=500, height=560, top=0, left=170');	
	else{
		addPostWin.location.href = popupURL;
		addPostWin.focus();
	}
}

