function frmAddURL_Validator(theForm)
{
  re=/[\u4e00-\u9fa5]/g;
  re1=/[\u4e00-\u9fa5]/g;


  if (theForm.title.value == "")
  {
    alert("温馨小提示：请填写信息标题:）");
    theForm.title.focus();
    return (false);
  }
  if (theForm.title.value.length <5)
  {
    alert("温馨小提示：标题太短，不利于别人了解你的信息，请重填:）\n标题尽量表达出你更多的意思，\n例如：某某县几室几厅房屋出售\n而不是只写“房屋出售”");
    theForm.title.focus();
    return (false);
  }
  
  if(!re.test(theForm.title.value))   
  {   
    alert("温馨小提示：标题中没有一个汉字，这样的信息别人能看懂吗？")
    theForm.title.focus();
    return (false);
  }

  if (theForm.description.value == "")
  {
    alert("温馨小提示：请填写信息内容:）");
    theForm.description.focus();
    return (false);
  }

  if(!re1.test(theForm.description.value))   
  {   
    alert("温馨小提示：信息内容中没有一个汉字，这样的信息别人能看懂吗？")
    theForm.description.focus();
    return (false);
  }

  if (theForm.description.value.length <10)
  {
    alert("温馨小提示：你写的信息内容是不是太少了？能表达出你的意思吗？ :）");
    theForm.description.focus();
    return (false);
  }
  if (theForm.description.value=="如果以前发布过同样的信息，请用管理密码去修改，而不是再重新多次发布！修改后会自动提到最前面。我们系统会自动拦截多次重复的发布，也请你不要浪费时间。")
  {
    alert("温馨小提示：你怎么不填写的信息内容！！ :）");
    theForm.description.focus();
    return (false);
  }

  if (theForm.description.value.length >1024)
  {
    alert("温馨小提示：信息内容长度超过限制，请分多条发布:）");
    theForm.description.focus();
    return (false);
  }

  if (theForm.sort.value == "")
  {
    alert("温馨小提示：请选择信息大类:）");
    theForm.sort.focus();
    return (false);
  }
  
  if (theForm.sort2.value == "")
  {
    alert("温馨小提示：请选择信息小类:）");
    theForm.sort2.focus();
    return (false);
  }
  if (theForm.txtpassword.value.length <6)
  {
    alert("温馨小提示：管理密码不能少于6个字符:）");
    theForm.txtpassword.focus();
    return (false);
  }
  if (theForm.endtime.value == "")
  {
    alert("温馨小提示：请选择有效日期:）");
    theForm.endtime.focus();
    return (false);
  }
  
    if (theForm.area.value == "")
  {
    alert("温馨小提示：请选择所在县市:）");
    theForm.area.focus();
    return (false);
  }
  
  if (theForm.user.value == "")
  {
    alert("温馨小提示：请填写发布人:）");
    theForm.user.focus();
    return (false);
  }
  
    if (theForm.phone.value == "")
  {
    alert("温馨小提示：请填写联系电话:）");
    theForm.phone.focus();
    return (false);
  }

    if (theForm.oicq.value.length >=1 && theForm.oicq.value.length <5 )
  {
    alert("温馨小提示：填写QQ位数不对吧。:）");
    theForm.oicq.focus();
    return (false);
  }

    if (theForm.phone.value.length <7)
  {
    alert("温馨小提示：这样短的电话号能打通吗？:）");
    theForm.phone.focus();
    return (false);
  }
    if (theForm.codestr.value =="" || theForm.codestr.value =="点此获取验证码")
  {
    alert("温馨小提示：没有输入验证码 :）");
    theForm.codestr.focus();
    return (false);
  }

 } 
 
function checkscript(theform)
{

}
//-->



 function ubbaction(tag, val){
  var tag = tag.toUpperCase();
  if(typeof(val) == "undefined"){
  val = "";
  }
  if(val){
  val = "=" + val;
  }
  var r = document.selection.createRange().text;
  if(tag == "URL"){
  val = prompt("请输入连接地址:(留空为选定地址)", "http://");
  if(val != "http://" && val != ""){
  val = "=" + val;
  }else{
  val = "";
  }
  
  }
  rr = "[" + tag + val + "]" + r + "[/" + tag +"]";
  if(r){
  document.selection.createRange().text = rr;
  }else{
  document.all.content.value += rr;
  }
  }