function Forms(){
var Error = "你尚有以下的資料沒有填寫：\n\n";
var Ecode = 0;
var Name = document.form.elements['Name'];
var Title = document.form.elements['Title'];
var Content = document.form.elements['Content'];
var Files = document.form.elements['File'];
var re = /(\.JPG)|(\.jpg)$/i;

if(Name.value ==""){
		Error = Error + "請填寫發表者姓名。\n";
		Ecode = 1;
		}



if(Title.value ==""){
		Error = Error + "請填寫文章標題。\n";
		Ecode = 1;
		}
		

if(Content.value == ""){
		Error = Error + "請填寫文章內容。\n";
		Ecode = 1;
}else if(Content.value.length <=100 || Content.value.length >=300){ 
	    Error = Error + "文章內容限100∼300字以內喔。\n";
		Ecode = 1;
}
		
	
	
 if(Ecode !=0){
	 alert(Error);
	 return (false);
 }
return(true);
}


function checkform(){
     if ( !Forms()){ return( false ) ; }     
     //   document.form.submit() ;                       
		return( true ) ;
}

