function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function getOSType()
{
    var uAgent  = navigator.userAgent.toUpperCase();
    if (uAgent.indexOf("MAC") >= 0) return "MacOS";
    if (uAgent.indexOf("WIN") >= 0) return "Windows";
    if (uAgent.indexOf("X11") >= 0) return "UNIX";
    return "";
}

function subWinOpen(sAddress,iWidth,iHeight){
	var subWin;
	subWin = window.open(sAddress,"newwin","width="+iWidth+",height="+iHeight+",left=5,top=72,scrollbars=1,resizable=1,location=0");
	subWin.focus;
}

function subWinOpenWinName(WinName,sAddress,iWidth,iHeight){
	var subWin;
	subWin = window.open(sAddress,WinName,"width="+iWidth+",height="+iHeight+",left=5,top=72,scrollbars=1,resizable=1,location=0");
	subWin.focus;
}

function gotoLocation(sLinkAddr)
{
	window.top.location.href = sLinkAddr;
}

/*e-newsのアンカー用*/
function tohome(sLinkAddr)
{
	//window.location.href = sLinkAddr;
	window.open(sLinkAddr);
}
/*e-newsのアンカー用ここまで*/

function SendDataPost(sFrmName,sAddress,sTarget) {
	var objFrm = document.forms[sFrmName];
	objFrm.target = sTarget;
	objFrm.action = sAddress;
	objFrm.submit();
}

function subWinOpenAndPost(sFrmName,sAddress,iWidth,iHeight) {
	var subWin = window.open(sAddress,"postwin","width="+iWidth+",height="+iHeight+",scrollbars=1,resizable=1,location=0");
	var objFrm = document.forms[sFrmName];
	objFrm.target = "postwin";
	objFrm.action = sAddress;
	objFrm.submit();
}

function CsvDlQuestion(lCnt,sFrmName,sAddress){
	flag = confirm("処理対象件数："+lCnt+"件のCSVデータを作成してもよろしいですか？");

	if (flag){
		SendDataPost(sFrmName,sAddress,"_self");
	}
}
function csvMakeDBinsert(sUrl,sTitle){
	var subwin = window.open(sUrl, sTitle, "width=500, height=170, left=5, top=72,resizable=1");
	subwin.focus();
}

function CheckCB(fobj,ChkName,txtName){
	flag = fobj.elements[ChkName].checked;
	if (flag){
		fobj.elements[txtName].style.visibility = "visible";
	} else {
		fobj.elements[txtName].style.visibility = "hidden";
	}
}

function MM_openBrWindow(theURL,winName) { //v2.0
  window.open(theURL,winName,"scrollbars=yes,width=590,height=660");
}

function MM_openBrWindow2(theURL,winName) { //v2.0
  window.open(theURL,winName,"scrollbars=yes,width=590,height=550");
}

function MM_openBrWindowro(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function DispRomantePict(sFileName,WindowWidth,WindowHeight,sTitleName){
	 var mywin
	 var WindowWidth
	 var WindowHeight
	 var TableWidth
	 var TableHeight

	 TableWidth=WindowWidth-30;
	 TableHeight=WindowHeight-30;
	
	 mywin = window.open("","NewWindows","width="+WindowWidth+",Height="+WindowHeight);
	 mywin.focus();
	 mywin.document.open();
	 mywin.document.write("<html><head>");
	 mywin.document.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=Shift_JIS\">");
	 mywin.document.write("<title>拡大表示</title>");
	 mywin.document.write("</head>");
	 mywin.document.write("<body bgcolor='#FFFFFF'>");
	 mywin.document.write("<table border=0 width="+TableWidth+" height="+TableHeight+" cellspacing=0>");
	 mywin.document.write("<tr><td align=center vlaign=middle>");
	 mywin.document.write("<a href='JavaScript:window.close();'>");
	 mywin.document.write("<img src='"+sFileName+"' border=0></a>");
	 mywin.document.write("</td>");
	 mywin.document.write("</tr>");
	 mywin.document.write("</table>");
	 mywin.document.write("</html>");
	 mywin.document.close();
}

function MM_openBrWindowpop(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function subOpenHowto(){
	howtoWin = window.open("product00/pd_howto.asp","howtowin","width=650,height=650,scrollbars=1,resizable=1,location=0");
}

function subOpenHowtopf(){
	howtoWin = window.open("pf_howto.asp","howtowin","width=650,height=650,scrollbars=1,resizable=1,location=0");
}

function subOpenKMenu(){
	howtoWin = window.open('product00/KAIIN/Kaiin_Menu.asp',"howtowin","width=800,height=650,scrollbars=1,resizable=1,location=0");
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

var preName="osaka01";
var preFile="showroom/image/at_osaka/thumb/at_osaka01.jpg";

function changeImage(sName,sPreFile,sAftFile){
	document.images[preName].src=preFile;
        document.images[sName].src=sAftFile;
	preName=sName;
	preFile=sPreFile;
}
<!--ユニスペース写真ここから-->
photo=new Array();

function changephoto(id) {
	var doc=document;
	var j;
	var fname;
	var strname;

	doc.getElementById("mainphoto").src = doc.getElementById(id).src;
	fname = doc.getElementById(id).src;
	strname = fname.substring(fname.indexOf("images"),fname.length);

	j = 1;
	for(i=0; i<photo.length; i++) {
		if (strname != photo[i]) {
			doc.getElementById("list"+j).src = photo[i];
			j++;
		}
	}
}

function photopreloadimages() {
	var doc=document;

	doc.MM_p=new Array();

	for(i=0; i<photo.length; i++) {
		doc.MM_p[i]=new Image;
		doc.MM_p[i].src=photo[i];
	}
}
<!--ユニスペース写真ここまで-->

<!--ミュージアムここから-->
function muse_jumpMenu(sFrmName,sElName) {
	var objFrm = document.forms[sFrmName];

	var sLink = objFrm.elements[sElName].value;
	if (!sLink == "") {
		objFrm.action = sLink;
		objFrm.submit();
	}
}
<!--ミュージアムここまで-->

<!--hotspotここから-->
function MM_openBrWindow(theURL,winName) { //v2.0
  window.open(theURL,winName,"scrollbars=yes,width=590,height=660");
}

function MM_openBrWindow2(theURL,winName) { //v2.0
  window.open(theURL,winName,"scrollbars=yes,width=590,height=550");
}
<!--hotspotここまで-->
