/* ***************************************************** */
/* COMMON SCRIPT */
/* ***************************************************** */

//FONT SELECT
//document.write ('<link rel="stylesheet" type="text/css" href="/common/css/font_' + (isWin () ? "win" : "mac") + '.css">');

//function isWin () { return (navigator.appVersion.indexOf ("Win") != -1); }


//WINDOW OPEN
function openWin() {
	window.open('','orderwin','Width=480,Height=360,resizable=yes,scrollbars=yes,status=yes');
}



/* ----------------------------------------------------- */
/* ABLE/ENABLE */
/* ----------------------------------------------------- */

/* --- ENABLE FORM PARTS --- */
function enableIt(obj)
{
	obj.disabled = false;
}

/* --- DISABLE FORM PARTS --- */
function disableIt(obj)
{
	obj.disabled = true;
}


/* ----------------------------------------------------- */
/* VISIBLE/INVISIBLE */
/* ----------------------------------------------------- */

/* --- ELEMENT[ID] ON/OFF--- */
function onoffObj (tid) {
    if(document.getElementById) {
        if (document.getElementById(tid).style.display == "block") {
            document.getElementById(tid).style.display = "none";
        } else {
            document.getElementById(tid).style.display = "block"
        }
    } else if(document.all) {
        if (document.all(tid).style.display == "block") {
            document.all(tid).style.display = "none";
        } else {
            document.all(tid).style.display = "block"
        }
    } else if(document.layers) {
        if (document.layers[tid].display == 'block') {
            document.layers[tid].display = 'none';
        } else {
            document.layers[tid].display = 'block';
        }
    }
}

// ON(SHOW)
function onObj (tid) {
    if(document.getElementById) {
        document.getElementById(tid).style.display = "block";
    } else if(document.all) {
        document.all(tid).style.display = "block";
    } else if(document.layers) {
        document.layers[tid].display = 'block';
    }
}

// OFF(HIDDEN)
function offObj (tid) {
    if(document.getElementById) {
        document.getElementById(tid).style.display = "none";
    } else if(document.all) {
        document.all(tid).style.display = "none";
    } else if(document.layers) {
        document.layers[tid].display = 'none';
    }
}

function setOnoffObj (tid,on_flg) {
	if(on_flg){
		onObj(tid);
	}else{
		offObj(tid);
	}
}


var submitCheckFlag = false;
function submitCheck() {
	if (submitCheckFlag) {
		return false;
	}
	submitCheckFlag = true;
	return true;
}

