if (utf_strlen(trim($msg))<3 || utf_strlen($msg)>1000) { header ("Location: index.php?fid=$fid&isset=nopost&".SID); exit;}
$msg=substr($msg,0,1000);