/*
	Standards Compliant Rollover Script
	Author : Daniel Nolan
	http://www.bleedingego.co.uk/webdev.php
*/

function initRollovers() {
	if (!document.getElementById) return

	var aPreLoad = new Array();
	var sTempSrc;
	var aImages = document.getElementsByTagName('img');

	for (var i = 0; i < aImages.length; i++) {
		if (aImages[i].className == 'imgover') {
			var src = aImages[i].getAttribute('src');
			var ftype = src.substring(src.lastIndexOf('.'), src.length);
			var hsrc = src.replace(ftype, '_f2'+ftype);

			aImages[i].setAttribute('hsrc', hsrc);

			aPreLoad[i] = new Image();
			aPreLoad[i].src = hsrc;

			aImages[i].onmouseover = function() {
				sTempSrc = this.getAttribute('src');
				this.setAttribute('src', this.getAttribute('hsrc'));
			}

			aImages[i].onmouseout = function() {
				if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_f2'+ftype, ftype);
				this.setAttribute('src', sTempSrc);
			}
		}
	}
	initInputRollovers();
}

function initInputRollovers() {
	if (!document.getElementById) return

	var aPreLoad = new Array();
	var sTempSrc;
	var aInputs = document.getElementsByTagName('input');

	for (var i = 0; i < aInputs.length; i++) {
		if (aInputs[i].className == 'imgover') {
			var src = aInputs[i].getAttribute('src');
			var ftype = src.substring(src.lastIndexOf('.'), src.length);
			var hsrc = src.replace(ftype, '_f2'+ftype);

			aInputs[i].setAttribute('hsrc', hsrc);

			aPreLoad[i] = new Image();
			aPreLoad[i].src = hsrc;

			aInputs[i].onmouseover = function() {
				sTempSrc = this.getAttribute('src');
				this.setAttribute('src', this.getAttribute('hsrc'));
			}

			aInputs[i].onmouseout = function() {
				if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_f2'+ftype, ftype);
				this.setAttribute('src', sTempSrc);
			}
		}
	}
}

<!--
  function showhide(id){
    if(document.getElementById){
      if(document.getElementById(id).style.display == "block"){
        document.getElementById(id).style.display = "none";
      }else{
        document.getElementById(id).style.display = "block";
      }
    }
  }
  function showhide1(id){
    if(document.getElementById){
      if(document.getElementById(id).style.display == "block"){
        document.getElementById(id).style.display = "block";
      }else{
        document.getElementById(id).style.display = "block";
      }
    }
  }
  function showhide2(id){
    if(document.getElementById){
      if(document.getElementById(id).style.display == "none"){
        document.getElementById(id).style.display = "none";
      }else{
        document.getElementById(id).style.display = "none";
      }
    }
  }
  function showhidemap1(id){
    if(document.getElementById){
      if(document.getElementById(id).style.display == "block"){
        document.getElementById(id).style.display = "block";
      }else{
        document.getElementById(id).style.display = "block";
      }
    }
  }
  function showhidemap2(id){
    if(document.getElementById){
      if(document.getElementById(id).style.display == "none"){
        document.getElementById(id).style.display = "none";
      }else{
        document.getElementById(id).style.display = "none";
      }
    }
  }
//-->


function OpenWin(planCode){
    win=window.open("http://www.dbpowers.net/~shiretoko/reservation.php?pln="+planCode,"new","width=765,height=544,scrollbars=1,status=0,resizable=1,location=0,toolbar=0");
}

function OpenWinC(planCode){
    win=window.open("http://www.dbpowers.net/~shiretoko/reservationCar.php?pln="+planCode,"new","width=765,height=544,scrollbars=1,status=0,resizable=1,location=0,toolbar=0");
}



<!--ウィンドウを閉じたり開いたり

imgwin = '';
function img_win_open(img)
{
  if (img != '')
  { 
    image=new Image(); 
    image.src=(img);
    img_win_openWin(img,image.width,image.height,0,0);
  }
}
function img_win_openWin(img,width,height,sb,rs)
{
  if (img != '')
  {
    if(imgwin !='')
    {
      imgwin.close();
    }
    opt="width="+width+",height="+height+",scrollbars="+sb+",resizable="+rs;
    imgwin=window.open('','_blank',opt);

    imgwin.document.open();
    imgwin.document.writeln("<html><head><title>"+img+"</title></head>");
    imgwin.document.writeln("<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>");
    imgwin.document.writeln("<div><img src='"+img+"'></div></body></html>"); 
    imgwin.document.close();

    imgwin.focus(); 
  }
}


function wc()
{
window.close();
}

function check_win()
{
	if ((navigator.userAgent.indexOf("Mac","Win")> -2))
	{
		if(window.opener) window.close(); else window.location.href='http://www.fujiwara-seimen.co.jp/';
	}else{
		if(!window.opener.closed) window.close(); else window.location.href='http://www.fujiwara-seimen.co.jp/';
	}
}

//-->
