function inputChk(gid){

	var paint_val = null;

	len = document.cas_form.txt_paint.value.length;
	paint_val = document.cas_form.txt_paint.value;

	/* 塗色番号が未入力の場合 */
	if(len == 0){
		alert(E5011);
		document.cas_form.txt_paint.focus();
		return(false);
	}

	if(len > 0){
		/* 英数チェック */
 	  if( !eisuchk(paint_val) ){
   	  alert(E5012);
 	   	document.cas_form.txt_paint.focus();
  	  return(false);
    }
		else{
			setGID(gid);
		}
	}

}

