var nWin = null;

/* help window handler */
function opwin(FORM0)
{
  if (nWin && !nWin.closed) {
      nWin.close();
  }
  TASK = "?stand=" + FORM0;
  file="../service/details.php" + TASK;

  nWin=window.open(file, "nWin", "scrollbars=yes,resizable=no,height=500,width=470,top=100,left=550");
}

function opwin2(FORM0)
{
  if (nWin && !nWin.closed) {
      nWin.close();
  }
  TASK = "?id=" + FORM0;
  file="../service/details.php" + TASK;

  nWin=window.open(file, "nWin", "scrollbars=yes,resizable=no,height=500,width=470,top=100,left=550");
}

function InitSwap( Name, OffPicture, OnPicture, szStatus)
{
	this.Name           = Name;
	this.OffPicture     = new Image();
	this.OffPicture.src = OffPicture;
	this.OnPicture      = new Image();
	this.OnPicture.src  = OnPicture;
	this.szStatus       = szStatus;
	this.Swap           = SwapImage;
} /* end of InitSwap */

function SwapImage( bFlag)
{
	if( document.images[this.Name] != null)
	{
		if( bFlag)
		{
			document.images[this.Name].src = this.OnPicture.src;
			self.status = this.szStatus;
			return true;
		}
		else
		{
			document.images[this.Name].src = this.OffPicture.src;
		}
	}
} /* end of SwapImage */


function ZF(URL1,URL2)
     {
      parent.navi.location.href=URL1;
      parent.hauptframe.location.href=URL2;
     }

