

//ポップアップ
function gofood(url)
	{
	var newwin = window.open(url,"gofood","width=420,height=560,scrollbars=yes,resizable=no,toolbar=no");
	newwin.focus();
	}


//検索結果セルからのリンク
function TLINK(x)
	{
	location.href=x
	}


//フォームの背景色変更
function Focus(obj)
	{
    obj.style.backgroundColor = "#F5F4EE";
	}

function Blur(obj)
	{
    obj.style.backgroundColor = "#ffffff";
	}


//カレンダー日付の背景変更
function bgColorChanger(o,calender)
	{
	 o.style.backgroundColor = calender;
	}


//チップヘルプ（カレンダー）
 var timerID = 0;
 var sec = 2.0 * 1000;	//チップヘルプを表示する時間。2.0秒。

 function showPrice(divID,x,y) //チップヘルプを表示する関数
 {	
	var offX = offY = 0; //初期値
	if (document.layers) chipOBJ = document.layers[divID]; //NN4対応
	if (document.all) chipOBJ = document.all[divID].style; //IE4対応
	if (document.getElementById) //DOM対応
	{
		chipOBJ = document.getElementById(divID).style;
		if (document.all) //IE5以降のスクロール値取得
		{ 
//			offX = document.body.scrollLeft;
//			offY = document.body.scrollTop;
			offX = document.documentElement.scrollLeft;
			offY = document.documentElement.scrollTop;
		}
	}

	chipOBJ.display = "block"; //チップヘルプ表示
	chipOBJ.left = x + offX - 15; //ポップアップ位置
	chipOBJ.top = y + offY - 10; //y方向にカーソル分
//	chipOBJ.left = x; //ポップアップ位置
//	chipOBJ.top = y; //y方向にカーソル分
	timerID = setTimeout("hidePrice('"+divID+"')",sec); //一定時間表示したら消す 
}

function hidePrice(divID) //チップヘルプを非表示にする関数
 {
	if (document.layers) chipOBJ = document.layers[divID];
	if (document.all) chipOBJ = document.all[divID].style;
	if (document.getElementById) chipOBJ = document.getElementById(divID).style;
	chipOBJ.display = "none"; //チップヘルプ非表示
	clearTimeout(timerID); //タイマーを解除
 }


//地図
function MM_findObj(n, d) { //v4.01
  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);
  if(!x && d.getElementById) x=d.getElementById(n); 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_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 seltab(bpref, hpref, id_max, selected) {
  if (! document.getElementById) return;
  for (i = 0; i <= id_max; i++) {
    if (! document.getElementById(bpref + i)) continue;
    if (i == selected) {
      document.getElementById(bpref + i).style.visibility = "visible";
      document.getElementById(bpref + i).style.position = "";
      document.getElementById(hpref + i).className = "selected";
    } else {
      document.getElementById(bpref + i).style.visibility = "hidden";
      document.getElementById(bpref + i).style.position = "absolute";
      document.getElementById(hpref + i).className = "";
    }
  }
}

// 郵便番号検索ウインドウを開く
function zipWinOpen() {
    if (document.kaiin_form.vzip.value == "") {
        alert("郵便番号を入力してください");
        return false;
    } else if (document.kaiin_form.vaddr.value != "") {
        alert("既に住所が入力されています");
        return false;
    }

    zip = document.kaiin_form.vzip.value;
    var zipwin = window.open('/cgi-bin/postal/getaddr.cgi?template=result_myyado.html&postalcode=' + zip ,'pagezip',
        'resizable=1,scrollbars=0,menubar=0,directories=0,left=80,top=0,statusbar=0,location=0,width=250,height=200');
    zipwin.focus();
}































