<!--

/******************************************************
ポップアップウィンドウの設定モジュール
******************************************************/

var iwidthwk = 630;              //幅を指定
var iheightwk = 530;             //高さを指定
var key,popup_url,winname ;
var agent = navigator.userAgent;  
var iwidth,iheight;


function close_window(){
      parent.window.close()
}

function popup_window(key) {

      if ( key == "yokuaru" ) {
            popup_url = "http://www.tandm.co.jp/index.html" ;
      }
      else if ( key == "yougo" ) {
            popup_url = "http://www.tandm.co.jp/index.html" ;
      }
      else if ( key == "goriyou" ) {
            popup_url = "http://www.tandm.co.jp/index.html" ;
      }
      else if ( key == "kojin" ) {
            popup_url = "http://www.tandm.co.jp/index.html" ;
      }
      else if ( key == "kanyu" ) {
            popup_url = "http://www.tandm.co.jp/index.html" ;
      }
     else {
            popup_url = "http://www.tandm.co.jp/index.html" ;
     }

      winname = window.open(popup_url,"ORIX_DIRECT","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="  +  iwidthwk  +  ",height="  +  iheightwk +  ",left=30,top=30") ;
      winname.focus() ;

      //IE系の処理//////////
      if (agent.indexOf("MSIE") > -1 ) {
            winname.resizeTo(iwidthwk,iheightwk);
      }

 }

//ポップアップウィンドウからそれを開いた親ウィンドウへのリンクの制御
function parent_link(linkwk){
	if ( window.opener == null || window.opener == false || window.opener == "" || window.opener.closed ) {
      	   winname2 = window.open(linkwk,"ORIX_DIRECT2","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes") ;
               winname2.focus() ; 
     }
     else {
      	   window.opener.focus() ; 	 
      	   window.opener.location.href = linkwk ;    
     }
/*
	winname = window.open(linkwk,"FIRST_SCREEN","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes") ;
	winname.focus();
*/
}

//新しいウインドウで開く
function newWindow_link(linkwk){

//	winname = window.open(linkwk,"ORIX_DIRECT","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes") ;
	winname = window.open(linkwk,"ORIX_DIRECT_FROM_TC","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes") ;
	winname.focus();
}

//新しいウインドウで開く(ツールバー等なし)
//Add 2003/12/15 12月商品改定対応 A.Takahashi
function newWindow_link2(linkwk){
	var iwidthwk = 630;              //幅を指定
	var iheightwk = 530;             //高さを指定

	winname = window.open(linkwk,"ORIX_DIRECT_FROM_TC","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="  +  iwidthwk  +  ",height="  +  iheightwk +  ",left=60,top=60") ;
	winname.focus();
}

//新しいウインドウで開く(アドレスバーのみ)
//Add 2004/11/11 必要保障額シミュレーション対応 S.Fukushima
function newWindow_link3(linkwk){
	var iwidthwk = 588;              // 幅を指定
	var iheightwk = 450;             // 高さを指定

	winname = window.open(linkwk,"ORIX_DIRECT_FROM_TC","toolbar=no,location=yes,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width="  +  iwidthwk  +  ",height="  +  iheightwk +  ",left=60,top=60") ;
	winname.focus();

}

//-->

