// Print swf Start ---------------------------------------------
function PrintSwf(swfUrl, swfWidth, swfHeight) {
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='" + swfWidth + "' height='" + swfHeight + "'>");
	document.write("<param name='movie' value='" + swfUrl + "' />");
	document.write("<param name='quality' value='high' />");
	document.write("<param name='menu' value='false' />");
	document.write("<embed src='" + swfUrl + "' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='" + swfWidth + "' height='" + swfHeight + "'></embed>");
	document.write("</object>");
}
// Print swf End

// Print iframe Start ------------------------------------------
function PrintIframe(iframeUrl, iframeWidth, iframeHeight) {
	document.write("<iframe src='" + iframeUrl + "' width='" + iframeWidth + "' height='" + iframeHeight + "' frameborder='0' scrolling='no' marginheight='0' marginwidth='0'></iframe>");
}
// Print iframe End

// Window control Start ----------------------------------------
function OpenWindow(openUrl) {
	window.open(openUrl);
}

function CloseWindow() {
	window.close();
}
// Window control End

// History control Start ---------------------------------------
function HistoryBack() {
	history.back();
}
// History control End

// Input tips Start --------------------------------------------
var InputIds = new Array(0);
var InputCount = 0;
function ClearInput(InputId) {
	InputFlag = false; for(Count = 0; Count < InputIds.length; Count++) { if(InputIds[Count] == InputId) { InputFlag = true; break; } } if(InputFlag == false) { document.getElementById(InputId).value = ''; document.getElementById(InputId).style.color = '#000000'; InputIds[InputCount] = InputId; InputCount++; }
}
// Input tips End

// Countdown Start
function CountDown() {
	var nowDate = new Date();
	var pointDate = new Date(2009,10-1,17);
	var countDown = Math.ceil((pointDate.getTime() - nowDate.getTime()) / (1000*60*60*24));

	if(countDown > 0) {
	   document.write("開催まで<br />あと<strong>" + countDown + "</strong>日！");
	} else if(countDown == 0) {
	   document.write("<em>本日<br />開催です。</em>");
	} else {
	   document.write("<em>10月20日まで<br />開催中です。</em>");
	}
}

