

<!-- //
function submitForm1() {
 var doc = document;
 doc.Search1.qFreeword.value = doc.Search1.qFreeword6.value + doc.Search1.qFreeword3.value;
 doc.Search1.submit();
}
function submitForm2() {
if(!checkSubmitForm2()) return false;
document.Search2.submit();
}

function submitForm3() {
 var doc = document;
 doc.Search3.qFreeword.value = doc.Search3.qFreeword5.value + 'P' + doc.Search3.qFreeword3.value;
 doc.Search3.submit();
}
function submitForm4() {
document.Search4.submit();
}
function submitForm5() {
if(!checkSubmitForm5()) return false;
document.Search5.submit();
}

function checkSubmitForm2() {
 var str = jQuery('#input_itemname').val();
 if( !str || str == '' ) {
  alert('商品名を入力してください');
  jQuery('#input_itemname').focus();
  return false;
 }

 return true;
}
function checkSubmitForm5() {
 var str = jQuery('#input_orderno').val();
 if( !str || str == '' ) {
  alert('オーダーナンバーを入力してください');
  jQuery('#input_orderno').focus();
  return false;
 }
 if( CheckLength(str, 1) ) {
  alert('半角で入力してください');
  jQuery('#input_orderno').focus();
  return false;
 }
 return true;
}

function CheckLength(str,flg) {
    for (var i = 0; i < str.length; i++) {
        var c = str.charCodeAt(i);
        if ( (c >= 0x0 && c < 0x81) || (c == 0xf8f0) || (c >= 0xff61 && c < 0xffa0) || (c >= 0xf8f1 && c < 0xf8f4)) {
            if(!flg) return true;
        } else {
            if(flg) return true;
        }
    }
    return false;
}

// -->
