﻿function load() {
	document.translate.gen_text.onfocus = clearOrgText;
}	
function clearTextBox () {
	var f = document.translate;
	f.gen_text.value = '';
	if(f.gen_text2){f.gen_text2.value = '';}
	f.gen_text.focus();
}
function eraseTA(obj){
	if (obj.value == obj.defaultValue){
	obj.value = "";
	obj.style.color = '#000000';
	}
}
function wchk() {
 var txt = document.translate.gen_text.value ;
 if ((txt.length == 0) || (txt == null)) {
  alert("原文を入力してください");
  return false ;
 }
 return true ;
}