  function resize(id,name)
  {
   /* 
    var adding = 0;
      var app = navigator.appName.charAt(0);
      if(navigator.userAgent.indexOf('Safari') != -1){
          document.getElementById(id).height = parent.frames[name].document.body.scrollHeight + 80 +adding;
          //alert("Safari:" + parent.frames[name].document.body.scrollHeight);
      }else if (app == "N")
      {
          //document.getElementById(id).height = parent.frames[name].document.height +1;
          document.getElementById(id).height = parent.frames[name].document.body.scrollHeight +1 +adding;
          //alert("N:" + parent.frames[name].document.body.scrollHeight);
      }
      else
      {
          document.getElementById(id).height = parent.frames[name].document.body.scrollHeight + 1 +adding;
          //alert("else:" + parent.frames[name].document.body.scrollHeight);
      }
      //alert("resize:" + document.getElementById(id).height);
    */
  }



	function showRedbox(url, width, height, top)
	{

		// サイズ
		var box_width = width + 2;
		var right_width = 0;
		var window_margin_tb = 70;
		var window_margin_lr = 20;


		//var app = navigator.appName.charAt(0);			
		var resultFrame = document.getElementById("resultFrame");

    
		//var resultFrame_redbox = $("RB_window").childNodes[0];
		//resultFrame_redbox.id = "resultFrame_redbox"

		//iframe
		var resultFrame_redbox = $("resultFrame_redbox");
		resultFrame_redbox.src = url;
		resultFrame_redbox.style['width'] = box_width - right_width - window_margin_lr * 2 + "px";
		resultFrame_redbox.style['height'] = (height - window_margin_tb * 2) + "px";

		//resultFrame_redbox.style.display = "block";


		// フレームコピー
		RedBox.showInline("resultFrame_redbox");


		//インラインで指定する
		$("RB_redbox").style['height'] = height + "px";
		$("RB_redbox").style['top'] = top + "px";
		$("RB_redbox").style['width'] = box_width + "px";
		$("RB_redbox").style.zIndex = "100";

		$("RB_overlay").style['height'] = height + "px";
		$("RB_overlay").style['width'] = box_width - right_width + "px";
		//$("RB_overlay").innerHTML = "<div style=\"color:white;margin-left:30px;margin-top:10px;font-size:11pt\">検索条件を入力して検索を実行してください。</div>";


		$("RB_window").style['width'] = box_width - right_width - window_margin_lr * 2 + "px";
		$("RB_window").style['height'] = (height - window_margin_tb * 2) + "px";

		$("RB_window").style['top'] = window_margin_tb + "px";
		$("RB_window").style['left'] = window_margin_lr + "px";


  }

	function closeBox()
	{
		RedBox.closeBoth();
	  	$("RB_redbox").style.zIndex = "-100";
	  	$("resultFrame_redbox").style.display = "none";
	}

  function setOverlayHtml(strHtml)
  {
  	//alert("RB_overlay:" + parent.parent.document.getElementById("RB_overlay"));
  	parent.parent.document.getElementById("RB_overlay").innerHTML = strHtml;
  }

