*
*
*/
function checkDoubleClick(e) {
if (typeof(checkContext) == 'undefined') { return; }
var target_ele;
if (window.event) { e = window.event;}
if (!e) { return; }
if (e.srcElement) {
target_ele = e.srcElement;
} else {
if (e.target) {
target_ele = e.target;
}
}
if (!target_ele) { return; }
for (i = 0; i < checkContext.length; ++i) {
checkObj = checkContext[i];
if (!checkObj) { continue; }
//IDがチェック対象オブジェクトのIDと一致?
if (target_ele.id == checkObj.id) {
//既にクリックされた?
//(ボタンのdisabled属性の変更が効かない場合)
if (typeof(checkObj.clicked) != 'undefined' && checkObj.clicked) {
//クリックイベントを消去
if (e.preventDefault) {
e.preventDefault();
} else {
//マウスカーソルを待ち状態に変更
target_ele.style.cursor = "wait";
//ボタンをdisabledに変更
target_ele.disabled = true;
e.returnValue = false;
e.cancelBubble = true;
}
// target_ele.style.cursor = "wait";
// target_ele.disabled = true;
if (typeof(checkObj.message) == 'string' && checkObj.message != '') {
alert(checkObj.message);
}
//初回のクリック?
} else {
if (!e.returnValue && e.preventDefault) {
//ボタンをdisabledに変更
target_ele.disabled = true;
}
//マウスカーソルを待ち状態に変更
target_ele.style.cursor = "wait";
//クリック済みに設定
checkObj.clicked = true;
//クリック時に呼び出す関数が登録されている?
if (typeof(checkObj.func) == 'function') {
checkObj.func(target_ele);
}
}
}
}
}
//2007.10.22 update by toshi end
// 全購入用submit処理
function sendTo(){
document.all_purchase.submit();
}
// PDF購入用
function pdfTo(goods_code,item_code,pid,hd,mnam,pg1,chr){
document.file_download.goods_code.value = goods_code;
document.file_download.item_code.value = item_code;
document.file_download.pid.value = pid;
document.file_download.hd.value = hd;
document.file_download.mnam.value = mnam;
document.file_download.pg1.value = pg1;
document.file_download.chr.value = chr;
document.file_download.submit();
}
// -->