// JavaScript Document
function doSubmitBlogPostNew(){
	var frm = document.frmBlogPostNew;
	frm.submit();
}
/////////////////////////////////////////
function doSubmitBlogPostCommToBlog(){
	var frm = document.frmBlogPostCommToBlog;
	frm.submit();
}
/////////////////////////////////////////
function doSubmitSendNewMsg(){
	var frm = document.frmSendNewMsg;
	frm.submit();
}
function doSubmitInboxDetailBlkSender(url){
	constr = 'Are you sure you want to add this sender to your blacklist?';
	if(confirm(constr) == true){
		location.href = url;
	}
}
function doSubmitUploadPhoto(){
	var frm = document.frmUploadPhoto;
	frm.submit();
}
/////////////////////////////////////////
function check_form_post_new_topic(){
	theform = document.frm;
	if(theform.ftm_title.value == ''){
		alert("Please input the message's title!");
		theform.ftm_title.focus();
		return false;
	}
	if(theform.ftm_title.value.length > 100){
		alert("Message's title shouldn't have more than 100 characters!");
		theform.ftm_title.focus();
		return false;
	}
	return true;
}