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 WindowOpen(file) {
open(file,"win","toolbar=yes,scrollbars=yes,resizable=yes,width=750,height=580");}

function WindowOpen1(file) {
file = "../../../service/foreign/openwin/" + file;
open(file,"Popup","toolbar=yes,scrollbars=yes,resizable=yes,width=650,height=480");}

function WindowOpen2(file) {
file = "../../../openwin/" + file;
open(file,"Popup2","toolbar=no,scrollbars=yes,resizable=yes,width=700,height=580");}

function WindowOpen3(file) {
file = "../../../service/sate/openwin/" + file;
open(file,"Popup2","toolbar=no,scrollbars=yes,resizable=yes,width=700,height=580");}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

//** dairi_comフォルダ用 サイトポリシー //
function open_site01(){
	subWin = window.open("../../../sitepolicy/sitepolicy.html","order","status=yes,toolbar=yes,scrollbars=yes,resizable=yes,top=50,left=50,width=640,height=480");
}
//** 代理店各フォルダ用 サイトポリシー //
function open_site02(){
	subWin = window.open("../../sitepolicy/sitepolicy.html","order","status=yes,toolbar=yes,scrollbars=yes,resizable=yes,top=50,left=50,width=640,height=480");
}
//** dairi_comフォルダ用 プライバシーポリシー //
function open_privacy01(){
	subWin = window.open("../../../privacypolicy/privacypolicy.html","order","status=yes,toolbar=yes,scrollbars=yes,resizable=yes,top=50,left=50,width=640,height=480");
}
//** 代理店各フォルダ用 プライバシーポリシー //
function open_privacy02(){
	subWin = window.open("../../privacypolicy/privacypolicy.html","order","status=yes,toolbar=yes,scrollbars=yes,resizable=yes,top=50,left=50,width=640,height=480");
}
//** 画像変更
function imgChange(name,cgf){
	//name=this.name cgf=変更ファイル名
	var nowsrc = document.getElementsByName(name)[0].src;
	var cgsrc = nowsrc.substr(0,nowsrc.lastIndexOf("/")) + "/" + cgf;
	document.getElementsByName(name)[0].src=cgsrc;
}
