/* デジタルカタログ関連 */
function jump(catalogNumber, pageNum){
	URL=digitalCatalogURL + catalogNumber + "/index.html"+"?directPage="+pageNum;//
	new_window1=window.open(URL,"digicata","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=920,height=655");
	new_window1.moveTo(0, 0);
}

function writeFlash( swf , width , height )
{
	var htm = ""
	htm+="<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'"
	htm+="		  codebase='http://download.macromedia.com/pub/shockwave/"
				  htm+="cabs/flash/swflash.cab'"
	htm+="		  width   = " + width
	htm+="		  height  = " + height + ">"
	htm+="<param  name    = movie value=" + swf + ">"
	htm+="<param  name    = quality value=high>"
	htm+="<embed  src     = " + swf + " "
	htm+="		  quality = high  "
	htm+="		  width   = "+ width
	htm+="		  height  = " + height
	htm+="		  type    = 'application/x-shockwave-flash' "
	htm+="		  pluginspage='http://www.macromedia.com/go/getflashplayer'>"
	htm+="</embed>"
	htm+="</object>"

	document.write(htm)
}

/* セッション関連 */
function keepSession(key) {
	if (window.ActiveXObject && !window.XMLHttpRequest) {
		window.XMLHttpRequest = function() {
			try { return (new ActiveXObject('Msxml2.XMLHTTP')); } catch (e) {}
			try { retrurn (new ActiveXObject('Microsoft.XMLHTTP')); } catch (e) {}
			return (null);
		}
	}
    xmlhttp = new XMLHttpRequest();
    xmlhttp.open('POST', globalKeepSessionURL, true);
	xmlhttp.setRequestHeader('Content-Type' , 'application/x-www-form-urlencoded');
	xmlhttp.send('session_id=' + key);
}
