<!--
//------------------------------------------
//  update_shori
//------------------------------------------
function update_button() {
	setCookie("GRADE", "");
	setCookie("FLG", "");
}
//-----------------------------------------------------------
//  input-check1 （Product List By Product Type）
//-----------------------------------------------------------
function input_check1() {

    // ""data-check
        check1 = "00";
        for(i = 0;i< document.form1.grade.options.length; i++){
                  if(document.form1.grade.options[i].selected == true){
                        check1 = document.form1.grade.options[i].value;
                  }
        }
        if(check1 == "00") { alert("\nPlease input By Product Type"); return false; }

    // now-get
	now = new Date();
	year = now.getYear(); if (year < 1900){ year = 1900 + year; }
	month = now.getMonth()+1; if (month < 10){ month = "0" + month; }
	day = now.getDate(); if (day < 10){ day = "0" + day; }
	hour = now.getHours(); if (hour < 10){ hour = "0" + hour; }
	minute = now.getMinutes(); if (minute < 10){ minute = "0" + minute; }
        document.form1.now.value = year + "/" + month + "/" + day + " " + hour + ":" + minute;
        document.form1.yyyymmdd.value = year + "/" + month + "/" + day;
	
    // Cookies ---> hidden
	document.form1.name.value = getCookie("NAME");
	document.form1.corp.value = getCookie("CORP");
	document.form1.buka.value = getCookie("BUKA");
	document.form1.tel.value = getCookie("TEL");
	document.form1.mail.value = getCookie("MAIL");
	
    // OUTPUT Cookies
	setCookie("GRADE", check1);
	check3 = document.form1.flg.value;
	setCookie("FLG", check3);
	
    // not name ---> einfo.htm
	check2 = document.form1.name.value;
	if(check2 == "") { OpenWindowUPDATE();
                           return false; }

	return true;
}

//------------------------------------------------------------
//  input-check2 （Typical grade types）
//------------------------------------------------------------
function input_check2() {

    // ""data-check
        check1 = "00";
        for(i = 0;i< document.form2.grade.options.length; i++){
                  if(document.form2.grade.options[i].selected == true){
                        check1 = document.form2.grade.options[i].value;
                  }
        }
        if(check1 == "00") { alert("\nPlease input Data sheet"); return false; }

    // now-get
	now = new Date();
	year = now.getYear(); if (year < 1900){ year = 1900 + year; }
	month = now.getMonth()+1; if (month < 10){ month = "0" + month; }
	day = now.getDate(); if (day < 10){ day = "0" + day; }
	hour = now.getHours(); if (hour < 10){ hour = "0" + hour; }
	minute = now.getMinutes(); if (minute < 10){ minute = "0" + minute; }
        document.form2.now.value = year + "/" + month + "/" + day + " " + hour + ":" + minute;
        document.form2.yyyymmdd.value = year + "/" + month + "/" + day;

    // Cookies ---> hidden
	document.form2.name.value = getCookie("NAME");
	document.form2.corp.value = getCookie("CORP");
	document.form2.buka.value = getCookie("BUKA");
	document.form2.tel.value = getCookie("TEL");
	document.form2.mail.value = getCookie("MAIL");

    // OUTPUT Cookies
	setCookie("GRADE", check1);
	check3 = document.form2.flg.value;
	setCookie("FLG", check3);

    // not name ---> einfo.htm
	check2 = document.form2.name.value;
	if(check2 == "") { OpenWindowUPDATE();
                           return false; }

	return true;
}

//-------------------------------------------------------------
//  input-check3 （Injetion Molding condition）
//-------------------------------------------------------------
function input_check3() {

    // ""data-check
        check1 = "00";
        for(i = 0;i< document.form3.grade.options.length; i++){
                  if(document.form3.grade.options[i].selected == true){
                        check1 = document.form3.grade.options[i].value;
                  }
        }
        if(check1 == "00") { alert("\nPlease input Molding condition"); return false; }

    // now-get
	now = new Date();
	year = now.getYear(); if (year < 1900){ year = 1900 + year; }
	month = now.getMonth()+1; if (month < 10){ month = "0" + month; }
	day = now.getDate(); if (day < 10){ day = "0" + day; }
	hour = now.getHours(); if (hour < 10){ hour = "0" + hour; }
	minute = now.getMinutes(); if (minute < 10){ minute = "0" + minute; }
        document.form3.now.value = year + "/" + month + "/" + day + " " + hour + ":" + minute;
        document.form3.yyyymmdd.value = year + "/" + month + "/" + day;

    // Cookies ---> hidden
	document.form3.name.value = getCookie("NAME");
	document.form3.corp.value = getCookie("CORP");
	document.form3.buka.value = getCookie("BUKA");
	document.form3.tel.value = getCookie("TEL");
	document.form3.mail.value = getCookie("MAIL");

    // OUTPUT Cookies
	setCookie("GRADE", check1);
	check3 = document.form3.flg.value;
	setCookie("FLG", check3);

    // not name ---> einfo.htm
	check2 = document.form3.name.value;
	if(check2 == "") { OpenWindowUPDATE();
                           return false; }

	return true;
}


//-------------------------------------------------------------
//  input-check4 （Reports）
//-------------------------------------------------------------
function input_check4() {

    // ""data-check
        check1 = "00";
        for(i = 0;i< document.form4.grade.options.length; i++){
                  if(document.form4.grade.options[i].selected == true){
                        check1 = document.form4.grade.options[i].value;
                  }
        }
        if(check1 == "00") { alert("\nPlease input Reports"); return false; }

    // now-get
	now = new Date();
	year = now.getYear(); if (year < 1900){ year = 1900 + year; }
	month = now.getMonth()+1; if (month < 10){ month = "0" + month; }
	day = now.getDate(); if (day < 10){ day = "0" + day; }
	hour = now.getHours(); if (hour < 10){ hour = "0" + hour; }
	minute = now.getMinutes(); if (minute < 10){ minute = "0" + minute; }
        document.form4.now.value = year + "/" + month + "/" + day + " " + hour + ":" + minute;
        document.form4.yyyymmdd.value = year + "/" + month + "/" + day;

    // Cookies ---> hidden
	document.form4.name.value = getCookie("NAME");
	document.form4.corp.value = getCookie("CORP");
	document.form4.buka.value = getCookie("BUKA");
	document.form4.tel.value = getCookie("TEL");
	document.form4.mail.value = getCookie("MAIL");

    // OUTPUT Cookies
	setCookie("GRADE", check1);
	check3 = document.form4.flg.value;
	setCookie("FLG", check3);

    // not name ---> einfo.htm
	check2 = document.form4.name.value;
	if(check2 == "") { OpenWindowUPDATE();
                           return false; }

	return true;
}


//--------------------------------------------------------------
//  input-check5 （Yellow Card）
//--------------------------------------------------------------
function input_check5() {
    // ""data-check
        check1 = "00";
        for(i = 0;i< document.form5.grade.options.length; i++){
                  if(document.form5.grade.options[i].selected == true){
                        check1 = document.form5.grade.options[i].value;
                  }
        }
        if(check1 == "00") { alert("\nPlease input Yellow Card"); return false; }

    // now-get
	now = new Date();
	year = now.getYear(); if (year < 1900){ year = 1900 + year; }
	month = now.getMonth()+1; if (month < 10){ month = "0" + month; }
	day = now.getDate(); if (day < 10){ day = "0" + day; }
	hour = now.getHours(); if (hour < 10){ hour = "0" + hour; }
	minute = now.getMinutes(); if (minute < 10){ minute = "0" + minute; }
        document.form5.now.value = year + "/" + month + "/" + day + " " + hour + ":" + minute;
        document.form5.yyyymmdd.value = year + "/" + month + "/" + day;

    // Cookies ---> hidden
	document.form5.name.value = getCookie("NAME");
	document.form5.corp.value = getCookie("CORP");
	document.form5.buka.value = getCookie("BUKA");
	document.form5.tel.value = getCookie("TEL");
	document.form5.mail.value = getCookie("MAIL");

    // OUTPUT Cookies
	setCookie("GRADE", check1);
	check3 = document.form5.flg.value;
	setCookie("FLG", check3);

    // not name ---> einfo.htm
	check2 = document.form5.name.value;
	if(check2 == "") { OpenWindowUPDATE();
                           return false; }

	return true;
}
//----------------------------------------
//  GET Cookies
//----------------------------------------
function getCookie(key,  tmp1, tmp2, xx1, xx2, xx3) {
	tmp1 = " " + document.cookie + ";";
	xx1 = xx2 = 0;
	len = tmp1.length;
	while (xx1 < len) {
		xx2 = tmp1.indexOf(";", xx1);
		tmp2 = tmp1.substring(xx1 + 1, xx2);
		xx3 = tmp2.indexOf("=");
		if (tmp2.substring(0, xx3) == key) {
			return(unescape(tmp2.substring(xx3 + 1, xx2 - xx1 - 1)));
		}
		xx1 = xx2 + 1;
	}
	return("");
}

//----------------------------------------
//  SET Cookies
//----------------------------------------
function setCookie(key, val, tmp) {
	tmp = key + "=" + escape(val) + "; ";
	// tmp += "path=" + location.pathname + "; ";
	tmp += "expires=Fri, 31-Dec-2030 23:59:59; ";
	document.cookie = tmp;

}

//--------------------------------------------
// Window-open(einfo.htm)
//--------------------------------------------
function OpenWindowUPDATE() {
	var win2 = window.open('einfo.htm','newwin2','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
	win2.focus();
}

//--------------------------------------------
// Window-open(emsdsinfo.htm)
//--------------------------------------------
function OpenWindowMSDS() {
	var win2 = window.open('emsdsinfo.htm','newwin2','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
	win2.focus();
}
// -->