﻿// JScript 文件
function change_panel(panelName, panelId, numOfPanel)
{  
   for(var i = 1; i <= numOfPanel; i++)
   {
      var title = panelName + "title" + i;
      if(i != panelId)
      {
        document.getElementById(title).className="normal";
      }
      else
      {
        document.getElementById(title).className="active";
      }
   }
   if (panelId == 1)
   {
      document.frames("mapframe").location.href="newhousemap.aspx";
   }
   else if (panelId == 2 || panelId == 3)
   {
      document.frames("mapframe").location.href="secondhousemap.aspx?param=" + panelId;
   }
   else
   {
      document.frames("mapframe").location.href="netshopmap.aspx?param=" + panelId;
   }
}
