function check() {
	  if (document.search.keyWord.value == "") {
		 alert("Enter keyword!.");
		 document.search.keyWord.focus();
		 return;
	  }
	document.search.submit();
 }

 function read(value, table){
	document.read.num.value=value;
	document.read.table.value=table;
	document.read.submit();   
 }

  function readSecret(value, table){
	document.read.num.value=value;
	document.read.table.value=table;
	document.readSecret.submit();   
 }
	
 function page(value){
	document.page.page.value=value;
	document.page.submit();
 }
	
 function go(value, table){
 	document.index.action=value+".jsp?table="+table;
 	document.index.submit();
 }

 function write(value, table){
	document.index.action="write.jsp?table="+table+"&secret="+value;
 	document.index.submit();
 }

function checkInputs() {

 if (document.post.name.value == "") {
    alert("Please enter Name.");
	document.post.name.focus();
	return;
 }

 if (document.post.subject.value == "") {
    alert("Please enter Subject.");
	document.post.subject.focus();
	return;
 }
 
 if (document.post.content.value == "") {
    alert("Please enter Content.");
	document.post.content.focus();
	return ;
 } 

 if (document.post.pass.value == "") {
    alert("Please enter Password.");
	document.post.pass.focus();
	return ;
 } 
  
 document.post.submit();
}

