
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 changeWin(menu_WIN,main_WIN,top_WIN){
	parent.leftFrame.location.href=menu_WIN;
	parent.mainFrame.location.href=main_WIN;
	parent.topFrame.location.href=top_WIN;
}

function MM_popupMsg(msg) { //v1.0
  alert(msg);
}

//--親または子ウインドウの有無確認関数 
function win_closed(winVar) {
    var ua = navigator.userAgent
    if( !!winVar )
        if( ( ua.indexOf('Gecko')!=-1 || ua.indexOf('MSIE 4')!=-1 )
             && ua.indexOf('Win')!=-1 ) 
             return winVar.closed
        else return typeof winVar.document  != 'object'
    else return true
  }

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

