<!--
    function email_proc(obj) {
	if (obj.value.length <= 0) return
	atmark = 0
	piriod = 0
	cc = obj.value.charAt(0)
	if (((cc < "0") || ("9" < cc)) &&
	    ((cc < "a") || ("z" < cc)) &&
	    ((cc < "A") || ("Z" < cc))) {
	    alert("不正なメールアドレスです")
	    document.sendForm.email.focus();
	    document.sendForm.email.select();
	    return
	}
	cc = obj.value.charAt(obj.value.length - 1)
	if (((cc < "0") || ("9" < cc)) &&
	    ((cc < "a") || ("z" < cc)) &&
	    ((cc < "A") || ("Z" < cc))) {
	    alert("不正なメールアドレスです")
	    document.sendForm.email.focus();
	    document.sendForm.email.select();
	    return
	}
	for (i = 1;i < obj.value.length;i++) {
	    cc = obj.value.charAt(i)
	    if (((cc < "0") || ("9" < cc)) &&
		((cc < "a") || ("z" < cc)) &&
		((cc < "A") || ("Z" < cc)) &&
		("@" != cc) && ("." != cc) &&
		("-" != cc) && ("_" != cc)) {
		alert("不正なメールアドレスです")
	    document.sendForm.email.focus();
	    document.sendForm.email.select();
	return
	    }
	    else if (cc == "@") atmark++
	    else if (cc == ".") piriod++
	}
	if (atmark < 1) {
	    alert("メールアドレスに@がありません")
	    document.sendForm.email.select();
	    document.sendForm.email.focus();
	   return false
	}
	else if (atmark > 1) {
	    alert("メールアドレスに@が多すぎます")
	    document.sendForm.email.focus();
	    document.sendForm.email.select();
	    return
	}
	if (piriod < 1) {
	    alert("メールアドレスにピリオドがありません")
	    document.sendForm.email.focus();
	    document.sendForm.email.select();
	    return
	}
    }



function dataSubmit() { 
referenceCopy(); 
if ( inputCheck() ) { 
return true; 
} 
return false; 
} 

function changeBoxValue( obj, name, checkedValue, uncheckedValue ) {
  if ( obj.checked )
    document.sendForm[name].value = checkedValue;
  else
    document.sendForm[name].value = uncheckedValue;
}

function getStringSize( testStr ) {
  var count = 0;
  for ( var i=0; i<testStr.length; i++ ) {
    if ( escape( testStr.charAt(i) ).length >= 4 )
      count++;
    count++;
  }
  return count;
}

function checkSize( name, nameTitle, maxLength ) {
  if ( getStringSize( document.sendForm[name].value ) > maxLength && maxLength > 0 ) {
    alert(nameTitle+" は最大 "+maxLength+" バイトまでです。");
    document.sendForm[name].focus();
    document.sendForm[name].select();
    return false;
  }
  return true;
}

function checkString( name, nameTitle ) {
  if ( document.sendForm[name].value == "" ) {
    alert(nameTitle+" を入力してください。");
    document.sendForm[name].focus();
    document.sendForm[name].select();
    return false;
  }
  return true;
}

function checkNumber( name, nameTitle ) {
  if ( isNaN( document.sendForm[name].value ) ) {
    alert(nameTitle+" は半角数字で入力してください。");
    document.sendForm[name].focus();
    document.sendForm[name].select();
    return false;
  }
  return true;
}

function checkDate( name, nameTitle ) {
  tempDate = document.sendForm[name].value;
  if ( tempDate == "" ) return true;
  if ( !tempDate.match(/^[0-9][0-9][0-9][0-9]-[0-1]?[0-9]-[0-3]?[0-9]$/) ) {
    alert(nameTitle+" にDATE型(yyyy-mm-dd)を入力してください。");
    document.sendForm[name].focus();
    document.sendForm[name].select();
    return false;
  }
  ymd = new Array();
  ymd = tempDate.split("-");
  tempDate = tempDate.replace(/-/g, "/");
  tempDate2 = new Date( tempDate );
  mm = tempDate2.getMonth()+1;
  dd = tempDate2.getDate();
  if ( parseInt(ymd[1], 10) != mm ) {
    alert(nameTitle+" にDATE型(yyyy-mm-dd)を入力してください。");
    document.sendForm[name].focus();
    document.sendForm[name].select();
    return false;
  }
  yyyy = ymd[0]; if ( mm < 10 ) mm = "0" + mm; if ( dd < 10 ) dd = "0" + dd;
  document.sendForm[name].value = yyyy+"-"+mm+"-"+dd;
  return true;
}

function checkCompare( name, nameTitle, comname ) {
  if ( document.sendForm[name].value != document.sendForm[comname].value ) {
     alert(nameTitle+"が一致していません。");
     document.sendForm[comname].focus();
     document.sendForm[comname].select();
     return false;
  }
  return true;
}

// -->
