*
*
*/
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
// PDF購入用
function pdfTo(goods_code,item_code,pid,headline,mediaName,printedDate,characterCount){
document.file_download.goods_code.value = goods_code;
document.file_download.item_code.value = item_code;
document.file_download.headline.value = headline;
document.file_download.pid.value = pid.split("/").join("\\");
document.file_download.mediaName.value = mediaName;
document.file_download.printedDate.value = printedDate;
document.file_download.characterCount.value = characterCount;
document.file_download.submit();
}
// 全選択checkbox
function allcheck(target, targetId) {
// チェックボックスgroup(chks)
var children = document.getElementById(targetId).childNodes;
// チェックボックスgroup(chks)のtag名(input)
var list = document.getElementById(targetId).getElementsByTagName('input');
// 本文チェックボックス
for(var n=0; n <= list.length-1; n++) {
// 全選択checkboxにチェックON
if (target.checked == true) {
// "chks"group内のtypeがチェックボックスの場合
if (list[n].type == "checkbox") {
// チェックON
list[n].checked = true;
}
// 全選択チェックボックスON
document.getElementById('all_chek2').checked = true;
document.getElementById('all_chek').checked = true;
// 全選択checkboxにチェックがOFF
} else {
if (list[n].type == "checkbox") {
// チェックOFF
list[n].checked = false;
}
// 全選択チェックボックスOFF
document.getElementById('all_chek2').checked = false;
document.getElementById('all_chek').checked = false;
}
}
}
// 法人ID未ログイン時
function loginCorp()
{
// 個人・法人ログイン選択ウィンドウをクローズ
document.getElementById("loginform").style.display = "none";
// 法人ログインウィンドウをオープン
document.getElementById("logincorp").style.display = "";
// 法人購入時の注意文言オープン
document.getElementById("attention").style.display = "";
}
// 詳細設定の開閉
function detailSearch(type,easyCnt,detailCnt)
{
var easyDSP = "";
var detailDSP = "none";
// 詳細条件のオープン
if (parseInt(type) == parseInt(1)) {
easyDSP = "none";
detailDSP = "";
}
for(var i=1;i<=easyCnt;i++) {
document.getElementById("easy" + i).style.display = easyDSP;
}
for(var i=1;i<=detailCnt;i++) {
document.getElementById("detail" + i).style.display = detailDSP;
}
}
// PDFダウンロード画面制御
function newWin()
{
//Netscape Navigator2.0
if(navigator.appVersion.charAt(0) == 2 && navigator.appName.charAt(0) == "N") {
document.pdfDownload.target = "_blank";
}
//Netscape Navigator3.0
else if(navigator.appVersion.charAt(0) == 3 && navigator.appName.charAt(0) == "N") {
document.pdfDownload.target = "_blank";
}
//Netscape Navigator4.0
else if(navigator.appVersion.charAt(0) >= 4 && navigator.appName.charAt(0) == "N") {
document.pdfDownload.target = "_self";
}
//Internet Explorer3.0の時飛ばすリンク先
else if(navigator.appVersion.charAt(0) == 3 && navigator.appName.charAt(0) == "M") {
document.pdfDownload.target = "_blank";
}
//Internet Explorer4.0以上の時飛ばすリンク先
else if(navigator.appVersion.charAt(0) >= 4 && navigator.appName.charAt(0) == "M") {
document.pdfDownload.target = "_blank";
}
//Internet Explorer(その他)の時飛ばすリンク先
else if(navigator.appName.charAt(0) == "M") {
document.pdfDownload.target = "_blank";
}
}
// 次ページ/前ページ遷移制御
function nextPage(){
document.nextPage.submit();
}
function prevPage(){
document.prevPage.submit();
}
// -->