

<!--

  //--親または子ウインドウの有無確認関数 
  function win_closed(opener) {
    var ua = navigator.userAgent
    if( !!opener )
        if( ( ua.indexOf('Gecko')!=-1 || ua.indexOf('MSIE 4')!=-1 )
             && ua.indexOf('Win')!=-1 ) 
             return opener.closed
        else return typeof opener.document  != 'object'
    else return true
  }



if(win_closed(opener) == false)
document.write('<link rel="stylesheet" href="/gwg/css/print_hyouji.css" type="text/css">');

if(win_closed(opener) == false)
document.write('<link rel="stylesheet" href="/gwg/css/print.css" type="text/css" media="print">');


function openPrint(){
window.open(window.self.location.pathname);
}


/* print() が使えるブラウザかどうかを先に判断しておく */
if (navigator.userAgent.match(/msie (\d)/i))
   v = (eval(RegExp.$1) >= 5) ? 1 : 0;
else if (self.innerWidth)
   v = (eval(navigator.appVersion.charAt(0)) >= 5) ? 1 : 0;
else v = 0;

function print_out() {

   /* print() が使えるブラウザなら印刷を実行 */
   if (v) self.print();
   else alert("お使いのブラウザではこの機能は利用できません");
}


//-->

