function writeDocument(s){document.write(s);}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function fullScreen(theURL) {
window.open(theURL, '', 'fullscreen=yes, scrollbars=auto');
}

/*文字化け対策*/
function get_response_text ( req ) {
var text = req.responseText;
if ( navigator.appVersion.indexOf( "KHTML" ) > -1 ) {
var esc = escape( text );
if ( esc.indexOf("%u") < 0 && esc.indexOf("%") > -1 ) {
text = decodeURIComponent( esc );
}
}
return text;
}
function CalendarSwf(DivID,URL)
{	
	var d = document.getElementById(DivID);
	d.innerHTML =
	'<OBJECT codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"'+
		'height="188" width="188" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" VIEWASTEXT>'+
		'<param name="AllowScriptAccess" value="sameDomain">'+
		'<PARAM NAME="Movie" VALUE="' + URL + '"'+
		'<param name="Quality" value="High">'+
		'<param name="Base" value=".">'+
		'<param name="bgcolor" value="#ffffff">'+
		'<embed src="' + URL + '" quality="high" base="." bgcolor="#ffffff" width="188" height="188" name="calendar" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'+
		'</embed>'+
	'</OBJECT>';
}
