function Appl(wh){
    if(wh=='0'){
        document.frmEntry.action = "../scripts/entry.asp";
    } else if (wh=='1'){
        document.frmEntry.action = "../scripts/try2.asp";
    }
    document.frmEntry.submit();
}

function copyright(){
	y = new Date().getFullYear();
	document.write('Copyright&copy; 1998-' + y + ' Cybax Inc. All rights reserved.');
}


//新聞ウィンドウ
pubwin = window;
function openwin(strHTML) {
	if ((pubwin == window) || pubwin.closed) {
		pubwin = open(strHTML, "pubwin","scrollbars=1,resizable=1");
	} else {
		pubwin.focus();
		window.pubwin.document.location.href = strHTML;
	}
}

//お問い合わせフォームの表示
inqwin = window;
function inquiry() {
	if ((inqwin == window) || inqwin.closed) {
		inqwin = open('../info/inquiry.html', "inqwin","scrollbars=yes,width=580,height=500");
	} else {
		inqwin.focus();
		window.inqwin.document.location.href = '../info/inquiry.html';
	}
}
function inquiryTop() {
	if ((inqwin == window) || inqwin.closed) {
		inqwin = open('info/inquiry.html', "inqwin","scrollbars=yes,width=580,height=500");
	} else {
		inqwin.focus();
		window.inqwin.document.location.href = 'info/inquiry.html';
	}
}

// ○月○日現在
function showNowDate(){
	nowDay = new Date();
	y = getFullYear();
	m = getMonth() + 1;
	d = getDate();
	document.write("（" + y + "年" + m + "月" + d + "日現在）");
}

