
function Check_Title()
  {  
	CtoH( 'Title');
	if (isEmpty(GE('Title').value) ==true) {
		SetError('Title',"block","Title is required.");
 		return false;
	}
	else if (GE('Title').value.trim().length> 100 ) 
	{
	  	SetError('Title',"block","You can almost input 100 characters.");
 		return false;   
	} 
	else if (includeChineseChar(GE('Title').value)==false) 
	{
 		SetError('Title',"block","Sorry, the Title you filled in is not in English. Please input the information in English instead.");
 		return false;
	}
	else
	{
		SetError('Title',"none",""); 
		return true; 
	}
  }
  
function Check_Content()
  {  
	CtoH('Content');
	if (isEmpty(GE('Content').value) ==true) {
		SetError('Content',"block","Content is required.");
 		return false;
	}
	else if (GE('Content').value.trim().length> 4000 ) 
	{
	  	SetError('Content',"block","You can almost input 4000 characters.");
 		return false;   
	} 
	else if (includeChineseChar(GE('Content').value)==false) 
	{
 		SetError('Content',"block","Sorry, the Content you filled in is not in English. Please input the information in English instead.");
 		return false;
	}
	else
	{
		SetError('Content',"none",""); 
		return true; 
	}
  }
  
  
function Check_WordsCanEmpty(type_id,words)
  { 
  	 CtoH(type_id);
  	 if (GE(type_id).value.trim().length> words)
  	 {
  	 	SetError(type_id,"block","You can almost input " + words + " characters.");
 		return false;  	 
  	 }
  	 else if (includeChineseChar(GE(type_id).value.trim())==false) 
  	 {
 		SetError(type_id,"block","Sorry, the "+type_id+" you filled in is not in English. Please input the information in English instead.");
 		return false;
	 }  
	 else
	 {
	   SetError(type_id,"none","");
	   return true;
	 }
  }   


function Check_Words(type_id,words)
  { 
  	 CtoH(type_id);
  	 if (isEmpty(GE(type_id).value) ==true) {
		SetError(type_id,"block",type_id + " is required.");
 		return false;
	}
  	 if (GE(type_id).value.trim().length> words)
  	 {
  	 	SetError(type_id,"block","You can almost input " + words + " characters.");
 		return false;  	 
  	 }
  	 else if (includeChineseChar(GE(type_id).value.trim())==false) 
  	 {
 		SetError(type_id,"block","Sorry, the "+type_id+" you filled in is not in English. Please input the information in English instead.");
 		return false;
	 }  
	 else
	 {
	   SetError(type_id,"none","");
	   return true;
	 }
  } 