function openG(){ 
}
function MM_findObj(n, d) { //v3.0
  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); 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 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];}}
}

var start_date = new Date(); 

// 初期化 
var hour = 0; 
var min = 0; 
var sec = 0; 
var now_date = 0; 
var datet = 0; 

function timer_clock(){ 

now_date = new Date(); 

datet = parseInt((now_date.getTime() - start_date.getTime()) / 1000); 

// hour = parseInt(datet / 3600); 
min = parseInt(datet / 60); 
sec = datet % 60; 

// 数値が1桁の場合、頭に0を付けて2桁で表示する指定 

if(min < 10) { min = "0" + min; } 
if(sec < 10) { sec = "0" + sec; } 

var clock1 =min + '分' + sec + '秒'; // パターン2 


document.updateform.clock.value = clock1;


setTimeout("timer_clock()", 1000); 

} 

function parentwindowdisp(url){ 

if(!window.opener || window.opener.closed){ // メインウィンドウの存在をチェック 
//window.alert('メインウィンドウがありません'); // 存在しない場合は警告ダイアログを表示 
} 
else{ 
window.opener.location.href = url; // 存在する場合はページを切りかえる 
} 

} 



// marqueeのかわり#3
var Marquee = function ( id, opt ){
    if( ! document.getElementById(id) ) throw 'invalid id. [' + id + ']';
    var option = opt || {};
    this.id     = id;
    this.amount = option.amount || 6;
    this.delay  = option.delay  || 100;
    this.position = Number.POSITIVE_INFINITY; // means out of range.
    this._wrap();
    this.start();
}
Marquee.prototype = {
    /* wrap child nodes */
    _wrap : function() {
        var t = document.getElementById( this.id );
        with ( t.style ){
            position = 'relative'; // for ie6.
            overflow = 'hidden';
        }
        var w = document.createElement( 'div' );
        with ( w.style ){
            margin     = '0';
            padding    = '0';
            background = 'transparent';
            border     = 'none';
        }
        t.normalize();
        while( t.firstChild ){
            w.appendChild( t.removeChild( t.firstChild ) );
        }
        t.appendChild(w);
        /* get minimum width. */
        w.style.position = 'absolute';
        this.minWidth = w.offsetWidth;
        /* put back */
        w.style.position = 'relative';
        w.style.width = '100%'; // for ie6.
    },
    start : function() {
        this.stop();
        this._next();
    },
    _next : function() {
        var t = document.getElementById( this.id );
        this.curWidth = Math.min(t.offsetWidth,t.parentNode.offsetWidth); // dirty. (for "overflow:hidden" parent)
        this.position = this.position - this.amount;
        if ( this._isOutOfRange() ) {
            this.position = this._startPosition();
        }
        var w = t.firstChild;
        w.style.left = this.position + 'px';
        var self = this;
        this.tid = window.setTimeout(
            function(){ self._next(); },
            this.delay
        );
    },
    _startPosition : function() {
        return ( this.amount > 0 ) ?  this.curWidth
                                   : -this.minWidth;
    },
    _isOutOfRange : function() {
        return this.position < -this.minWidth || this.curWidth < this.position;
    },
    stop : function() {
        if ( this.tid ) window.clearTimeout( this.tid );
        this.tid = null;
    },
    isMarqueeing : function() {
        return ( this.tid ) ? true : false;
    }
}


//フラッシュのロード
function FlashLoad (FILE_PATH,WIDTH_PX,HEIGHT_PX,OBJECT_TITLE) {
	document.write (
		'<object data="' + FILE_PATH + '" type="application/x-shockwave-flash"' + 
		' width="' + WIDTH_PX + '" height="' + HEIGHT_PX + '"' + 
		' title="' + OBJECT_TITLE + '">' + 
		'<param name="movie" value="' + FILE_PATH + '" \/>' + 
		'<param name="quality" value="high" \/>' + 
		'<\/object>'
		);
				
	}

//フラッシュのロード
function FlashLoad2 (FILE_PATH,WIDTH_PX,HEIGHT_PX,OBJECT_TITLE,FLASH_VARS) {
	document.write (
		'<object data="' + FILE_PATH + '" type="application/x-shockwave-flash"' + 
		' width="' + WIDTH_PX + '" height="' + HEIGHT_PX + '"' + 
		' title="' + OBJECT_TITLE + '">' + 
		'<param name="movie" value="' + FILE_PATH + '" \/>' + 
		'<param name="quality" value="high" \/>' +
		'<param name="FlashVars" value="' + FLASH_VARS + '" \/>' +  
		'<\/object>'
		);
				
	}	
	
//ウィンドウOPENフラッシュよりロード	
function openWindow(URL, winName, features){
window.open(URL, winName, 'width=850 height=780 scrollbars=yes');
}