 	function strim(x)
	{
    while((x.length>0) && (x.charAt(0)==' '))
        x = x.substring(1,x.length)
    while((x.length>0) && (x.charAt(x.length-1)==' '))
        x = x.substring(0,x.length-1)
    return x
	}

   function CheckBlank(){
    if(!confirm("提交数据库资料?"))    return false;
    
    var tmp = document.getElementById("COLUMN515");
    var data = strim(tmp.value);
    if(data.length==0){ alert("请输入姓名");tmp.focus();return false;}
    
    var tmp = document.getElementById("COLUMN521");
    var data = strim(tmp.value);
    if(data.length==0){ alert("请输入主题");tmp.focus();return false;}
    
    var tmp = document.getElementById("COLUMN522");
    var data = strim(tmp.value);
    if(data.length==0){ alert("请输入内容");tmp.focus();return false;}
  }
  
  function CheckData(){
    if(!CheckBlank()) return false;
    return true;
  }	